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


Java ResponsibilityBo类代码示例

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


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

示例1: addResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
public ActionForward addResponsibility(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    IdentityManagementRoleDocumentForm roleDocumentForm = (IdentityManagementRoleDocumentForm) form;
    KimDocumentRoleResponsibility newResponsibility = roleDocumentForm.getResponsibility();
    if (newResponsibility != null && StringUtils.isNotBlank(newResponsibility.getResponsibilityId())) {
        ResponsibilityBo responsibilityImpl = KradDataServiceLocator.getDataObjectService().find(ResponsibilityBo.class, newResponsibility.getResponsibilityId());
        newResponsibility.setKimResponsibility(responsibilityImpl);
    }

    if (KRADServiceLocatorWeb.getKualiRuleService().applyRules(new AddResponsibilityEvent("", roleDocumentForm.getRoleDocument(), newResponsibility))) {
        if (newResponsibility != null) {
            newResponsibility.setDocumentNumber(roleDocumentForm.getDocument().getDocumentNumber());
        }
        roleDocumentForm.getRoleDocument().addResponsibility(newResponsibility);
        roleDocumentForm.setResponsibility(new KimDocumentRoleResponsibility());
        roleDocumentForm.getRoleDocument().updateMembers(newResponsibility);
    }
    return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:IdentityManagementRoleDocumentAction.java

示例2: addResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
public ActionForward addResponsibility(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    IdentityManagementRoleDocumentForm roleDocumentForm = (IdentityManagementRoleDocumentForm) form;
    KimDocumentRoleResponsibility newResponsibility = roleDocumentForm.getResponsibility();
    if (newResponsibility != null && StringUtils.isNotBlank(newResponsibility.getResponsibilityId())) {
        Map<String, String> criteria = new HashMap<String, String>();
        criteria.put(KimConstants.PrimaryKeyConstants.RESPONSIBILITY_ID, newResponsibility.getResponsibilityId());
        ResponsibilityBo responsibilityImpl = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(ResponsibilityBo.class, criteria);
        newResponsibility.setKimResponsibility(responsibilityImpl);
    }

    if (KRADServiceLocatorWeb.getKualiRuleService().applyRules(new AddResponsibilityEvent("", roleDocumentForm.getRoleDocument(), newResponsibility))) {
        if (newResponsibility != null) {
            newResponsibility.setDocumentNumber(roleDocumentForm.getDocument().getDocumentNumber());
        }
        roleDocumentForm.getRoleDocument().addResponsibility(newResponsibility);
        roleDocumentForm.setResponsibility(new KimDocumentRoleResponsibility());
        roleDocumentForm.getRoleDocument().updateMembers(newResponsibility);
    }
    return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:21,代码来源:IdentityManagementRoleDocumentAction.java

示例3: getKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
/**
* @return the kimResponsibility
*/
  public ResponsibilityBo getKimResponsibility() {
      if (kimResponsibility == null && getRoleResponsibility() != null) {
          //TODO: this needs to be changed to use the KimResponsibilityInfo object                       
          // but the changes are involved in the UiDocumentService based on the copyProperties method used                       
          // to move the data to/from the document/real objects                       
          Responsibility info = KimApiServiceLocator.getResponsibilityService().getResponsibility(getRoleResponsibility().getResponsibilityId());
          kimResponsibility = ResponsibilityBo.from(info);
      }
      return kimResponsibility;
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:14,代码来源:KimDocumentRoleResponsibilityAction.java

示例4: getKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
/**
* @return the kimResponsibility
*/
  public ResponsibilityBo getKimResponsibility() {
      if (kimResponsibility == null && responsibilityId != null) {
          //TODO: this needs to be changed to use the KimResponsibilityInfo object                       
          // but the changes are involved in the UiDocumentService based on the copyProperties method used                       
          // to move the data to/from the document/real objects                       
          Responsibility info = KimApiServiceLocator.getResponsibilityService().getResponsibility(getResponsibilityId());
          kimResponsibility = ResponsibilityBo.from(info);
      }
      return this.kimResponsibility;
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:14,代码来源:KimDocumentRoleResponsibility.java

示例5: validResponsibilities

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
protected boolean validResponsibilities(IdentityManagementRoleDocument document){
	ResponsibilityBo kimResponsibilityImpl;
	boolean valid = true;
	int i = 0;
	for(KimDocumentRoleResponsibility responsibility: document.getResponsibilities()){
		kimResponsibilityImpl = responsibility.getKimResponsibility();
		if(!responsibility.isActive() && !hasPermissionToGrantResponsibility(ResponsibilityBo.to(responsibility.getKimResponsibility()), document)){
	        GlobalVariables.getMessageMap().putError("responsibilities["+i+"].active", RiceKeyConstants.ERROR_ASSIGN_RESPONSIBILITY,
	        		new String[] {kimResponsibilityImpl.getNamespaceCode(), kimResponsibilityImpl.getTemplate().getName()});
	        valid = false;
		}
		i++;
	}
	return valid;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:IdentityManagementRoleDocumentRule.java

示例6: getKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
/**
 * @return the kimResponsibility
 */
public ResponsibilityBo getKimResponsibility() {
		if ( ObjectUtils.isNull( kimResponsibility ) && ObjectUtils.isNotNull( getRoleResponsibility() ) ) {
		//TODO: this needs to be changed to use the KimResponsibilityInfo object
		// but the changes are involved in the UiDocumentService based on the copyProperties method used
		// to move the data to/from the document/real objects
           Responsibility info = KimApiServiceLocator.getResponsibilityService().getResponsibility(getRoleResponsibility().getResponsibilityId());
           kimResponsibility = ResponsibilityBo.from(info);
		}
	return kimResponsibility;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:14,代码来源:KimDocumentRoleResponsibilityAction.java

示例7: getKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
/**
 * @return the kimResponsibility
 */
public ResponsibilityBo getKimResponsibility() {
	if ( kimResponsibility == null && responsibilityId != null ) {
		//TODO: this needs to be changed to use the KimResponsibilityInfo object
		// but the changes are involved in the UiDocumentService based on the copyProperties method used
		// to move the data to/from the document/real objects
           Responsibility info = KimApiServiceLocator.getResponsibilityService().getResponsibility(getResponsibilityId());
           kimResponsibility = ResponsibilityBo.from(info);
	}
	return this.kimResponsibility;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:14,代码来源:KimDocumentRoleResponsibility.java

示例8: getKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
public ResponsibilityBo getKimResponsibility() {
    return kimResponsibility;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:RoleResponsibilityBo.java

示例9: setKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
public void setKimResponsibility(ResponsibilityBo kimResponsibility) {
    this.kimResponsibility = kimResponsibility;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:RoleResponsibilityBo.java

示例10: setKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
/**
* @param kimResponsibility the kimResponsibility to set
*/
  public void setKimResponsibility(ResponsibilityBo kimResponsibility) {
      this.kimResponsibility = kimResponsibility;
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:KimDocumentRoleResponsibilityAction.java

示例11: setKimResponsibility

import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
/**
 * @param kimResponsibility the kimResponsibility to set
 */
public void setKimResponsibility(ResponsibilityBo kimResponsibility) {
	this.kimResponsibility = kimResponsibility;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:7,代码来源:KimDocumentRoleResponsibilityAction.java


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