org.opencrx.kernel.layer.persistence
Class Audit_1
java.lang.Object
org.openmdx.compatibility.base.dataprovider.spi.Layer_1
org.openmdx.compatibility.base.dataprovider.spi.StreamOperationAwareLayer_1
org.openmdx.compatibility.base.dataprovider.layer.persistence.common.AbstractPersistence_1
org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.AbstractDatabase_1
org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.Database_1Jdbc2
org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.Database_1
org.opencrx.kernel.layer.persistence.Indexed_1
org.opencrx.kernel.layer.persistence.Audit_1
- All Implemented Interfaces:
- Dataprovider_1_0, Layer_1_0, Layer_1_1, Layer_1_2, Operation_1_0
public class Audit_1
- extends Indexed_1
This plugin creates audit entries for modified objects.
| Fields inherited from class org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.AbstractDatabase_1 |
allowsSqlSequenceFallback, attributeNames, AUTOINC_FORMAT_AUTO, AUTOINC_FORMAT_NEXTVAL, AUTOINC_FORMAT_NEXTVAL_FOR, AUTOINC_FORMAT_SEQUENCE, BATCH_MODE_SIZE_MAX, BATCH_MODE_SIZE_MIN, batchSize, booleanMarshaller, booleanType, calendarMarshaller, columnNames, configuration, connectionManagers, DATASTORE_PREFIX, dateTimeType, dateType, DEFAULT_BATCH_SIZE, DEFAULT_COLUMN_SELECTOR, DEFAULT_OID_SUFFIX, DEFAULT_RID_SUFFIX, durationMarshaller, embeddedFeatures, EXTENT_PATTERN, fetchSize, ignoreCheckForDuplicates, JDBC_DRIVER_SQL_PROPERTIES, jdbcDriverSqlProperties, JDO_CASE_INSENSITIVE_FLAG, maxReferenceComponents, model, namespaceId, nonPersistentFeatures, nullAsCharacter, OBJECT_ID, OBJECT_IDX, OBJECT_OID, OBJECT_RID, objectCache, objectIdAttributesSuffix, pathMacros, privateAttributesPrefix, referenceIdAttributesSuffix, referenceIdFormat, referenceLookupStatementHint, resultSetType, ROUND_UP_TO_MAX_SCALE, scopedFeatures, setSizeColumns, singleValueAttributes, stringMacros, supportsSqlNumericNullCast, SYSTEM_ATTRIBUTES, T_REF, temporaryFiles, timeType, UNDEF_OBJECT_CLASS, useNormalizedReferences, useObjectCache, VIEW_MODE_ADD_MIXIN_COLUMNS_TO_PRIMARY, VIEW_MODE_SECONDARY_COLUMNS |
|
Method Summary |
void |
activate(short id,
Configuration configuration,
Layer_1_0 delegation)
|
DataproviderReply |
create(ServiceHeader header,
DataproviderRequest request)
|
protected void |
createAuditEntry(ServiceHeader header,
DataproviderObject auditEntry)
|
DataproviderReply |
find(ServiceHeader header,
DataproviderRequest request)
|
DataproviderReply |
get(ServiceHeader header,
DataproviderRequest request)
|
String |
getBeforeImageAsString(DataproviderObject_1_0 beforeImage)
|
protected String |
getQualifiedPrincipalName(Path accessPath,
String principalName)
|
protected boolean |
isInstanceOfBasicObject(DataproviderObject_1_0 object)
|
protected DataproviderObject |
otherOperation(ServiceHeader header,
DataproviderRequest request,
String operation,
Path replyPath)
|
void |
prolog(ServiceHeader header,
DataproviderRequest[] requests)
|
DataproviderReply |
remove(ServiceHeader header,
DataproviderRequest request)
|
DataproviderReply |
replace(ServiceHeader header,
DataproviderRequest request)
|
protected void |
setSecurityAttributes(DataproviderObject auditEntry)
|
protected void |
setSystemAttributes(ServiceHeader header,
DataproviderObject object,
short operation)
|
protected String |
uidAsString()
|
protected boolean |
useDatatypes()
Tells whether XML datatype formatting is required |
| Methods inherited from class org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.AbstractDatabase_1 |
closeConnection, create, createBlob, createClob, epilog, executeBatch, executeQuery, externalizePathValue, externalizeStringValue, get, getAttributeName, getAutonumValue, getBooleanType, getConnection, getConnectionManager, getDateTimeType, getDateType, getEscapeClause, getPartialObject, getReference, getReferenceIdFormat, getSelectReferenceIdsClause, getTimeType, internalizePathValue, internalizeStringValue, isSetSizeColumns, modify, prepareStatement, prolog, setPreparedStatementValue, useNormalizedReferences |
| Methods inherited from class org.openmdx.compatibility.base.dataprovider.spi.Layer_1 |
configurationSpecification, deactivate, epilog, getConfiguration, getDelegation, getDelegation, getId, getLenientProcessor, isLenient, process, process, set, startPublishing, terminal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Audit_1
public Audit_1()
activate
public void activate(short id,
Configuration configuration,
Layer_1_0 delegation)
throws Exception,
ServiceException
- Specified by:
activate in interface Layer_1_0- Overrides:
activate in class Indexed_1
- Throws:
Exception
ServiceException
prolog
public void prolog(ServiceHeader header,
DataproviderRequest[] requests)
throws ServiceException
- Specified by:
prolog in interface Layer_1_0- Overrides:
prolog in class AbstractDatabase_1
- Throws:
ServiceException
useDatatypes
protected boolean useDatatypes()
- Tells whether XML datatype formatting is required
- Returns:
isInstanceOfBasicObject
protected boolean isInstanceOfBasicObject(DataproviderObject_1_0 object)
getQualifiedPrincipalName
protected String getQualifiedPrincipalName(Path accessPath,
String principalName)
setSecurityAttributes
protected void setSecurityAttributes(DataproviderObject auditEntry)
setSystemAttributes
protected void setSystemAttributes(ServiceHeader header,
DataproviderObject object,
short operation)
throws ServiceException
- Throws:
ServiceException
getBeforeImageAsString
public String getBeforeImageAsString(DataproviderObject_1_0 beforeImage)
createAuditEntry
protected void createAuditEntry(ServiceHeader header,
DataproviderObject auditEntry)
throws ServiceException
- Throws:
ServiceException
get
public DataproviderReply get(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
get in interface Layer_1_0- Overrides:
get in class Indexed_1
- Throws:
ServiceException
find
public DataproviderReply find(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
find in interface Layer_1_0- Overrides:
find in class Indexed_1
- Throws:
ServiceException
replace
public DataproviderReply replace(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
replace in interface Layer_1_0- Overrides:
replace in class AbstractDatabase_1
- Throws:
ServiceException
create
public DataproviderReply create(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
create in interface Layer_1_0- Overrides:
create in class AbstractDatabase_1
- Throws:
ServiceException
remove
public DataproviderReply remove(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
remove in interface Layer_1_0- Overrides:
remove in class Indexed_1
- Throws:
ServiceException
otherOperation
protected DataproviderObject otherOperation(ServiceHeader header,
DataproviderRequest request,
String operation,
Path replyPath)
throws ServiceException
- Overrides:
otherOperation in class Indexed_1
- Throws:
ServiceException
uidAsString
protected final String uidAsString()
This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.