Class DeleteEntityMembersCommand
- java.lang.Object
-
- org.bonitasoft.engine.command.TenantCommand
-
- org.bonitasoft.engine.command.system.CommandWithParameters
-
- org.bonitasoft.engine.external.identitymapping.MemberCommand
-
- org.bonitasoft.engine.external.identitymapping.ExternalIdentityMappingCommand
-
- org.bonitasoft.engine.external.identitymapping.EntityMemberCommand
-
- org.bonitasoft.engine.external.identitymapping.DeleteEntityMembersCommand
-
- All Implemented Interfaces:
Command<TenantServiceAccessor>
public class DeleteEntityMembersCommand extends EntityMemberCommand
Delete all entity members related to the provided external ID. Parameter keys: EXTERNAL_ID_KEY: external id provided as is by the external system, DISCRIMINATOR_ID_KEY: the discriminator to isolate the different functional notions.- Author:
- Emmanuel Duchastenier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bonitasoft.engine.external.identitymapping.ExternalIdentityMappingCommand
ExternalIdentityMappingCommand.ExternalIdentityMappingSearchEntity
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.external.identitymapping.ExternalIdentityMappingCommand
DISCRIMINATOR_ID_KEY, ENTITY_MEMBER_ID_KEY, EXTERNAL_ID_KEY, GROUP_ID_KEY, ROLE_ID_KEY, SEARCH_OPTIONS_KEY, serviceAccessor, USER_ID_KEY
-
-
Constructor Summary
Constructors Constructor Description DeleteEntityMembersCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
execute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor)
Method that is called by the engine on the server side when the client callsCommandAPI.execute(String, Map)
with the name or id of this command.-
Methods inherited from class org.bonitasoft.engine.external.identitymapping.EntityMemberCommand
searchEntityMembers, searchEntityMembersInvolvingUser
-
Methods inherited from class org.bonitasoft.engine.external.identitymapping.ExternalIdentityMappingCommand
addExternalIdentityMapping, deleteExternalIdentityMappings, getServiceAccessor, removeExternalIdentityMapping, toEntityMember
-
Methods inherited from class org.bonitasoft.engine.external.identitymapping.MemberCommand
getGroupIdParameter, getMemberType, getProfileIdParameter, getQuerySuffix, getRoleIdParameter, getUserIdParameter
-
Methods inherited from class org.bonitasoft.engine.command.system.CommandWithParameters
getIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameter
-
-
-
-
Method Detail
-
execute
public java.io.Serializable execute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor) throws SCommandParameterizationException, SCommandExecutionException
Description copied from interface:Command
Method that is called by the engine on the server side when the client callsCommandAPI.execute(String, Map)
with the name or id of this command. Implementors of commands must put here the code to be executed on the server side- Parameters:
parameters
- a map of parameters that can be used by the command and that is given by the client when executing the commandserviceAccessor
- the TenantServiceAccessor or PlatformServiceAccessor that provides access to the engine's server-side services- Returns:
- a result that will be returned to the client
- Throws:
SCommandParameterizationException
- can be thrown if insufficient or wrong parameters are given by the clientSCommandExecutionException
- can be thrown when something unexpected happens while executing the command
-
-