Package org.bonitasoft.engine.identity
Class ImportOrganizationMergeDuplicatesStrategy
- java.lang.Object
-
- org.bonitasoft.engine.identity.ImportOrganizationMergeDuplicatesStrategy
-
- All Implemented Interfaces:
ImportOrganizationStrategy
public class ImportOrganizationMergeDuplicatesStrategy extends java.lang.Object implements ImportOrganizationStrategy
- Author:
- Baptiste Mesta, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description ImportOrganizationMergeDuplicatesStrategy(IdentityService identityService, SCustomUserInfoValueAPI userInfoValueAPI, TechnicalLoggerService logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfoundExistingCustomUserInfoDefinition(SCustomUserInfoDefinition existingUserInfoDefinition, ExportedCustomUserInfoDefinition newUserInfoDefinition)voidfoundExistingGroup(SGroup existingGroup, ExportedGroup newGroup)voidfoundExistingMembership(SUserMembership existingMembership)voidfoundExistingRole(SRole existingRole, ExportedRole newRole)voidfoundExistingUser(SUser existingUser, ExportedUser userToImport)protected EntityUpdateDescriptorgetGroupDescriptor(SGroup existingGroup, ExportedGroup exportedGroup)protected EntityUpdateDescriptorgetRoleDescriptor(SRole existingRole, ExportedRole exportedRole)protected EntityUpdateDescriptorgetUserContactInfoDescriptor(ExportedUser user, boolean isPersonal)protected EntityUpdateDescriptorgetUserDescriptor(ExportedUser user)booleanshouldSkipUpdateManagerOfExistingUser()
-
-
-
Constructor Detail
-
ImportOrganizationMergeDuplicatesStrategy
public ImportOrganizationMergeDuplicatesStrategy(IdentityService identityService, SCustomUserInfoValueAPI userInfoValueAPI, TechnicalLoggerService logger)
-
-
Method Detail
-
foundExistingGroup
public void foundExistingGroup(SGroup existingGroup, ExportedGroup newGroup) throws SIdentityException
- Specified by:
foundExistingGroupin interfaceImportOrganizationStrategy- Throws:
SIdentityException
-
foundExistingUser
public void foundExistingUser(SUser existingUser, ExportedUser userToImport) throws SBonitaException
- Specified by:
foundExistingUserin interfaceImportOrganizationStrategy- Throws:
SBonitaException
-
foundExistingRole
public void foundExistingRole(SRole existingRole, ExportedRole newRole) throws SIdentityException
- Specified by:
foundExistingRolein interfaceImportOrganizationStrategy- Throws:
SIdentityException
-
foundExistingMembership
public void foundExistingMembership(SUserMembership existingMembership)
- Specified by:
foundExistingMembershipin interfaceImportOrganizationStrategy
-
getRoleDescriptor
protected EntityUpdateDescriptor getRoleDescriptor(SRole existingRole, ExportedRole exportedRole)
-
getGroupDescriptor
protected EntityUpdateDescriptor getGroupDescriptor(SGroup existingGroup, ExportedGroup exportedGroup)
-
getUserContactInfoDescriptor
protected EntityUpdateDescriptor getUserContactInfoDescriptor(ExportedUser user, boolean isPersonal)
-
getUserDescriptor
protected EntityUpdateDescriptor getUserDescriptor(ExportedUser user)
-
foundExistingCustomUserInfoDefinition
public void foundExistingCustomUserInfoDefinition(SCustomUserInfoDefinition existingUserInfoDefinition, ExportedCustomUserInfoDefinition newUserInfoDefinition) throws SIdentityException
- Specified by:
foundExistingCustomUserInfoDefinitionin interfaceImportOrganizationStrategy- Throws:
SIdentityException
-
shouldSkipUpdateManagerOfExistingUser
public boolean shouldSkipUpdateManagerOfExistingUser()
- Specified by:
shouldSkipUpdateManagerOfExistingUserin interfaceImportOrganizationStrategy- Returns:
- true if users that were already existing should have their manager set
-
-