本文整理汇总了Java中org.kuali.rice.kns.lookup.HtmlData.MultipleAnchorHtmlData方法的典型用法代码示例。如果您正苦于以下问题:Java HtmlData.MultipleAnchorHtmlData方法的具体用法?Java HtmlData.MultipleAnchorHtmlData怎么用?Java HtmlData.MultipleAnchorHtmlData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kns.lookup.HtmlData
的用法示例。
在下文中一共展示了HtmlData.MultipleAnchorHtmlData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAssignedRoleInquiryUrl
import org.kuali.rice.kns.lookup.HtmlData; //导入方法依赖的package包/类
protected HtmlData getAssignedRoleInquiryUrl(BusinessObject businessObject){
UberPermissionBo permission = (UberPermissionBo)businessObject;
List<RoleBo> assignedToRoles = permission.getAssignedToRoles();
List<HtmlData.AnchorHtmlData> htmlData = new ArrayList<HtmlData.AnchorHtmlData>();
if(assignedToRoles!=null && !assignedToRoles.isEmpty()){
RoleService roleService = KimApiServiceLocator.getRoleService();
for(RoleBo roleImpl: assignedToRoles){
Role roleInfo = roleService.getRole(roleImpl.getId());
HtmlData.AnchorHtmlData inquiryHtmlData = getInquiryUrlForPrimaryKeys(RoleBo.class, roleInfo, Collections.singletonList(ID),
roleInfo.getNamespaceCode()+ " " + roleInfo.getName());
inquiryHtmlData.setHref(RoleLookupableHelperServiceImpl.getCustomRoleInquiryHref(inquiryHtmlData.getHref()));
inquiryHtmlData.setTarget(HtmlData.AnchorHtmlData.TARGET_BLANK);
htmlData.add(inquiryHtmlData);
}
}
return new HtmlData.MultipleAnchorHtmlData(htmlData);
}
示例2: getAssignedRoleInquiryUrl
import org.kuali.rice.kns.lookup.HtmlData; //导入方法依赖的package包/类
protected HtmlData getAssignedRoleInquiryUrl(BusinessObject businessObject){
UberResponsibilityBo responsibility = (UberResponsibilityBo)businessObject;
List<RoleBo> assignedToRoles = responsibility.getAssignedToRoles();
List<HtmlData.AnchorHtmlData> htmlData = new ArrayList<HtmlData.AnchorHtmlData>();
if(assignedToRoles!=null && !assignedToRoles.isEmpty()){
List<String> primaryKeys = Collections.singletonList(ID);
RoleService roleService = KimApiServiceLocator.getRoleService();
for(RoleBo roleImpl: assignedToRoles){
Role role = roleService.getRole(roleImpl.getId());
HtmlData.AnchorHtmlData inquiryHtmlData = getInquiryUrlForPrimaryKeys(RoleBo.class, role, primaryKeys,
role.getNamespaceCode()+" "+
role.getName());
inquiryHtmlData.setHref(RoleLookupableHelperServiceImpl.getCustomRoleInquiryHref(inquiryHtmlData.getHref()));
htmlData.add(inquiryHtmlData);
}
}
return new HtmlData.MultipleAnchorHtmlData(htmlData);
}
示例3: getAttributesInquiryUrl
import org.kuali.rice.kns.lookup.HtmlData; //导入方法依赖的package包/类
protected HtmlData getAttributesInquiryUrl(BusinessObject businessObject, String attributeName){
DataObjectWrapper<BusinessObject> wrapper = KradDataServiceLocator.getDataObjectService().wrap(businessObject);
List<PermissionAttributeBo> permissionAttributeData =
(List<PermissionAttributeBo>) wrapper.getPropertyValueNullSafe(attributeName);
List<HtmlData.AnchorHtmlData> htmlData = new ArrayList<HtmlData.AnchorHtmlData>();
List<String> primaryKeys = new ArrayList<String>();
primaryKeys.add(ATTRIBUTE_DATA_ID);
for(PermissionAttributeBo permissionAttributeDataImpl: permissionAttributeData){
htmlData.add(getInquiryUrlForPrimaryKeys(PermissionAttributeBo.class, permissionAttributeDataImpl, primaryKeys,
getKimAttributeLabelFromDD(permissionAttributeDataImpl.getKimAttribute().getAttributeName())+
KimConstants.KimUIConstants.NAME_VALUE_SEPARATOR+
permissionAttributeDataImpl.getAttributeValue()));
}
return new HtmlData.MultipleAnchorHtmlData(htmlData);
}
示例4: getAttributesInquiryUrl
import org.kuali.rice.kns.lookup.HtmlData; //导入方法依赖的package包/类
protected HtmlData getAttributesInquiryUrl(BusinessObject businessObject, String attributeName){
DataObjectWrapper<BusinessObject> wrapper = KradDataServiceLocator.getDataObjectService().wrap(businessObject);
List<ResponsibilityAttributeBo> responsibilityAttributeData =
(List<ResponsibilityAttributeBo>) wrapper.getPropertyValueNullSafe(attributeName);
List<HtmlData.AnchorHtmlData> htmlData = new ArrayList<HtmlData.AnchorHtmlData>();
List<String> primaryKeys = new ArrayList<String>();
primaryKeys.add(ATTRIBUTE_DATA_ID);
for(ResponsibilityAttributeBo responsibilityAttributeDataImpl: responsibilityAttributeData){
htmlData.add(getInquiryUrlForPrimaryKeys(ResponsibilityAttributeBo.class, responsibilityAttributeDataImpl, primaryKeys,
getKimAttributeLabelFromDD(responsibilityAttributeDataImpl.getKimAttribute().getAttributeName())+ KimConstants.KimUIConstants.NAME_VALUE_SEPARATOR+
responsibilityAttributeDataImpl.getAttributeValue()));
}
return new HtmlData.MultipleAnchorHtmlData(htmlData);
}