Package org.bonitasoft.engine.identity
Class ImportOrganizationFailOnDuplicatesStrategy
java.lang.Object
org.bonitasoft.engine.identity.ImportOrganizationFailOnDuplicatesStrategy
- All Implemented Interfaces:
ImportOrganizationStrategy
public class ImportOrganizationFailOnDuplicatesStrategy
extends Object
implements ImportOrganizationStrategy
- Author:
- Baptiste Mesta, Matthieu Chaffotte
-
Constructor Summary
Constructors -
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 user) boolean
-
Constructor Details
-
ImportOrganizationFailOnDuplicatesStrategy
public ImportOrganizationFailOnDuplicatesStrategy()
-
-
Method Details
-
foundExistingGroup
public void foundExistingGroup(SGroup existingGroup, org.bonitasoft.engine.identity.xml.ExportedGroup newGroup) throws ImportDuplicateInOrganizationException - Specified by:
foundExistingGroupin interfaceImportOrganizationStrategy- Throws:
ImportDuplicateInOrganizationException
-
foundExistingUser
public void foundExistingUser(SUser existingUser, org.bonitasoft.engine.identity.xml.ExportedUser user) throws SBonitaException - Specified by:
foundExistingUserin interfaceImportOrganizationStrategy- Throws:
SBonitaException
-
foundExistingRole
public void foundExistingRole(SRole existingRole, org.bonitasoft.engine.identity.xml.ExportedRole newRole) throws ImportDuplicateInOrganizationException - Specified by:
foundExistingRolein interfaceImportOrganizationStrategy- Throws:
ImportDuplicateInOrganizationException
-
foundExistingMembership
public void foundExistingMembership(SUserMembership existingMembership) throws ImportDuplicateInOrganizationException - Specified by:
foundExistingMembershipin interfaceImportOrganizationStrategy- Throws:
ImportDuplicateInOrganizationException
-
foundExistingCustomUserInfoDefinition
public void foundExistingCustomUserInfoDefinition(SCustomUserInfoDefinition existingUserInfoDefinition, org.bonitasoft.engine.identity.xml.ExportedCustomUserInfoDefinition newUserInfoDefinition) throws ImportDuplicateInOrganizationException - Specified by:
foundExistingCustomUserInfoDefinitionin interfaceImportOrganizationStrategy- Throws:
ImportDuplicateInOrganizationException
-
shouldSkipUpdateManagerOfExistingUser
public boolean shouldSkipUpdateManagerOfExistingUser()- Specified by:
shouldSkipUpdateManagerOfExistingUserin interfaceImportOrganizationStrategy- Returns:
- true if users that were already existing should have their manager set
-