当前位置: 首页>>代码示例>>Java>>正文


Java HtmlData.MultipleAnchorHtmlData方法代码示例

本文整理汇总了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);
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:PermissionInquirableImpl.java

示例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);
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:ResponsibilityInquirableImpl.java

示例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);
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:PermissionInquirableImpl.java

示例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);
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:ResponsibilityInquirableImpl.java


注:本文中的org.kuali.rice.kns.lookup.HtmlData.MultipleAnchorHtmlData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。