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


Java HtmlData类代码示例

本文整理汇总了Java中org.kuali.rice.kns.lookup.HtmlData的典型用法代码示例。如果您正苦于以下问题:Java HtmlData类的具体用法?Java HtmlData怎么用?Java HtmlData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


HtmlData类属于org.kuali.rice.kns.lookup包,在下文中一共展示了HtmlData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getInquiryUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@Override
  public HtmlData getInquiryUrl(BusinessObject businessObject, String attributeName, boolean forceInquiry) {
  	
if(DOCUMENT_ID.equals(attributeName)) {

	HtmlData.AnchorHtmlData link = new HtmlData.AnchorHtmlData();
	RuleBaseValues rule = (RuleBaseValues)businessObject;

	String documentId = rule.getDocumentId();
	link.setDisplayText(documentId+"");

	String href = ConfigContext.getCurrentContextConfig().getKEWBaseURL() + "/" +
	KewApiConstants.DOC_HANDLER_REDIRECT_PAGE + "?" + KewApiConstants.COMMAND_PARAMETER + "=" +
	KewApiConstants.DOCSEARCH_COMMAND + "&" + KewApiConstants.DOCUMENT_ID_PARAMETER + "=" + documentId;

	link.setHref(href);

	return link;
}		
      return super.getInquiryUrl(businessObject, attributeName, forceInquiry);
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:22,代码来源:RuleBaseValuesInquirableImpl.java

示例2: getCustomActionUrls

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@Override
public List<HtmlData> getCustomActionUrls(BusinessObject businessObject,
        List pkNames) {
    RuleDelegationBo ruleDelegation = (RuleDelegationBo)businessObject;
    List<HtmlData> htmlDataList = new ArrayList<HtmlData>();
    if (StringUtils.isNotBlank(ruleDelegation.getDelegationRule().getRuleTemplateName()) && StringUtils.isNotBlank(getMaintenanceDocumentTypeName())) {
    	if (allowsMaintenanceEditAction(businessObject)) {
    		htmlDataList.add(getUrlData(businessObject, KRADConstants.MAINTENANCE_EDIT_METHOD_TO_CALL, pkNames));
    	}
        if (allowsMaintenanceNewOrCopyAction()) {
            htmlDataList.add(getUrlData(businessObject, KRADConstants.MAINTENANCE_COPY_METHOD_TO_CALL, pkNames));
        }
    }
        
    return htmlDataList;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:17,代码来源:RuleDelegationLookupableHelperServiceImpl.java

示例3: generateInitiatorUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
protected HtmlData.AnchorHtmlData generateInitiatorUrl(String principalId) {
    HtmlData.AnchorHtmlData link = new HtmlData.AnchorHtmlData();
    if (StringUtils.isBlank(principalId) ) {
        return link;
    }
    if (isRouteLogPopup()) {
        link.setTarget("_blank");
    }
    else {
        link.setTarget("_self");
    }
    link.setDisplayText("Initiator Inquiry for User with ID:" + principalId);
    String url = ConfigContext.getCurrentContextConfig().getProperty(Config.KIM_URL) + "/" +
            "identityManagementPersonInquiry.do?principalId=" + principalId;
    link.setHref(url);
    return link;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:DocumentSearchCriteriaBoLookupableHelperService.java

示例4: getInquiryUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@Override
  public HtmlData getInquiryUrl(BusinessObject businessObject, String attributeName, boolean forceInquiry) {
  	/*
  	 *  - permission detail values (attribute name and value separated by colon, commas between attributes)
 *	- required role qualifiers (attribute name and value separated by colon, commas between attributes)
 *	- list of roles assigned: role type, role namespace, role name
  	 */
if(NAME.equals(attributeName) || NAME_TO_DISPLAY.equals(attributeName)){
	return getInquiryUrlForPrimaryKeys(UberPermissionBo.class, businessObject, Collections.singletonList(KimConstants.PrimaryKeyConstants.PERMISSION_ID), null);
} else if(NAMESPACE_CODE.equals(attributeName) || TEMPLATE_NAMESPACE_CODE.equals(attributeName)){
	NamespaceBo parameterNamespace = new NamespaceBo();
          String code = (String) KradDataServiceLocator.getDataObjectService().wrap(businessObject).getPropertyValueNullSafe(attributeName);
	parameterNamespace.setCode(code);
	return getInquiryUrlForPrimaryKeys(NamespaceBo.class, parameterNamespace, Collections.singletonList(KRADPropertyConstants.CODE), null);
      } else if(DETAIL_OBJECTS.equals(attributeName)){
      	//return getAttributesInquiryUrl(businessObject, DETAIL_OBJECTS);
      } else if(ASSIGNED_TO_ROLES.equals(attributeName)){
      	return getAssignedRoleInquiryUrl(businessObject);
      }

      return super.getInquiryUrl(businessObject, attributeName, forceInquiry);
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:23,代码来源:PermissionInquirableImpl.java

示例5: 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

示例6: getEditGroupUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
protected HtmlData getEditGroupUrl(GroupBo groupBo) {
  	String href = "";

      Properties parameters = new Properties();
      parameters.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, KRADConstants.DOC_HANDLER_METHOD);
      parameters.put(KRADConstants.PARAMETER_COMMAND, KewApiConstants.INITIATE_COMMAND);
      parameters.put(KRADConstants.DOCUMENT_TYPE_NAME, KimConstants.KimUIConstants.KIM_GROUP_DOCUMENT_TYPE_NAME);
      parameters.put(KimConstants.PrimaryKeyConstants.GROUP_ID, groupBo.getId());
      if (StringUtils.isNotBlank(getReturnLocation())) {
      	parameters.put(KRADConstants.RETURN_LOCATION_PARAMETER, getReturnLocation());
}
      href = UrlFactory.parameterizeUrl(KimCommonUtilsInternal.getKimBasePath()+KimConstants.KimUIConstants.KIM_GROUP_DOCUMENT_ACTION, parameters);
      
      HtmlData.AnchorHtmlData anchorHtmlData = new HtmlData.AnchorHtmlData(href,
      		KRADConstants.DOC_HANDLER_METHOD, KRADConstants.MAINTENANCE_EDIT_METHOD_TO_CALL);
      return anchorHtmlData;
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:GroupLookupableHelperServiceImpl.java

示例7: getCustomActionUrls

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public List<HtmlData> getCustomActionUrls(BusinessObject bo, List pkNames) {
       List<HtmlData> anchorHtmlDataList = new ArrayList<HtmlData>();
	if(allowsNewOrCopyAction(KimConstants.KimUIConstants.KIM_PERSON_DOCUMENT_TYPE_NAME)){
		String href = "";
		Properties parameters = new Properties();
        parameters.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, KRADConstants.DOC_HANDLER_METHOD);
        parameters.put(KRADConstants.PARAMETER_COMMAND, KewApiConstants.INITIATE_COMMAND);
        parameters.put(KRADConstants.DOCUMENT_TYPE_NAME, KimConstants.KimUIConstants.KIM_PERSON_DOCUMENT_TYPE_NAME);
        parameters.put(KimConstants.PrimaryKeyConstants.PRINCIPAL_ID, ((PersonImpl)bo).getPrincipalId());
        if (StringUtils.isNotBlank(getReturnLocation())) {
        	parameters.put(KRADConstants.RETURN_LOCATION_PARAMETER, getReturnLocation());
		}
        href = UrlFactory.parameterizeUrl(KimCommonUtilsInternal.getKimBasePath()+KimConstants.KimUIConstants.KIM_PERSON_DOCUMENT_ACTION, parameters);

        HtmlData.AnchorHtmlData anchorHtmlData = new HtmlData.AnchorHtmlData(href,
        		KRADConstants.DOC_HANDLER_METHOD, KRADConstants.MAINTENANCE_EDIT_METHOD_TO_CALL);

    	anchorHtmlDataList.add(anchorHtmlData);
	}
   	return anchorHtmlDataList;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:24,代码来源:PersonLookupableHelperServiceImpl.java

示例8: getInquiryUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@Override
 public HtmlData getInquiryUrl(BusinessObject businessObject, String attributeName, boolean forceInquiry) {
 	/*
 	 *  - responsibility detail values (attribute name and value separated by colon, commas between attributes)
*	- required role qualifiers (attribute name and value separated by colon, commas between attributes)
*	- list of roles assigned: role type, role namespace, role name
 	 */
 	if(NAME.equals(attributeName) || NAME_TO_DISPLAY.equals(attributeName)){
return getInquiryUrlForPrimaryKeys(UberResponsibilityBo.class, businessObject, Collections.singletonList(ID), null);
 	} else if(NAMESPACE_CODE.equals(attributeName) || TEMPLATE_NAMESPACE_CODE.equals(attributeName)){
         String code = (String) KradDataServiceLocator.getDataObjectService().wrap(businessObject).getPropertyValueNullSafe(attributeName);
         NamespaceBo parameterNamespace = new NamespaceBo();
parameterNamespace.setCode(code);
return getInquiryUrlForPrimaryKeys(NamespaceBo.class, parameterNamespace, Collections.singletonList("code"), null);
     } else if(DETAIL_OBJECTS.equals(attributeName)){
     	//return getAttributesInquiryUrl(businessObject, DETAIL_OBJECTS);
     } else if(ASSIGNED_TO_ROLES.equals(attributeName)){
     	return getAssignedRoleInquiryUrl(businessObject);
     }

     return super.getInquiryUrl(businessObject, attributeName, forceInquiry);
 }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:23,代码来源:ResponsibilityInquirableImpl.java

示例9: 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

示例10: getCustomActionUrls

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public List<HtmlData> getCustomActionUrls(BusinessObject businessObject, List pkNames) {
   	List<HtmlData> htmlDataList = new ArrayList<HtmlData>();
   	// convert the UberResponsibilityBo class into a ReviewResponsibility object
       if ( (((UberResponsibilityBo)businessObject).getTemplate() != null)
               && ((UberResponsibilityBo)businessObject).getTemplate().getName().equals( KewApiConstants.DEFAULT_RESPONSIBILITY_TEMPLATE_NAME ) ) {
       	ReviewResponsibilityBo reviewResp = new ReviewResponsibilityBo( (ResponsibilityContract)businessObject );
       	businessObject = reviewResp;
        if (allowsMaintenanceEditAction(businessObject)) {
        	htmlDataList.add(getUrlData(businessObject, KRADConstants.MAINTENANCE_EDIT_METHOD_TO_CALL, pkNames));
        }
        if (allowsMaintenanceNewOrCopyAction()) {
        	htmlDataList.add(getUrlData(businessObject, KRADConstants.MAINTENANCE_COPY_METHOD_TO_CALL, pkNames));
        }
       }
       return htmlDataList;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:ResponsibilityLookupableHelperServiceImpl.java

示例11: getCustomActionUrls

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
@Override
@SuppressWarnings("rawtypes")
public List<HtmlData> getCustomActionUrls(BusinessObject businessObject, List pkNames) {
	List<HtmlData> customActionUrls = super.getCustomActionUrls(businessObject, pkNames);

	TimeCollectionRule timeCollectionRule = (TimeCollectionRule) businessObject;
	String tkTimeCollectionRuleId = timeCollectionRule.getTkTimeCollectionRuleId();
	
	Properties params = new Properties();
	params.put(KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, getBusinessObjectClass().getName());
	params.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, KRADConstants.MAINTENANCE_NEW_METHOD_TO_CALL);
	
	params.put("tkTimeCollectionRuleId", tkTimeCollectionRuleId);

	return customActionUrls;
}
 
开发者ID:kuali-mirror,项目名称:kpme,代码行数:17,代码来源:TimeCollectionRuleLookupableHelperServiceImpl.java

示例12: getVendorInquiryUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
private HtmlData getVendorInquiryUrl(DisbursementPayee payee) {
    String payeeIdNumber = payee.getPayeeIdNumber();
    String vendorHeaderGeneratedIdentifier = StringUtils.substringBefore(payeeIdNumber, "-");
    String vendorDetailAssignedIdentifier = StringUtils.substringAfter(payeeIdNumber, "-");

    Properties params = new Properties();
    params.put(KFSConstants.DISPATCH_REQUEST_PARAMETER, KFSConstants.START_METHOD);
    params.put(KFSConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, VendorDetail.class.getName());
    params.put(KFSPropertyConstants.VENDOR_HEADER_GENERATED_ID, vendorHeaderGeneratedIdentifier);
    params.put(KFSPropertyConstants.VENDOR_DETAIL_ASSIGNED_ID, vendorDetailAssignedIdentifier);

    String url = UrlFactory.parameterizeUrl(KRADConstants.INQUIRY_ACTION, params);

    Map<String, String> fieldList = new HashMap<String, String>();
    fieldList.put(KFSPropertyConstants.VENDOR_HEADER_GENERATED_ID, vendorHeaderGeneratedIdentifier);
    fieldList.put(KFSPropertyConstants.VENDOR_DETAIL_ASSIGNED_ID, vendorDetailAssignedIdentifier);

    return this.getHyperLink(VendorDetail.class, fieldList, url);
}
 
开发者ID:kuali,项目名称:kfs,代码行数:20,代码来源:DisbursementPayeeInquirableImpl.java

示例13: getInquiryUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl#getInquiryUrl(org.kuali.rice.krad.bo.BusinessObject,
 *      java.lang.String)
 */
@Override
public HtmlData getInquiryUrl(BusinessObject bo, String propertyName) {
    AnchorHtmlData inquiryUrl = (AnchorHtmlData) super.getInquiryUrl(bo, propertyName);
    Batch batch = (Batch) bo;
    if (propertyName.equalsIgnoreCase(PdpPropertyConstants.BatchConstants.BATCH_ID)) {
        Properties params = new Properties();
        params.put(OLEConstants.DISPATCH_REQUEST_PARAMETER, OLEConstants.SEARCH_METHOD);
        params.put(OLEConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, PaymentDetail.class.getName());
        params.put(KRADConstants.DOC_FORM_KEY, "88888888");
        params.put(OLEConstants.HIDE_LOOKUP_RETURN_LINK, "true");
        params.put(OLEConstants.BACK_LOCATION, configurationService.getPropertyValueAsString(KRADConstants.APPLICATION_URL_KEY) + "/" + OLEConstants.MAPPING_PORTAL + ".do");
        params.put(PdpPropertyConstants.PaymentDetail.PAYMENT_GROUP_BATCH_ID, UrlFactory.encode(String.valueOf(batch.getId())));
        String url = UrlFactory.parameterizeUrl(KRADConstants.LOOKUP_ACTION, params);
        inquiryUrl.setHref(url);
    }
    return inquiryUrl;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:22,代码来源:BatchLookupableHelperService.java

示例14: getInquiryUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl#getInquiryUrl(org.kuali.rice.krad.bo.BusinessObject,
 *      java.lang.String)
 */
@Override
public HtmlData getInquiryUrl(BusinessObject bo, String propertyName) {
    AnchorHtmlData inquiryUrl = (AnchorHtmlData) super.getInquiryUrl(bo, propertyName);
    PaymentProcess paymentProcess = (PaymentProcess) bo;
    if (propertyName.equalsIgnoreCase(PdpPropertyConstants.PaymentProcess.PAYMENT_PROCESS_ID)) {
        Properties params = new Properties();
        params.put(OLEConstants.DISPATCH_REQUEST_PARAMETER, OLEConstants.SEARCH_METHOD);
        params.put(OLEConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, ProcessSummary.class.getName());
        params.put(KRADConstants.DOC_FORM_KEY, "88888888");
        params.put(OLEConstants.HIDE_LOOKUP_RETURN_LINK, "true");
        params.put(OLEConstants.RETURN_LOCATION_PARAMETER, OLEConstants.MAPPING_PORTAL + ".do");
        params.put(PdpPropertyConstants.ProcessSummary.PROCESS_SUMMARY_PROCESS_ID, UrlFactory.encode(String.valueOf(paymentProcess.getId())));
        String url = UrlFactory.parameterizeUrl(KRADConstants.LOOKUP_ACTION, params);
        inquiryUrl.setHref(url);
    }
    return inquiryUrl;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:22,代码来源:PaymentProcessLookupableHelperService.java

示例15: getReturnUrl

import org.kuali.rice.kns.lookup.HtmlData; //导入依赖的package包/类
/**
 * Overriding the return URL to create a new Tax Region document.  If CREATE_TAX_REGION_FROM_LOOKUP_INDICATOR
 * exists, that means that the lookup is coming from the "create new" button on the tax region lookup.
 * If so, create customer link to tax region maint doc. Otherwise, just use the normal returnUrl.
 * 
 * @see org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl#getReturnUrl(org.kuali.rice.krad.bo.BusinessObject,
 *      java.util.Map, java.lang.String, java.util.List)
 */
@SuppressWarnings("rawtypes")
// KFSMI-5158
@Override
public HtmlData getReturnUrl(BusinessObject businessObject, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions restrictions) {

    final String docTypeName = getTaxRegionDocumentTypeName();
    if (docTypeName.equals(lookupForm.getFormKey())) { 
        Properties parameters = getParameters(businessObject, lookupForm.getFieldConversions(), lookupForm.getLookupableImplServiceName(), returnKeys);
        parameters.put(KFSConstants.DISPATCH_REQUEST_PARAMETER, KFSConstants.MAINTENANCE_NEWWITHEXISTING_ACTION);
        parameters.put(KFSConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, TaxRegion.class.getName());
        parameters.put(KFSConstants.OVERRIDE_KEYS, KFSConstants.TaxRegionConstants.TAX_REGION_TYPE_CODE);
        parameters.put(KFSConstants.REFRESH_CALLER, KFSConstants.TaxRegionConstants.TAX_REGION_TYPE_CODE + "::" + ((TaxRegionType) businessObject).getTaxRegionTypeCode());
        
        final String href = UrlFactory.parameterizeUrl(KFSConstants.MAINTENANCE_ACTION, parameters);
        final String returnUrlAnchorLabel =
            SpringContext.getBean(ConfigurationService.class).getPropertyValueAsString(TITLE_RETURN_URL_PREPENDTEXT_PROPERTY);
        AnchorHtmlData anchor = new AnchorHtmlData(href, HtmlData.getTitleText(returnUrlAnchorLabel, businessObject, returnKeys, restrictions));
        anchor.setDisplayText(returnUrlAnchorLabel);
       return anchor;
   }
   else {
       return super.getReturnUrl(businessObject, lookupForm, returnKeys, restrictions);
   }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:33,代码来源:TaxRegionTypeLookupableServiceImpl.java


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