public class OrgReviewRoleServiceImpl extends Object implements OrgReviewRoleService
Modifier and Type | Field and Description |
---|---|
protected static Map<String,Map<String,org.kuali.rice.kim.api.common.attribute.KimAttribute>> |
ATTRIBUTE_CACHE |
protected org.kuali.rice.kew.api.doctype.DocumentTypeService |
documentTypeService |
protected Set<String> |
potentialParentDocumentTypeNames |
protected static Map<String,org.kuali.rice.kim.api.role.Role> |
ROLE_CACHE |
Constructor and Description |
---|
OrgReviewRoleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected OleKimDocumentAttributeData |
getAttribute(String kimTypeId,
String attributeName,
String attributeValue) |
protected org.kuali.rice.kim.api.common.attribute.KimAttribute |
getAttributeDefinition(String kimTypeId,
String attributeName) |
protected Map<String,String> |
getAttributes(OrgReviewRole orr,
String kimTypeId) |
String |
getClosestOrgReviewRoleParentDocumentTypeName(String documentTypeName) |
protected List<OleKimDocDelegateMember> |
getDelegationMembersToSave(OrgReviewRole orr) |
protected org.kuali.rice.kew.api.doctype.DocumentTypeService |
getDocumentTypeService() |
protected org.kuali.rice.kim.api.role.Role |
getRoleInfo(String roleName) |
org.kuali.rice.kim.api.role.RoleMember |
getRoleMemberFromKimRoleService(String roleMemberId) |
protected List<OleKimDocRoleMember> |
getRoleMembers(OrgReviewRole orr) |
protected OleKimDocRoleMember |
getRoleMemberToSave(org.kuali.rice.kim.api.role.Role role,
OrgReviewRole orr) |
protected List<org.kuali.rice.kim.api.role.RoleResponsibilityAction.Builder> |
getRoleResponsibilityActions(OrgReviewRole orr,
org.kuali.rice.kim.api.role.RoleMemberContract roleMember) |
List<String> |
getRolesToConsider(String documentTypeName)
1.
|
protected List<String> |
getRolesToSaveFor(List<String> roleNamesToConsider,
String reviewRolesIndicator) |
boolean |
hasAccountingOrganizationHierarchy(String documentTypeName) |
boolean |
hasOrganizationHierarchy(String documentTypeName) |
boolean |
isValidDocumentTypeForOrgReview(String documentTypeName) |
protected void |
populateObjectExtras(OrgReviewRole orr) |
void |
populateOrgReviewRoleFromDelegationMember(OrgReviewRole orr,
String roleMemberId,
String delegationMemberId) |
void |
populateOrgReviewRoleFromRoleMember(OrgReviewRole orr,
String roleMemberId) |
protected void |
saveDelegateMemberToKim(OrgReviewRole orr) |
void |
saveOrgReviewRoleToKim(OrgReviewRole orr) |
protected void |
saveRoleMemberToKim(OrgReviewRole orr) |
protected void |
updateDelegateMemberFromDocDelegateMember(DelegateMember.Builder member,
OleKimDocDelegateMember dm) |
void |
validateDocumentType(String documentTypeName) |
protected static final Map<String,org.kuali.rice.kim.api.role.Role> ROLE_CACHE
protected static final Map<String,Map<String,org.kuali.rice.kim.api.common.attribute.KimAttribute>> ATTRIBUTE_CACHE
protected Set<String> potentialParentDocumentTypeNames
protected org.kuali.rice.kew.api.doctype.DocumentTypeService documentTypeService
public OrgReviewRoleServiceImpl()
public org.kuali.rice.kim.api.role.RoleMember getRoleMemberFromKimRoleService(String roleMemberId)
getRoleMemberFromKimRoleService
in interface OrgReviewRoleService
public void populateOrgReviewRoleFromRoleMember(OrgReviewRole orr, String roleMemberId)
populateOrgReviewRoleFromRoleMember
in interface OrgReviewRoleService
public void populateOrgReviewRoleFromDelegationMember(OrgReviewRole orr, String roleMemberId, String delegationMemberId)
populateOrgReviewRoleFromDelegationMember
in interface OrgReviewRoleService
protected void populateObjectExtras(OrgReviewRole orr)
@Cacheable(value="OLE/OrgReviewRole", key="\'{ValidDocumentTypeForOrgReview}\'+#p0") public boolean isValidDocumentTypeForOrgReview(String documentTypeName)
isValidDocumentTypeForOrgReview
in interface OrgReviewRoleService
public void validateDocumentType(String documentTypeName) throws org.kuali.rice.krad.exception.ValidationException
validateDocumentType
in interface OrgReviewRoleService
org.kuali.rice.krad.exception.ValidationException
@Cacheable(value="OLE/OrgReviewRole", key="\'{hasOrganizationHierarchy}\'+#p0") public boolean hasOrganizationHierarchy(String documentTypeName)
hasOrganizationHierarchy
in interface OrgReviewRoleService
@Cacheable(value="OLE/OrgReviewRole", key="\'{hasAccountingOrganizationHierarchy}\'+#p0") public boolean hasAccountingOrganizationHierarchy(String documentTypeName)
hasAccountingOrganizationHierarchy
in interface OrgReviewRoleService
@Cacheable(value="OLE/OrgReviewRole", key="\'{ClosestOrgReviewRoleParentDocumentTypeName}\'+#p0") public String getClosestOrgReviewRoleParentDocumentTypeName(String documentTypeName)
getClosestOrgReviewRoleParentDocumentTypeName
in interface OrgReviewRoleService
@Cacheable(value="OLE/OrgReviewRole", key="\'{getRolesToConsider}\'+#p0") public List<String> getRolesToConsider(String documentTypeName) throws org.kuali.rice.krad.exception.ValidationException
getRolesToConsider
in interface OrgReviewRoleService
documentTypeName
- hasOrganizationHierarchy
- hasAccountingOrganizationHierarchy
- closestParentDocumentTypeName
- org.kuali.rice.krad.exception.ValidationException
public void saveOrgReviewRoleToKim(OrgReviewRole orr)
saveOrgReviewRoleToKim
in interface OrgReviewRoleService
protected void updateDelegateMemberFromDocDelegateMember(DelegateMember.Builder member, OleKimDocDelegateMember dm)
protected void saveDelegateMemberToKim(OrgReviewRole orr)
protected void saveRoleMemberToKim(OrgReviewRole orr)
protected org.kuali.rice.kim.api.role.Role getRoleInfo(String roleName)
protected List<OleKimDocDelegateMember> getDelegationMembersToSave(OrgReviewRole orr)
protected OleKimDocRoleMember getRoleMemberToSave(org.kuali.rice.kim.api.role.Role role, OrgReviewRole orr)
protected List<String> getRolesToSaveFor(List<String> roleNamesToConsider, String reviewRolesIndicator)
protected List<OleKimDocRoleMember> getRoleMembers(OrgReviewRole orr)
protected Map<String,String> getAttributes(OrgReviewRole orr, String kimTypeId)
protected List<org.kuali.rice.kim.api.role.RoleResponsibilityAction.Builder> getRoleResponsibilityActions(OrgReviewRole orr, org.kuali.rice.kim.api.role.RoleMemberContract roleMember)
protected OleKimDocumentAttributeData getAttribute(String kimTypeId, String attributeName, String attributeValue)
protected org.kuali.rice.kim.api.common.attribute.KimAttribute getAttributeDefinition(String kimTypeId, String attributeName)
protected org.kuali.rice.kew.api.doctype.DocumentTypeService getDocumentTypeService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.