public abstract class ActionFactory extends Object
Constructor and Description |
---|
ActionFactory() |
Modifier and Type | Method and Description |
---|---|
static AuditEventTypeDefinition |
constructActivityEventTypeDefinition(String opTypeKey,
int opCode)
Constructs an AuditEventTypeDefinition for an AuditEvent to be used for posting
activity on an ActivityRecord.
|
abstract Action |
constructExecutedAction(AuditEvent event)
Construct an instance reflecting a previously executed Action.
|
abstract Action |
constructPendingAction()
Construct an instance of an Action that is not yet executed.
|
ActionSpecification |
getActionSpecification()
Gets the ActionSpecification associated with this instance.
|
Long |
getActionSpecificationId()
Gets the ActionSpecification ID associated with this instance.
|
abstract AuditEventTypeDefinition[] |
getAuditEventTypeDefinitions()
Gets the set of AuditEventTypeDefinitions for events
that can be created by this Action associated with this type of Action.
|
AttributeValueTable |
getPropertyTable()
Gets the AttributeValueTable representing the set of Properties defined
for the ActionSpecification associated with this instance.
|
LibrarySession |
getSession()
Gets the session context associated with this instance.
|
void |
initialize(ActionSpecification spec)
Initialize this instance.
|
boolean |
isInitialized()
Returns true is this factory instance has been properly initialized.
|
public void initialize(ActionSpecification spec) throws IfsException
Called immediately after construction (via the default constructor) via reflection within ActionSpecification.
spec
- The ActionSpecification for a given implementation.IfsException
- if the operation fails.public LibrarySession getSession()
public ActionSpecification getActionSpecification()
public Long getActionSpecificationId()
public AttributeValueTable getPropertyTable()
public boolean isInitialized()
public abstract Action constructPendingAction() throws IfsException
IfsException
- if the operation fails.public abstract Action constructExecutedAction(AuditEvent event) throws IfsException
event
- The event that was posted as part of the
previously executed Action.IfsException
- if the operation fails.public abstract AuditEventTypeDefinition[] getAuditEventTypeDefinitions()
public static AuditEventTypeDefinition constructActivityEventTypeDefinition(String opTypeKey, int opCode)
opTypeKey
- the String operation type key
(e.g. "ACTIVITYRECORD_MESSAGE_ADDED")opCode
- the enumerated int representing the code
for the operation (e.g. 1009 for "MESSAGE_ADDED")Copyright © 2023. All rights reserved.