org.kuali.rice.kim.service.impl
Class UiDocumentServiceImpl

java.lang.Object
  extended by org.kuali.rice.kim.service.impl.UiDocumentServiceImpl
All Implemented Interfaces:
UiDocumentService

public class UiDocumentServiceImpl
extends java.lang.Object
implements UiDocumentService

This is a description of what this class does - shyu don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
UiDocumentServiceImpl()
           
 
Method Summary
protected  boolean canAssignToRole(IdentityManagementRoleDocument document, java.lang.String initiatorPrincipalId)
           
 boolean canModifyEntity(java.lang.String currentUserPrincipalId, java.lang.String toModifyPrincipalId)
           
 boolean canOverrideEntityPrivacyPreferences(java.lang.String currentUserPrincipalId, java.lang.String toModifyPrincipalId)
           
protected  void convertCheckboxAttributeData(RoleMemberAttributeDataImpl roleMemberAttributeData)
          Formats the attribute value on this checkbox attribute, changing "on" to "Y" and "off" to "N"
protected  void formatAttrValIfNecessary(KimDocumentRoleQualifier roleQualifier)
           
protected  void formatCheckboxAttributeData(KimDocumentRoleQualifier roleQualifier)
           
protected  AttributeDefinitionMap getAttributeDefinitionsForRole(PersonDocumentRole role)
           
protected  java.lang.String getAttributeDefnId(AttributeDefinition definition)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributeEntries(AttributeDefinitionMap definitions)
          This method is to set up the DD attribute entry map for role qualifiers, so it can be rendered.
protected  java.util.List<RoleMemberAttributeDataImpl> getBlankRoleMemberAttrs(java.util.List<RoleMemberImpl> rolePrncpls)
           
protected  BusinessObjectService getBusinessObjectService()
           
protected  java.util.Set<java.lang.String> getChangedRoleResponsibilityIds(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<RoleResponsibilityImpl> origRoleResponsibilities)
           
protected  java.util.List<KimDelegationMemberAttributeDataImpl> getDelegationMemberAttributeData(java.util.List<RoleDocumentDelegationMemberQualifier> qualifiers, java.util.List<KimDelegationMemberAttributeDataImpl> origAttributes, boolean activatingInactive, java.lang.String delegationMemberId)
           
protected  java.util.List<KimDelegationMemberImpl> getDelegationMembers(java.util.List<RoleDocumentDelegationMember> delegationMembers, java.util.List<KimDelegationMemberImpl> origDelegationMembers, boolean activatingInactive, java.lang.String newDelegationIdAssigned)
           
protected  DocumentHelperService getDocumentHelperService()
           
 java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityEmploymentInformationInfo> getEntityEmploymentInformationInfo(java.lang.String entityId)
           
 java.lang.String getFullMemberName(java.lang.String memberTypeCode, org.kuali.rice.kns.bo.BusinessObject member)
          Deprecated. This method was called previously only by getMemberFullName(). The logic in this method has been moved there.
protected  java.util.List<GroupAttributeDataImpl> getGroupAttributeData(IdentityManagementGroupDocument identityManagementGroupDocument, java.util.List<GroupAttributeDataImpl> origAttributes)
           
protected  java.util.List<GroupMemberImpl> getGroupMembers(IdentityManagementGroupDocument identityManagementGroupDocument, java.util.List<GroupMemberImpl> origGroupMembers)
           
protected  java.util.List<? extends org.kuali.rice.kim.bo.Group> getGroupsByIds(java.util.List<java.lang.String> groupIds)
          Looks up GroupInfo objects for each group id passed in
protected  org.kuali.rice.kim.service.GroupService getGroupService()
           
protected  org.kuali.rice.kim.service.IdentityManagementService getIdentityManagementService()
           
protected  org.kuali.rice.kim.service.IdentityService getIdentityService()
           
 KimDocumentRoleMember getKimDocumentRoleMember(java.lang.String memberTypeCode, java.lang.String memberId, java.lang.String roleId)
           
 KimTypeInfoService getKimTypeInfoService()
           
protected  AttributeDefinition getKNSAttributeDefinition(java.lang.String kimTypId, java.lang.String attrDefnId)
          Finds the KNS attribute used to render the given KimAttributeData
 org.kuali.rice.kns.bo.BusinessObject getMember(java.lang.String memberTypeCode, java.lang.String memberId)
           
 java.lang.String getMemberFullName(java.lang.String memberTypeCode, java.lang.String memberId)
           
 java.lang.String getMemberIdByName(java.lang.String memberTypeCode, java.lang.String memberNamespaceCode, java.lang.String memberName)
           
 java.lang.String getMemberName(java.lang.String memberTypeCode, org.kuali.rice.kns.bo.BusinessObject member)
           
 java.lang.String getMemberName(java.lang.String memberTypeCode, java.lang.String memberId)
           
 java.lang.String getMemberNamespaceCode(java.lang.String memberTypeCode, org.kuali.rice.kns.bo.BusinessObject member)
           
 java.lang.String getMemberNamespaceCode(java.lang.String memberTypeCode, java.lang.String memberId)
           
 ParameterService getParameterService()
           
 java.util.List<KimDelegationImpl> getPersonDelegations(java.lang.String principalId)
           
protected  org.kuali.rice.kim.service.ResponsibilityService getResponsibilityService()
           
protected  java.util.List<KimDelegationImpl> getRoleDelegations(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<KimDelegationImpl> origDelegations)
           
 java.util.List<KimDelegationImpl> getRoleDelegations(java.lang.String roleId)
           
protected  org.kuali.rice.kim.service.RoleManagementService getRoleManagementService()
           
 RoleMemberImpl getRoleMember(java.lang.String roleMemberId)
           
protected  java.util.List<RoleMemberAttributeDataImpl> getRoleMemberAttributeData(java.util.List<KimDocumentRoleQualifier> qualifiers, java.util.List<RoleMemberAttributeDataImpl> origAttributes, boolean activatingInactive, java.lang.String newRoleMemberIdAssigned)
           
protected  RoleMemberImpl getRoleMemberForRoleMemberId(java.lang.String roleMemberId)
           
 java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActionImpls(java.lang.String roleMemberId)
           
protected  java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActions(IdentityManagementRoleDocument identityManagementRoleDocument)
           
protected  java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActions(KimDocumentRoleMember documentRoleMember, RoleMemberImpl origRoleMemberImplTemp, boolean activatingInactive, java.lang.String newRoleMemberIdAssigned)
           
protected  java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActions(java.util.List<RoleMemberImpl> newRoleMembersList)
           
protected  java.util.List<RoleMemberImpl> getRoleMembers(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<RoleMemberImpl> origRoleMembers)
           
 java.util.List<KimDocumentRoleMember> getRoleMembers(java.util.Map<java.lang.String,java.lang.String> fieldValues)
           
protected  java.util.List<RoleMemberImpl> getRoleMembersForPrincipal(java.lang.String principalId)
           
protected  java.util.List<RolePermissionImpl> getRolePermissions(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<RolePermissionImpl> origRolePermissions)
           
protected  java.util.List<RoleResponsibilityImpl> getRoleResponsibilities(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<RoleResponsibilityImpl> origRoleResponsibilities)
           
protected  java.util.List<RoleResponsibilityActionImpl> getRoleResponsibilitiesActions(IdentityManagementRoleDocument identityManagementRoleDocument)
           
protected  java.util.List<RoleResponsibilityActionImpl> getRoleResponsibilityActionImpls(java.lang.String roleResponsibilityId)
           
protected  java.util.List<RoleResponsibilityActionImpl> getRoleRspActions(java.lang.String roleMemberId)
           
protected  org.kuali.rice.kim.service.RoleService getRoleService()
           
protected  java.util.List<RoleImpl> getRolesForPrincipal(java.lang.String principalId)
           
protected  java.util.List<PersonDocumentAddress> loadAddresses(IdentityManagementPersonDocument identityManagementPersonDocument, java.lang.String principalId, java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityAddressInfo> entityAddresses, boolean suppressDisplay)
           
protected  java.util.List<PersonDocumentAffiliation> loadAffiliations(java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityAffiliationInfo> affiliations, java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityEmploymentInformationInfo> empInfos)
           
protected  java.util.List<RoleDocumentDelegationMemberQualifier> loadDelegationMemberQualifiers(IdentityManagementPersonDocument identityManagementPersonDocument, AttributeDefinitionMap origAttributeDefinitions, java.util.List<KimDelegationMemberAttributeDataImpl> attributeDataList)
           
protected  java.util.List<RoleDocumentDelegationMemberQualifier> loadDelegationMemberQualifiers(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<KimDelegationMemberAttributeDataImpl> attributeDataList)
           
protected  java.util.List<RoleDocumentDelegationMember> loadDelegationMembers(IdentityManagementPersonDocument identityManagementPersonDocument, java.util.List<KimDelegationMemberImpl> members, RoleImpl roleImpl)
           
protected  java.util.List<RoleDocumentDelegationMember> loadDelegationMembers(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<KimDelegationMemberImpl> members)
           
protected  void loadDelegationsToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument)
           
protected  java.util.List<PersonDocumentEmail> loadEmails(IdentityManagementPersonDocument identityManagementPersonDocument, java.lang.String principalId, java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityEmailInfo> entityEmails, boolean suppressDisplay)
           
 void loadEntityToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument, java.lang.String principalId)
          This method is to load entity to person document pending Bos when user 'initiate' a document for 'editing' entity.
 void loadGroupDoc(IdentityManagementGroupDocument identityManagementGroupDocument, org.kuali.rice.kim.bo.group.dto.GroupInfo groupInfo)
          This method loads a role document
protected  java.util.List<GroupDocumentMember> loadGroupMembers(IdentityManagementGroupDocument identityManagementGroupDocument, java.util.List<GroupMemberImpl> members)
           
protected  java.util.List<GroupDocumentQualifier> loadGroupQualifiers(IdentityManagementGroupDocument IdentityManagementGroupDocument, java.util.List<GroupAttributeDataImpl> attributeDataList)
           
protected  void loadGroupToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument, java.util.List<? extends org.kuali.rice.kim.bo.Group> groups)
          This method load related group data to pending document when usert initiate the 'edit'.
protected  java.util.List<KimDocumentRoleResponsibilityAction> loadKimDocumentRoleRespActions(java.util.List<RoleResponsibilityActionImpl> roleRespActionImpls)
           
protected  void loadMemberRoleRspActions(IdentityManagementRoleDocument identityManagementRoleDocument)
           
protected  java.util.List<PersonDocumentName> loadNames(IdentityManagementPersonDocument personDoc, java.lang.String principalId, java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityNameInfo> names, boolean suppressDisplay)
           
protected  java.util.List<KimDocumentRolePermission> loadPermissions(java.util.List<RolePermissionImpl> rolePermissions)
           
protected  java.util.List<PersonDocumentPhone> loadPhones(IdentityManagementPersonDocument identityManagementPersonDocument, java.lang.String principalId, java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityPhoneInfo> entityPhones, boolean suppressDisplay)
           
protected  PersonDocumentPrivacy loadPrivacyReferences(org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences privacyPreferences)
           
protected  java.util.List<KimDocumentRoleResponsibility> loadResponsibilities(java.util.List<RoleResponsibilityImpl> roleResponsibilities)
           
protected  void loadResponsibilityRoleRspActions(IdentityManagementRoleDocument identityManagementRoleDocument)
           
 void loadRoleDoc(IdentityManagementRoleDocument identityManagementRoleDocument, org.kuali.rice.kim.bo.role.dto.KimRoleInfo kimRole)
          This method loads a role document
protected  java.util.List<RoleDocumentDelegation> loadRoleDocumentDelegations(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<KimDelegationImpl> delegations)
           
protected  java.util.List<KimDocumentRoleQualifier> loadRoleMemberQualifiers(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<RoleMemberAttributeDataImpl> attributeDataList)
           
protected  java.util.List<KimDocumentRoleMember> loadRoleMembers(IdentityManagementRoleDocument identityManagementRoleDocument, java.util.List<RoleMemberImpl> members)
           
protected  void loadRoleRstAction(PersonDocumentRole role)
           
protected  void loadRoleToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument)
           
protected  java.util.List<KimDelegationImpl> populateDelegations(IdentityManagementPersonDocument identityManagementPersonDocument)
           
protected  java.util.List<KimDocumentRoleMember> populateDocRolePrncpl(java.lang.String namespaceCode, java.util.List<RoleMemberImpl> roleMembers, java.lang.String principalId, AttributeDefinitionMap definitions)
           
protected  java.util.List<KimDocumentRoleQualifier> populateDocRoleQualifier(java.lang.String namespaceCode, java.util.List<RoleMemberAttributeDataImpl> qualifiers, AttributeDefinitionMap definitions)
           
protected  java.util.List<GroupMemberImpl> populateGroupMembers(IdentityManagementPersonDocument identityManagementPersonDocument)
           
protected  java.util.List<RoleMemberImpl> populateRoleMembers(IdentityManagementPersonDocument identityManagementPersonDocument)
           
protected  java.util.List<RoleResponsibilityActionImpl> populateRoleRspActions(IdentityManagementPersonDocument identityManagementPersonDocument)
           
 void saveEntityPerson(IdentityManagementPersonDocument identityManagementPersonDocument)
          This method to populate Entity tables from person document pending tables when it is approved.
 void saveGroup(IdentityManagementGroupDocument identityManagementGroupDocument)
          This method ...
 void saveRole(IdentityManagementRoleDocument identityManagementRoleDocument)
          This method ...
protected  void setAttrDefnIdForQualifier(KimDocumentRoleQualifier qualifier, AttributeDefinition definition)
           
 void setDelegationMembersInDocument(IdentityManagementPersonDocument identityManagementPersonDocument)
           
 void setDelegationMembersInDocument(IdentityManagementRoleDocument identityManagementRoleDocument)
           
 void setParameterService(ParameterService parameterService)
           
 void setResponsibilityService(org.kuali.rice.kim.service.ResponsibilityService responsibilityService)
           
 void setRoleService(org.kuali.rice.kim.service.RoleService roleService)
           
protected  void setupAddress(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityEntityTypeImpl entityType, java.util.List<org.kuali.rice.kim.bo.entity.KimEntityAddress> origAddresses)
           
protected  void setupAffiliation(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityImpl kimEntity, java.util.List<KimEntityAffiliationImpl> origAffiliations, java.util.List<KimEntityEmploymentInformationImpl> origEmpInfos)
           
protected  void setupEmail(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityEntityTypeImpl entityType, java.util.List<org.kuali.rice.kim.bo.entity.KimEntityEmail> origEmails)
           
protected  void setupName(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityImpl kimEntity, java.util.List<KimEntityNameImpl> origNames)
           
protected  void setupPhone(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityEntityTypeImpl entityType, java.util.List<org.kuali.rice.kim.bo.entity.KimEntityPhone> origPhones)
           
protected  boolean setupPrincipal(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityImpl kimEntity, java.util.List<KimPrincipalImpl> origPrincipals)
           
protected  void setupPrivacy(IdentityManagementPersonDocument identityManagementPersonDocument, KimEntityImpl kimEntity, KimEntityPrivacyPreferencesImpl origPrivacy)
           
protected  void updateAttrValIfNecessary(RoleMemberAttributeDataImpl roleMemberAttributeData)
          Determines if the attribute value on the attribute data should be updated; if so, it performs some attribute value formatting.
protected  void updateResponsibilityActionVersionNumber(RoleResponsibilityActionImpl newRoleRspAction, java.util.List<RoleResponsibilityActionImpl> origRoleRespActionImpls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UiDocumentServiceImpl

public UiDocumentServiceImpl()
Method Detail

saveEntityPerson

public void saveEntityPerson(IdentityManagementPersonDocument identityManagementPersonDocument)
Description copied from interface: UiDocumentService
This method to populate Entity tables from person document pending tables when it is approved.

Specified by:
saveEntityPerson in interface UiDocumentService
See Also:
UiDocumentService.saveEntityPerson(IdentityManagementPersonDocument)

getAttributeEntries

public java.util.Map<java.lang.String,java.lang.Object> getAttributeEntries(AttributeDefinitionMap definitions)
Description copied from interface: UiDocumentService
This method is to set up the DD attribute entry map for role qualifiers, so it can be rendered.

Specified by:
getAttributeEntries in interface UiDocumentService
See Also:
UiDocumentService.getAttributeEntries(AttributeDefinitionMap)

loadEntityToPersonDoc

public void loadEntityToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument,
                                  java.lang.String principalId)
Description copied from interface: UiDocumentService
This method is to load entity to person document pending Bos when user 'initiate' a document for 'editing' entity.

Specified by:
loadEntityToPersonDoc in interface UiDocumentService
See Also:
UiDocumentService.loadEntityToPersonDoc(IdentityManagementPersonDocument, String)

getPersonDelegations

public java.util.List<KimDelegationImpl> getPersonDelegations(java.lang.String principalId)

loadDelegationsToPersonDoc

protected void loadDelegationsToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument)

setDelegationMembersInDocument

public void setDelegationMembersInDocument(IdentityManagementPersonDocument identityManagementPersonDocument)

loadDelegationMembers

protected java.util.List<RoleDocumentDelegationMember> loadDelegationMembers(IdentityManagementPersonDocument identityManagementPersonDocument,
                                                                             java.util.List<KimDelegationMemberImpl> members,
                                                                             RoleImpl roleImpl)

loadDelegationMemberQualifiers

protected java.util.List<RoleDocumentDelegationMemberQualifier> loadDelegationMemberQualifiers(IdentityManagementPersonDocument identityManagementPersonDocument,
                                                                                               AttributeDefinitionMap origAttributeDefinitions,
                                                                                               java.util.List<KimDelegationMemberAttributeDataImpl> attributeDataList)

loadGroupToPersonDoc

protected void loadGroupToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument,
                                    java.util.List<? extends org.kuali.rice.kim.bo.Group> groups)
This method load related group data to pending document when usert initiate the 'edit'.

Parameters:
identityManagementPersonDocument -
groups -

loadRoleToPersonDoc

protected void loadRoleToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument)

getAttributeDefinitionsForRole

protected AttributeDefinitionMap getAttributeDefinitionsForRole(PersonDocumentRole role)

loadRoleRstAction

protected void loadRoleRstAction(PersonDocumentRole role)

setAttrDefnIdForQualifier

protected void setAttrDefnIdForQualifier(KimDocumentRoleQualifier qualifier,
                                         AttributeDefinition definition)

getAttributeDefnId

protected java.lang.String getAttributeDefnId(AttributeDefinition definition)

getEntityEmploymentInformationInfo

public java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityEmploymentInformationInfo> getEntityEmploymentInformationInfo(java.lang.String entityId)
Specified by:
getEntityEmploymentInformationInfo in interface UiDocumentService

getRolesForPrincipal

protected java.util.List<RoleImpl> getRolesForPrincipal(java.lang.String principalId)

getRoleMembersForPrincipal

protected java.util.List<RoleMemberImpl> getRoleMembersForPrincipal(java.lang.String principalId)

getRoleMember

public RoleMemberImpl getRoleMember(java.lang.String roleMemberId)
Specified by:
getRoleMember in interface UiDocumentService

getRoleRspActions

protected java.util.List<RoleResponsibilityActionImpl> getRoleRspActions(java.lang.String roleMemberId)

populateDocRolePrncpl

protected java.util.List<KimDocumentRoleMember> populateDocRolePrncpl(java.lang.String namespaceCode,
                                                                      java.util.List<RoleMemberImpl> roleMembers,
                                                                      java.lang.String principalId,
                                                                      AttributeDefinitionMap definitions)

populateDocRoleQualifier

protected java.util.List<KimDocumentRoleQualifier> populateDocRoleQualifier(java.lang.String namespaceCode,
                                                                            java.util.List<RoleMemberAttributeDataImpl> qualifiers,
                                                                            AttributeDefinitionMap definitions)

loadNames

protected java.util.List<PersonDocumentName> loadNames(IdentityManagementPersonDocument personDoc,
                                                       java.lang.String principalId,
                                                       java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityNameInfo> names,
                                                       boolean suppressDisplay)

canModifyEntity

public boolean canModifyEntity(java.lang.String currentUserPrincipalId,
                               java.lang.String toModifyPrincipalId)
Specified by:
canModifyEntity in interface UiDocumentService

canOverrideEntityPrivacyPreferences

public boolean canOverrideEntityPrivacyPreferences(java.lang.String currentUserPrincipalId,
                                                   java.lang.String toModifyPrincipalId)
Specified by:
canOverrideEntityPrivacyPreferences in interface UiDocumentService

canAssignToRole

protected boolean canAssignToRole(IdentityManagementRoleDocument document,
                                  java.lang.String initiatorPrincipalId)

loadAffiliations

protected java.util.List<PersonDocumentAffiliation> loadAffiliations(java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityAffiliationInfo> affiliations,
                                                                     java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityEmploymentInformationInfo> empInfos)

setupPrincipal

protected boolean setupPrincipal(IdentityManagementPersonDocument identityManagementPersonDocument,
                                 KimEntityImpl kimEntity,
                                 java.util.List<KimPrincipalImpl> origPrincipals)

setupPrivacy

protected void setupPrivacy(IdentityManagementPersonDocument identityManagementPersonDocument,
                            KimEntityImpl kimEntity,
                            KimEntityPrivacyPreferencesImpl origPrivacy)

loadPrivacyReferences

protected PersonDocumentPrivacy loadPrivacyReferences(org.kuali.rice.kim.bo.entity.KimEntityPrivacyPreferences privacyPreferences)

setupName

protected void setupName(IdentityManagementPersonDocument identityManagementPersonDocument,
                         KimEntityImpl kimEntity,
                         java.util.List<KimEntityNameImpl> origNames)

setupAffiliation

protected void setupAffiliation(IdentityManagementPersonDocument identityManagementPersonDocument,
                                KimEntityImpl kimEntity,
                                java.util.List<KimEntityAffiliationImpl> origAffiliations,
                                java.util.List<KimEntityEmploymentInformationImpl> origEmpInfos)

setupPhone

protected void setupPhone(IdentityManagementPersonDocument identityManagementPersonDocument,
                          KimEntityEntityTypeImpl entityType,
                          java.util.List<org.kuali.rice.kim.bo.entity.KimEntityPhone> origPhones)

loadPhones

protected java.util.List<PersonDocumentPhone> loadPhones(IdentityManagementPersonDocument identityManagementPersonDocument,
                                                         java.lang.String principalId,
                                                         java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityPhoneInfo> entityPhones,
                                                         boolean suppressDisplay)

setupEmail

protected void setupEmail(IdentityManagementPersonDocument identityManagementPersonDocument,
                          KimEntityEntityTypeImpl entityType,
                          java.util.List<org.kuali.rice.kim.bo.entity.KimEntityEmail> origEmails)

loadEmails

protected java.util.List<PersonDocumentEmail> loadEmails(IdentityManagementPersonDocument identityManagementPersonDocument,
                                                         java.lang.String principalId,
                                                         java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityEmailInfo> entityEmails,
                                                         boolean suppressDisplay)

setupAddress

protected void setupAddress(IdentityManagementPersonDocument identityManagementPersonDocument,
                            KimEntityEntityTypeImpl entityType,
                            java.util.List<org.kuali.rice.kim.bo.entity.KimEntityAddress> origAddresses)

loadAddresses

protected java.util.List<PersonDocumentAddress> loadAddresses(IdentityManagementPersonDocument identityManagementPersonDocument,
                                                              java.lang.String principalId,
                                                              java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityAddressInfo> entityAddresses,
                                                              boolean suppressDisplay)

populateGroupMembers

protected java.util.List<GroupMemberImpl> populateGroupMembers(IdentityManagementPersonDocument identityManagementPersonDocument)

populateRoleMembers

protected java.util.List<RoleMemberImpl> populateRoleMembers(IdentityManagementPersonDocument identityManagementPersonDocument)

populateDelegations

protected java.util.List<KimDelegationImpl> populateDelegations(IdentityManagementPersonDocument identityManagementPersonDocument)

getBlankRoleMemberAttrs

protected java.util.List<RoleMemberAttributeDataImpl> getBlankRoleMemberAttrs(java.util.List<RoleMemberImpl> rolePrncpls)

populateRoleRspActions

protected java.util.List<RoleResponsibilityActionImpl> populateRoleRspActions(IdentityManagementPersonDocument identityManagementPersonDocument)

getBusinessObjectService

protected BusinessObjectService getBusinessObjectService()

getIdentityManagementService

protected org.kuali.rice.kim.service.IdentityManagementService getIdentityManagementService()

getIdentityService

protected org.kuali.rice.kim.service.IdentityService getIdentityService()

getGroupService

protected org.kuali.rice.kim.service.GroupService getGroupService()

getDocumentHelperService

protected DocumentHelperService getDocumentHelperService()

getRoleService

protected org.kuali.rice.kim.service.RoleService getRoleService()

getRoleManagementService

protected org.kuali.rice.kim.service.RoleManagementService getRoleManagementService()

setRoleService

public void setRoleService(org.kuali.rice.kim.service.RoleService roleService)

getResponsibilityService

protected org.kuali.rice.kim.service.ResponsibilityService getResponsibilityService()

setResponsibilityService

public void setResponsibilityService(org.kuali.rice.kim.service.ResponsibilityService responsibilityService)

loadRoleDoc

public void loadRoleDoc(IdentityManagementRoleDocument identityManagementRoleDocument,
                        org.kuali.rice.kim.bo.role.dto.KimRoleInfo kimRole)
Description copied from interface: UiDocumentService
This method loads a role document

Specified by:
loadRoleDoc in interface UiDocumentService

setDelegationMembersInDocument

public void setDelegationMembersInDocument(IdentityManagementRoleDocument identityManagementRoleDocument)
Specified by:
setDelegationMembersInDocument in interface UiDocumentService

loadResponsibilities

protected java.util.List<KimDocumentRoleResponsibility> loadResponsibilities(java.util.List<RoleResponsibilityImpl> roleResponsibilities)

loadPermissions

protected java.util.List<KimDocumentRolePermission> loadPermissions(java.util.List<RolePermissionImpl> rolePermissions)

loadRoleMembers

protected java.util.List<KimDocumentRoleMember> loadRoleMembers(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                java.util.List<RoleMemberImpl> members)

loadResponsibilityRoleRspActions

protected void loadResponsibilityRoleRspActions(IdentityManagementRoleDocument identityManagementRoleDocument)

getRoleResponsibilityActionImpls

protected java.util.List<RoleResponsibilityActionImpl> getRoleResponsibilityActionImpls(java.lang.String roleResponsibilityId)

getRoleMemberResponsibilityActionImpls

public java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActionImpls(java.lang.String roleMemberId)
Specified by:
getRoleMemberResponsibilityActionImpls in interface UiDocumentService

loadMemberRoleRspActions

protected void loadMemberRoleRspActions(IdentityManagementRoleDocument identityManagementRoleDocument)

loadKimDocumentRoleRespActions

protected java.util.List<KimDocumentRoleResponsibilityAction> loadKimDocumentRoleRespActions(java.util.List<RoleResponsibilityActionImpl> roleRespActionImpls)

getMember

public org.kuali.rice.kns.bo.BusinessObject getMember(java.lang.String memberTypeCode,
                                                      java.lang.String memberId)
Specified by:
getMember in interface UiDocumentService

getMemberName

public java.lang.String getMemberName(java.lang.String memberTypeCode,
                                      java.lang.String memberId)
Specified by:
getMemberName in interface UiDocumentService

getMemberFullName

public java.lang.String getMemberFullName(java.lang.String memberTypeCode,
                                          java.lang.String memberId)

getMemberNamespaceCode

public java.lang.String getMemberNamespaceCode(java.lang.String memberTypeCode,
                                               java.lang.String memberId)
Specified by:
getMemberNamespaceCode in interface UiDocumentService

getMemberIdByName

public java.lang.String getMemberIdByName(java.lang.String memberTypeCode,
                                          java.lang.String memberNamespaceCode,
                                          java.lang.String memberName)
Specified by:
getMemberIdByName in interface UiDocumentService

getMemberName

public java.lang.String getMemberName(java.lang.String memberTypeCode,
                                      org.kuali.rice.kns.bo.BusinessObject member)
Specified by:
getMemberName in interface UiDocumentService

getFullMemberName

public java.lang.String getFullMemberName(java.lang.String memberTypeCode,
                                          org.kuali.rice.kns.bo.BusinessObject member)
Deprecated. This method was called previously only by getMemberFullName(). The logic in this method has been moved there.


getMemberNamespaceCode

public java.lang.String getMemberNamespaceCode(java.lang.String memberTypeCode,
                                               org.kuali.rice.kns.bo.BusinessObject member)
Specified by:
getMemberNamespaceCode in interface UiDocumentService

loadRoleMemberQualifiers

protected java.util.List<KimDocumentRoleQualifier> loadRoleMemberQualifiers(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                            java.util.List<RoleMemberAttributeDataImpl> attributeDataList)

getRoleDelegations

public java.util.List<KimDelegationImpl> getRoleDelegations(java.lang.String roleId)
Specified by:
getRoleDelegations in interface UiDocumentService

loadRoleDocumentDelegations

protected java.util.List<RoleDocumentDelegation> loadRoleDocumentDelegations(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                             java.util.List<KimDelegationImpl> delegations)

loadDelegationMembers

protected java.util.List<RoleDocumentDelegationMember> loadDelegationMembers(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                             java.util.List<KimDelegationMemberImpl> members)

getRoleMemberForRoleMemberId

protected RoleMemberImpl getRoleMemberForRoleMemberId(java.lang.String roleMemberId)

loadDelegationMemberQualifiers

protected java.util.List<RoleDocumentDelegationMemberQualifier> loadDelegationMemberQualifiers(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                                               java.util.List<KimDelegationMemberAttributeDataImpl> attributeDataList)

saveRole

public void saveRole(IdentityManagementRoleDocument identityManagementRoleDocument)
Description copied from interface: UiDocumentService
This method ...

Specified by:
saveRole in interface UiDocumentService
See Also:
UiDocumentService.saveEntityPerson(IdentityManagementPersonDocument)

getRolePermissions

protected java.util.List<RolePermissionImpl> getRolePermissions(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                java.util.List<RolePermissionImpl> origRolePermissions)

getRoleResponsibilities

protected java.util.List<RoleResponsibilityImpl> getRoleResponsibilities(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                         java.util.List<RoleResponsibilityImpl> origRoleResponsibilities)

getRoleResponsibilitiesActions

protected java.util.List<RoleResponsibilityActionImpl> getRoleResponsibilitiesActions(IdentityManagementRoleDocument identityManagementRoleDocument)

updateResponsibilityActionVersionNumber

protected void updateResponsibilityActionVersionNumber(RoleResponsibilityActionImpl newRoleRspAction,
                                                       java.util.List<RoleResponsibilityActionImpl> origRoleRespActionImpls)

getRoleMemberResponsibilityActions

protected java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActions(java.util.List<RoleMemberImpl> newRoleMembersList)

getRoleMemberResponsibilityActions

protected java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActions(IdentityManagementRoleDocument identityManagementRoleDocument)

getRoleMembers

protected java.util.List<RoleMemberImpl> getRoleMembers(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                        java.util.List<RoleMemberImpl> origRoleMembers)

getRoleMemberResponsibilityActions

protected java.util.List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActions(KimDocumentRoleMember documentRoleMember,
                                                                                          RoleMemberImpl origRoleMemberImplTemp,
                                                                                          boolean activatingInactive,
                                                                                          java.lang.String newRoleMemberIdAssigned)

getRoleMemberAttributeData

protected java.util.List<RoleMemberAttributeDataImpl> getRoleMemberAttributeData(java.util.List<KimDocumentRoleQualifier> qualifiers,
                                                                                 java.util.List<RoleMemberAttributeDataImpl> origAttributes,
                                                                                 boolean activatingInactive,
                                                                                 java.lang.String newRoleMemberIdAssigned)

updateAttrValIfNecessary

protected void updateAttrValIfNecessary(RoleMemberAttributeDataImpl roleMemberAttributeData)
Determines if the attribute value on the attribute data should be updated; if so, it performs some attribute value formatting. In the default implementation, this method formats checkbox controls

Parameters:
roleMemberAttributeData - a role member qualifier attribute to update

formatAttrValIfNecessary

protected void formatAttrValIfNecessary(KimDocumentRoleQualifier roleQualifier)

formatCheckboxAttributeData

protected void formatCheckboxAttributeData(KimDocumentRoleQualifier roleQualifier)

getKNSAttributeDefinition

protected AttributeDefinition getKNSAttributeDefinition(java.lang.String kimTypId,
                                                        java.lang.String attrDefnId)
Finds the KNS attribute used to render the given KimAttributeData

Parameters:
roleMemberAttributeData - a qualifier's attribute information
Returns:
the KNS attribute used to render that qualifier, or null if the AttributeDefinition cannot be determined

convertCheckboxAttributeData

protected void convertCheckboxAttributeData(RoleMemberAttributeDataImpl roleMemberAttributeData)
Formats the attribute value on this checkbox attribute, changing "on" to "Y" and "off" to "N"

Parameters:
roleMemberAttributeData - the attribute data to format the attribute value of

getRoleDelegations

protected java.util.List<KimDelegationImpl> getRoleDelegations(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                               java.util.List<KimDelegationImpl> origDelegations)

getDelegationMembers

protected java.util.List<KimDelegationMemberImpl> getDelegationMembers(java.util.List<RoleDocumentDelegationMember> delegationMembers,
                                                                       java.util.List<KimDelegationMemberImpl> origDelegationMembers,
                                                                       boolean activatingInactive,
                                                                       java.lang.String newDelegationIdAssigned)

getDelegationMemberAttributeData

protected java.util.List<KimDelegationMemberAttributeDataImpl> getDelegationMemberAttributeData(java.util.List<RoleDocumentDelegationMemberQualifier> qualifiers,
                                                                                                java.util.List<KimDelegationMemberAttributeDataImpl> origAttributes,
                                                                                                boolean activatingInactive,
                                                                                                java.lang.String delegationMemberId)

loadGroupDoc

public void loadGroupDoc(IdentityManagementGroupDocument identityManagementGroupDocument,
                         org.kuali.rice.kim.bo.group.dto.GroupInfo groupInfo)
Description copied from interface: UiDocumentService
This method loads a role document

Specified by:
loadGroupDoc in interface UiDocumentService

loadGroupMembers

protected java.util.List<GroupDocumentMember> loadGroupMembers(IdentityManagementGroupDocument identityManagementGroupDocument,
                                                               java.util.List<GroupMemberImpl> members)

loadGroupQualifiers

protected java.util.List<GroupDocumentQualifier> loadGroupQualifiers(IdentityManagementGroupDocument IdentityManagementGroupDocument,
                                                                     java.util.List<GroupAttributeDataImpl> attributeDataList)

saveGroup

public void saveGroup(IdentityManagementGroupDocument identityManagementGroupDocument)
Description copied from interface: UiDocumentService
This method ...

Specified by:
saveGroup in interface UiDocumentService
See Also:
UiDocumentService.saveEntityPerson(IdentityManagementPersonDocument)

getGroupsByIds

protected java.util.List<? extends org.kuali.rice.kim.bo.Group> getGroupsByIds(java.util.List<java.lang.String> groupIds)
Looks up GroupInfo objects for each group id passed in

Parameters:
groupIds - the List of group ids to look up GroupInfo records on
Returns:
a List of GroupInfo records

getGroupMembers

protected java.util.List<GroupMemberImpl> getGroupMembers(IdentityManagementGroupDocument identityManagementGroupDocument,
                                                          java.util.List<GroupMemberImpl> origGroupMembers)

getGroupAttributeData

protected java.util.List<GroupAttributeDataImpl> getGroupAttributeData(IdentityManagementGroupDocument identityManagementGroupDocument,
                                                                       java.util.List<GroupAttributeDataImpl> origAttributes)

getKimDocumentRoleMember

public KimDocumentRoleMember getKimDocumentRoleMember(java.lang.String memberTypeCode,
                                                      java.lang.String memberId,
                                                      java.lang.String roleId)
Specified by:
getKimDocumentRoleMember in interface UiDocumentService

getChangedRoleResponsibilityIds

protected java.util.Set<java.lang.String> getChangedRoleResponsibilityIds(IdentityManagementRoleDocument identityManagementRoleDocument,
                                                                          java.util.List<RoleResponsibilityImpl> origRoleResponsibilities)

getKimTypeInfoService

public KimTypeInfoService getKimTypeInfoService()

getRoleMembers

public java.util.List<KimDocumentRoleMember> getRoleMembers(java.util.Map<java.lang.String,java.lang.String> fieldValues)
Specified by:
getRoleMembers in interface UiDocumentService

getParameterService

public ParameterService getParameterService()

setParameterService

public void setParameterService(ParameterService parameterService)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.