public class JoinAction extends ActionAdapter
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ACTIONSPECIFICATION_NAME
The name of the default ActionSpecification for this type of action.
|
static AuditEventTypeDefinition |
EVENTTYPE_COMMUNITYMEMBER_ADDED
The AuditEventTypeDefinition for the COMMUNITYMEMBER_ADDED action.
|
static AuditEventTypeDefinition |
EVENTTYPE_COMMUNITYMEMBER_REMOVED
The AuditEventTypeDefinition for the COMMUNITYMEMBER_REMOVED action.
|
static int |
OPTYPE_COMMUNITYMEMBER_ADDED
The Operation type for the COMMUNITYMEMBER_ADDED action.
|
static int |
OPTYPE_COMMUNITYMEMBER_REMOVED
The Operation type for the COMMUNITYMEMBER_REMOVED action.
|
Constructor and Description |
---|
JoinAction()
Constructs a JoinAction to be used as an ActionFactory.
|
JoinAction(ActionFactory factory)
Constructs a "pending" JoinAction, to be used to execute a new Action.
|
JoinAction(ActionFactory factory,
AuditEvent event)
Constructs an "executed" JoinAction, reflecting a previously
executed Action.
|
Modifier and Type | Method and Description |
---|---|
void |
addMember(CommunityMember mem)
Adds a new member, prior to execution.
|
void |
clearAllSettings()
Clears any previously-set settings on this Action instance.
|
Action |
constructExecutedAction(AuditEvent event)
Construct an instance reflecting a previously executed Action.
|
Action |
constructPendingAction()
Construct an instance of an Action that is not yet executed.
|
void |
execute()
Perform the Action execution.
|
AuditEventTypeDefinition[] |
getAuditEventTypeDefinitions()
Gets the set of AuditEventTypeDefinitions for events
that can be posted by this Action associated with this type of Action.
|
CommunityMember |
getCommunityMember()
Returns the CommunityMember setting for add or remove actions.
|
Actor |
getMemberActor()
Returns the Actor setting for add or remove actions.
|
boolean |
isMemberAdded()
Returns true if this action will add a member (when executed).
|
boolean |
isMemberRemoved()
Returns true if this action will remove a member (when executed).
|
void |
preExecute()
Handle anything prior to executing the Action.
|
void |
removeMember(CommunityMember mem)
Removes an existing member, prior to execution.
|
calculateOperationType, dispatchEvent, dispatchEvent, dispatchEvent, dispatchEvent, execute, execute, getActionSpecification, getActionSpecificationId, getActivityRecord, getActor, getAuditEventId, getAuditOperationType, getAuditOperationTypeKey, getAuxiliaryObjects, getAuxiliaryString, getExecutingUserId, getExecutionDate, getFirstAuxiliaryObject, getInstance, getInstance, getPerformedActivityRecord, getProperties, getPropertyTable, getSecondAuxiliaryObject, getSession, getTrackedActivityRecord, isActivityRecordFreed, isActivityRecordUndiscoverable, isActorFreed, isActorUndiscoverable, isFactory, isPendingExecution, isPreviouslyExecuted, postExecute, setExecutingActionType
constructActivityEventTypeDefinition, initialize, isInitialized
public static final String DEFAULT_ACTIONSPECIFICATION_NAME
public static final AuditEventTypeDefinition EVENTTYPE_COMMUNITYMEMBER_ADDED
public static final AuditEventTypeDefinition EVENTTYPE_COMMUNITYMEMBER_REMOVED
public static final int OPTYPE_COMMUNITYMEMBER_ADDED
public static final int OPTYPE_COMMUNITYMEMBER_REMOVED
public JoinAction()
Called from ActionSpecification when initializing the ActionFactory to use for that specific ActionSpecification.
public JoinAction(ActionFactory factory) throws IfsException
factory
- the ActionFactory used to construct this instanceIfsException
- if operation failspublic JoinAction(ActionFactory factory, AuditEvent event) throws IfsException
factory
- the ActionFactory used to construct this instanceevent
- The event that was posted as part of the
previously executed Action.IfsException
- if operation failspublic Action constructPendingAction() throws IfsException
constructPendingAction
in class ActionFactory
IfsException
- if the operation fails.public Action constructExecutedAction(AuditEvent event) throws IfsException
constructExecutedAction
in class ActionFactory
event
- The event that was posted as part of the
previously executed Action.IfsException
- if the operation fails.public AuditEventTypeDefinition[] getAuditEventTypeDefinitions()
getAuditEventTypeDefinitions
in class ActionFactory
public void clearAllSettings()
public void addMember(CommunityMember mem) throws IfsException
The caller has already added the CommunityMember to the Community before this is called.
mem
- the CommunityMember that was added to reflect
the new membershipIfsException
- if operation failspublic void removeMember(CommunityMember mem) throws IfsException
The caller has not yet removed the CommunityMember from the Community when this is called.
mem
- the CommunityMember that reflects
the membershipIfsException
- if operation failspublic boolean isMemberAdded()
public boolean isMemberRemoved()
public Actor getMemberActor()
public CommunityMember getCommunityMember()
public void preExecute() throws IfsException
This is called prior to invoking execute
.
preExecute
in class ActionAdapter
IfsException
- if the operation fails.public void execute() throws IfsException
This is called after first invoking preExecute
and before
invoking postExecute
.
execute
in class ActionAdapter
IfsException
- if the operation fails.Copyright © 2023. All rights reserved.