public class S_AuditSpecification extends S_TieSystemObject
S_LibraryObject.MapInfo
CASCADE_OP_COPY_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_COPY_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_DELETE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_DELETE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_DELETE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_DELETE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_DELETE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_DELETE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_DELETE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_DELETE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_DELETE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_DELETE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_FREE_CATEGORY_TO_PUBLICOBJECT, CASCADE_OP_FREE_CATEGORY_TO_SCHEMAOBJECT, CASCADE_OP_FREE_CATEGORY_TO_SYSTEMOBJECT, CASCADE_OP_FREE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_FREE_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_FREE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_FREE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_FREE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_FREE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_FREE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_FREE_SCHEMAOBJECT_TO_CATEGORY, CASCADE_OP_FREE_SYSTEMOBJECT_TO_CATEGORY, CASCADE_OP_FREE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_FREE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_FREE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_FREE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_UNDEFINED, CASCADE_OP_UNDELETE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_UNDELETE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_UNDELETE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_UNDELETE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_UNDELETE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_UNDELETE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_UNDELETE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_UPDATE_CATEGORY_TO_PUBLICOBJECT, CASCADE_OP_UPDATE_CATEGORY_TO_SCHEMAOBJECT, CASCADE_OP_UPDATE_CATEGORY_TO_SYSTEMOBJECT, CASCADE_OP_UPDATE_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_UPDATE_SCHEMAOBJECT_TO_CATEGORY, CASCADE_OP_UPDATE_SYSTEMOBJECT_TO_CATEGORY, DEFAULT_RENDERER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
S_AuditSpecification(S_LibrarySession session,
Long classId)
Constructs an S_AuditSpecification for the case where the object has not
been created in the database yet.
|
protected |
S_AuditSpecification(S_LibrarySession session,
S_LibraryObjectData data)
Constructs an S_AuditSpecification.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
DYNCreateEventTable(Serializable payload)
Creates the audit event table indicated by this instance's TABLENAMESUFFIX
attribute, if it does not already exist.
|
Serializable |
DYNPurgeAllEvents(Serializable payload)
Purges a batch of AuditEvents from their audit histories
indiscriminately.
|
String |
getPropertyTableName()
Returns the table name to use for event properties for
this AuditSpecification.
|
String |
getTableName()
Returns the table name to use for events for this AuditSpecification.
|
String[] |
getTableNames()
Returns the table names that are used for events for this
AuditSpecification.
|
String |
getTableNameSuffix()
Returns the table name suffix, for custom audit event tables.
|
String |
getViewName()
Returns the table name to use for events for this AuditSpecification.
|
protected boolean |
isBroadcastCreateEventEnabled()
Returns indication as to whether create events should be posted.
|
boolean |
isPrivatePropertyTableUsed()
Gets the indication as to whether the Audit History for this
AuditSpecification uses a private audit property table.
|
protected boolean |
tableExists(Connection conn,
String tableName)
Return true if there is a row that meets the specified condition
for the specified table.
|
addCategory, cascadeFree, createCategories, deriveDefinition, extendedPostInsert, extendedPostUpdate, extendedPreInsert, extendedPreUpdate, getCategories, getCategories, getCategories, handleCascade, removeCategories, updateCategories, verifyCanCreate, verifyCanFree, verifyCanUpdate
added, applyValueDefault, associatedPostFree, associatedPostInsert, associatedPreInsert, canPurge, cascadeCopy, cascadeUpdate, checkRequiredForInsert, checkSettable, clearArrayTypeAttributeValues, clearMapTypeAttributeValues, clonePublicObjectAttribute, constructIdArray, constructIdArray, copy, copy, copyVectorToLibraryObjectArray, createDefaultPolicyPropertyBundle, createDefaultPropertyBundle, createDefaultPropertyBundle, createInstance, deleteRows, deriveOwnerUniqueName, deriveOwnerUniqueName, deriveUppercasedAttribute, determineClassDomain, determinePolicy, determinePolicy, determineValueDefault, determineValueDomain, dispose, DYNInvalidateState, DYNLockRows, equals, equals, executePolicyOperation, extendedPostFree, extendedPreCopy, extendedPreFree, findPolicyFromPropertyBundleAv, free, free, getAttribute, getAttributeByUpperCaseName, getAuditCertificateName, getAuditDomainContext, getAuditEventFolderContext, getClassData, getClassId, getClassName, getClassObject, getContentStorageManager, getData, getDefinition, getEffectivePolicyActionContexts, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getId, getLibraryConnection, getName, getObjectReferenceAttribute, getPropertyBundle, getPropertyValue, getResourceString, getResourceString, getService, getSession, getSessionInterface, getTraceLogger, handleEvent, hashCode, hasNameAttribute, insertReferenceAttributes, insertRow, insertRows, invalidateState, invokeOperation, invokePolicyMethod, isAuditCertificateSecured, isInstanceOf, isPersistent, issueCascade, isTraced, lockRows, postEvent, postEvent, postFree, postInsert, postUpdate, preFree, preInsert, preUpdate, privilegedUpdate, removed, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, toString, trace, update, updateRows, validateStringArray, verifyCanGetContent, verifyCanSetContent, verifyCanSetPolicy, verifyPersistent, verifyWriteableTransactionInProgress
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
protected S_AuditSpecification(S_LibrarySession session, S_LibraryObjectData data) throws IfsException
session
- the session contextdata
- the data componentIfsException
- if operation failsprotected S_AuditSpecification(S_LibrarySession session, Long classId) throws IfsException
session
- the session contextclassId
- the ID of the classIfsException
- if operation failspublic String getTableNameSuffix() throws IfsException
IfsException
- if the operation fails.public String getTableName() throws IfsException
If the TABLENAMESUFFIX is null, this returns the default table name.
IfsException
- if the operation fails.public String[] getTableNames() throws IfsException
Typically this returns just a length 1 array containing only
the result of getTableName
, but this can be overridden.
IfsException
- if the operation fails.public String getViewName() throws IfsException
If the TABLENAMESUFFIX is null, this returns the default table name.
IfsException
- if the operation fails.public boolean isPrivatePropertyTableUsed() throws IfsException
IfsException
- if operation failspublic String getPropertyTableName() throws IfsException
If the TABLENAMESUFFIX is null, this returns the default property table name.
IfsException
- if the operation fails.protected boolean isBroadcastCreateEventEnabled() throws IfsException
Overridden by subclasses that require create events (most do not).
isBroadcastCreateEventEnabled
in class S_LibraryObject
IfsException
- if operation fails.public Serializable DYNCreateEventTable(Serializable payload) throws IfsException
payload
- ignoredIfsException
- if the operation failsprotected boolean tableExists(Connection conn, String tableName) throws SQLException
conn
- the database connectiontableName
- the table nameSQLException
- if the operation failspublic Serializable DYNPurgeAllEvents(Serializable payload) throws IfsException
This should only be used when the target AuditSpecification has no events that are of interest - all events are candidates for deletion. Typically this is used when all events are to be purged carefully by a background process.
payload
- An Integer: the max number of AuditEvents to purgeIfsException
- if the operation failsCopyright © 2023. All rights reserved.