public class ActivitySpecification extends TieSystemObject
It also manages the construction and caching of a particular instance of ActivityProcessor, using properties defined on the instance.
Modifier and Type | Field and Description |
---|---|
static String |
ACTIONSPECIFICATIONS_ATTRIBUTE
The name of the attribute that holds the set of ActionSpecifications
that define the allowable activity for this instance.
|
static String |
ACTIVITYPROCESSORCLASSNAME_ATTRIBUTE
The name of the attribute that holds fully-qualified class name
of the Activity class.
|
static String |
ACTIVITYRECORDCLASS_ATTRIBUTE
The name of the attribute that holds the ClassObject to use for newly
created ActivityRecords for activity defined by this instance.
|
static String |
ACTIVITYSPECIFICATION_HIERARCHY_TABLENAME
The table name which contains the ActivitySpecification hierarchy.
|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The name of the attribute that holds the description of
this ActivitySpecification.
|
static String |
NAME_ATTRIBUTE
The name of the attribute that holds the name of
this ActivitySpecification.
|
static String |
SUPERACTIVITYSPECIFICATION_ATTRIBUTE
The ActivitySpecification whose ActivityProcessor class is the designated
superclass for this instance.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
ActivitySpecification(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a ActivitySpecification object.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCachedActivityProcessor()
Clears the cached ActivityProcessor.
|
static ActivitySpecification[] |
findAll(LibrarySession session)
Returns the set of defined ActivitySpecifications.
|
static ActivitySpecification |
findByName(LibrarySession session,
String name)
Returns the a ActivitySpecification matching the
specified name.
|
ActionSpecification[] |
getActionSpecifications()
Gets the ActionSpecifications that represent the Actions that can
be posted for ActivityRecords that reference this ActivitySpecification -
effectively defining the allowable activity for this
ActivitySpecification instance.
|
ActivityProcessor |
getActivityProcessor()
Gets the ActivityProcessor instance implementation corresponding
to the ActivityProcessorClassName, that is used to process
Activity for the activity defined by this instance.
|
String |
getActivityProcessorClassName()
Gets the fully-qualified class name of the ActivityProcessor class.
|
ClassObject |
getActivityRecordClass()
Gets the ClassObject to use for newly
created ActivityRecords for activity defined by this instance.
|
String |
getDescription()
Gets the description of this ActivitySpecification.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
ActivitySpecification instances by name.
|
AttributeValueTable |
getPropertyTable()
Gets the AttributeValueTable representing the set of Properties defined
for this instance.
|
ActivitySpecification |
getSuperActivitySpecification()
Gets the ActivitySpecification whose ActivityProcessor class is the
designated superclass for this instance.
|
void |
handleEvent(IfsEvent event)
Handles the specified event.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a SystemObject.
|
protected void |
preCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
creation of a PublicObject.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postUpdate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String ACTIVITYPROCESSORCLASSNAME_ATTRIBUTE
public static final String ACTIVITYRECORDCLASS_ATTRIBUTE
public static final String ACTIONSPECIFICATIONS_ATTRIBUTE
public static final String SUPERACTIVITYSPECIFICATION_ATTRIBUTE
public static final String ACTIVITYSPECIFICATION_HIERARCHY_TABLENAME
protected ActivitySpecification(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getDescription() throws IfsException
IfsException
- if operation failspublic String getActivityProcessorClassName() throws IfsException
IfsException
- if operation failspublic ActionSpecification[] getActionSpecifications() throws IfsException
IfsException
- if the operation failspublic ClassObject getActivityRecordClass() throws IfsException
IfsException
- if operation failspublic ActivitySpecification getSuperActivitySpecification() throws IfsException
IfsException
- if operation failspublic AttributeValueTable getPropertyTable() throws IfsException
IfsException
- if operation failspublic static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static ActivitySpecification[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ActivitySpecification findByName(LibrarySession session, String name) throws IfsException
ActivitySpecification names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the ActivitySpecification nameIfsException
- if the operation fails.protected void preCreate(LibraryObjectDefinition lodef) throws IfsException
Set an option that indicates that Categories are NOT to be created from within S_SystemObject.
preCreate
in class SystemObject
lodef
- object definition that will be used to create the objectIfsException
- if operation failsprotected void postCreate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
This assumes that a transaction context has already been established.
postCreate
in class SystemObject
lodef
- object definition that was used to create the objectIfsException
- if operation failsprotected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.public final ActivityProcessor getActivityProcessor() throws IfsException
This implementation is cached for use by the session associated with this instance.
IfsException
- if the operation failspublic void clearCachedActivityProcessor()
public void handleEvent(IfsEvent event) throws IfsException
LibraryObject
handleEvent
in interface IfsEventHandler
handleEvent
in class LibraryObject
event
- the eventIfsException
- if the operation failsCopyright © 2023. All rights reserved.