本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例8: getKimResponsibility
import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
public ResponsibilityBo getKimResponsibility() {
return kimResponsibility;
}
示例9: setKimResponsibility
import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; //导入依赖的package包/类
public void setKimResponsibility(ResponsibilityBo kimResponsibility) {
this.kimResponsibility = kimResponsibility;
}
示例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;
}
示例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;
}