Package org.bonitasoft.engine.identity
Class ImportOrganizationMergeDuplicatesStrategy
java.lang.Object
org.bonitasoft.engine.identity.ImportOrganizationMergeDuplicatesStrategy
- All Implemented Interfaces:
ImportOrganizationStrategy
public class ImportOrganizationMergeDuplicatesStrategy
extends Object
implements ImportOrganizationStrategy
- Author:
- Baptiste Mesta, Matthieu Chaffotte
-
Constructor Summary
ConstructorsConstructorDescriptionImportOrganizationMergeDuplicatesStrategy(IdentityService identityService, SCustomUserInfoValueAPI userInfoValueAPI) -
Method Summary
Modifier and TypeMethodDescriptionvoidfoundExistingCustomUserInfoDefinition(SCustomUserInfoDefinition existingUserInfoDefinition, org.bonitasoft.engine.identity.xml.ExportedCustomUserInfoDefinition newUserInfoDefinition) voidfoundExistingGroup(SGroup existingGroup, org.bonitasoft.engine.identity.xml.ExportedGroup newGroup) voidfoundExistingMembership(SUserMembership existingMembership) voidfoundExistingRole(SRole existingRole, org.bonitasoft.engine.identity.xml.ExportedRole newRole) voidfoundExistingUser(SUser existingUser, org.bonitasoft.engine.identity.xml.ExportedUser userToImport) protected EntityUpdateDescriptorgetGroupDescriptor(SGroup existingGroup, org.bonitasoft.engine.identity.xml.ExportedGroup exportedGroup) protected EntityUpdateDescriptorgetRoleDescriptor(SRole existingRole, org.bonitasoft.engine.identity.xml.ExportedRole exportedRole) protected EntityUpdateDescriptorgetUserContactInfoDescriptor(org.bonitasoft.engine.identity.xml.ExportedUser user, boolean isPersonal) protected EntityUpdateDescriptorgetUserDescriptor(org.bonitasoft.engine.identity.xml.ExportedUser user) boolean
-
Constructor Details
-
ImportOrganizationMergeDuplicatesStrategy
public ImportOrganizationMergeDuplicatesStrategy(IdentityService identityService, SCustomUserInfoValueAPI userInfoValueAPI)
-
-
Method Details
-
foundExistingGroup
public void foundExistingGroup(SGroup existingGroup, org.bonitasoft.engine.identity.xml.ExportedGroup newGroup) throws SIdentityException - Specified by:
foundExistingGroupin interfaceImportOrganizationStrategy- Throws:
SIdentityException
-
foundExistingUser
public void foundExistingUser(SUser existingUser, org.bonitasoft.engine.identity.xml.ExportedUser userToImport) throws SBonitaException - Specified by:
foundExistingUserin interfaceImportOrganizationStrategy- Throws:
SBonitaException
-
foundExistingRole
public void foundExistingRole(SRole existingRole, org.bonitasoft.engine.identity.xml.ExportedRole newRole) throws SIdentityException - Specified by:
foundExistingRolein interfaceImportOrganizationStrategy- Throws:
SIdentityException
-
foundExistingMembership
- Specified by:
foundExistingMembershipin interfaceImportOrganizationStrategy
-
getRoleDescriptor
protected EntityUpdateDescriptor getRoleDescriptor(SRole existingRole, org.bonitasoft.engine.identity.xml.ExportedRole exportedRole) -
getGroupDescriptor
protected EntityUpdateDescriptor getGroupDescriptor(SGroup existingGroup, org.bonitasoft.engine.identity.xml.ExportedGroup exportedGroup) -
getUserContactInfoDescriptor
protected EntityUpdateDescriptor getUserContactInfoDescriptor(org.bonitasoft.engine.identity.xml.ExportedUser user, boolean isPersonal) -
getUserDescriptor
protected EntityUpdateDescriptor getUserDescriptor(org.bonitasoft.engine.identity.xml.ExportedUser user) -
foundExistingCustomUserInfoDefinition
public void foundExistingCustomUserInfoDefinition(SCustomUserInfoDefinition existingUserInfoDefinition, org.bonitasoft.engine.identity.xml.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
-