org.opencrx.kernel.layer.persistence
Class Audit_1
java.lang.Object
org.openmdx.application.dataprovider.spi.Layer_1
org.openmdx.application.dataprovider.spi.OperationAwareLayer_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_1
org.opencrx.kernel.layer.persistence.Indexed_1
org.opencrx.kernel.layer.persistence.Audit_1
- All Implemented Interfaces:
- org.openmdx.application.dataprovider.cci.Dataprovider_1_0, org.openmdx.application.dataprovider.spi.Layer_1_0, org.openmdx.application.dataprovider.spi.Layer_1_1, org.openmdx.application.dataprovider.spi.Layer_1_2, org.openmdx.application.dataprovider.spi.Operation_1_0, DataTypes
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_NEXT_VALUE_FOR, AUTOINC_FORMAT_NEXTVAL, AUTOINC_FORMAT_NEXTVAL_FOR, AUTOINC_FORMAT_SEQUENCE, BATCH_MODE_SIZE_MAX, BATCH_MODE_SIZE_MIN, batchSize, booleanMarshaller, booleanType, calendarMarshaller, columnNames, configuration, dataSources, dateTimeType, dateType, DEFAULT_BATCH_SIZE, DEFAULT_COLUMN_SELECTOR, DEFAULT_OID_SUFFIX, DEFAULT_RID_SUFFIX, durationMarshaller, embeddedFeatures, fetchSize, ignoreCheckForDuplicates, JDBC_DRIVER_SQL_PROPERTIES, jdbcDriverSqlProperties, JDO_CASE_INSENSITIVE_FLAG, maxReferenceComponents, namespaceId, nonPersistentFeatures, nullAsCharacter, OBJECT_ID, OBJECT_IDX, OBJECT_OID, OBJECT_RID, objectCache, objectIdAttributesSuffix, pathMacros, privateAttributesPrefix, QUALIFIED_SYSTEM_ATTRIBUTES, referenceIdAttributesSuffix, referenceIdFormat, referenceLookupStatementHint, RESERVED_WORDS_HSQLDB, resultSetType, ROUND_UP_TO_MAX_SCALE, scopedFeatures, scopedObjectClasses, 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,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1_0 delegation)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
create(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
protected void |
createAuditEntry(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderObject auditEntry)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
find(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
get(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
String |
getBeforeImageAsString(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 beforeImage)
|
protected String |
getQualifiedPrincipalName(org.openmdx.base.naming.Path accessPath,
String principalName)
|
protected boolean |
isInstanceOfBasicObject(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 object)
|
protected org.openmdx.application.dataprovider.cci.DataproviderObject |
otherOperation(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request,
String operation,
org.openmdx.base.naming.Path replyPath)
|
void |
prolog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
remove(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
replace(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
protected void |
setSecurityAttributes(org.openmdx.application.dataprovider.cci.DataproviderObject auditEntry)
|
protected void |
setSystemAttributes(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.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, escape, executeQuery, executeUpdate, externalizePathValue, externalizeStringValue, get, getAttributeName, getAutonumValue, getBooleanType, getConnection, getDataSource, getDateTimeType, getDateType, getEscapeClause, getModel, getPartialObject, getReference, getReferenceIdFormat, getSelectReferenceIdsClause, getTimeType, internalizePathValue, internalizeStringValue, isSetSizeColumns, modify, prepareStatement, prolog, setPreparedStatementValue, toPattern, unescape, useNormalizedReferences |
| Methods inherited from class org.openmdx.application.dataprovider.spi.OperationAwareLayer_1 |
getConfigurationValue, getConfigurationValue, operation |
| Methods inherited from class org.openmdx.application.dataprovider.spi.Layer_1 |
configurationSpecification, deactivate, epilog, getConfiguration, getDelegation, getDelegation, getId, getLenientProcessor, isBypassedByLenientRequests, isLenient, process, process, 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,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1_0 delegation)
throws ServiceException
- Specified by:
activate in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
activate in class Indexed_1
- Throws:
ServiceException
prolog
public void prolog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests)
throws ServiceException
- Specified by:
prolog in interface org.openmdx.application.dataprovider.spi.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(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 object)
getQualifiedPrincipalName
protected String getQualifiedPrincipalName(org.openmdx.base.naming.Path accessPath,
String principalName)
setSecurityAttributes
protected void setSecurityAttributes(org.openmdx.application.dataprovider.cci.DataproviderObject auditEntry)
setSystemAttributes
protected void setSystemAttributes(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderObject object,
short operation)
throws ServiceException
- Throws:
ServiceException
getBeforeImageAsString
public String getBeforeImageAsString(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 beforeImage)
createAuditEntry
protected void createAuditEntry(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderObject auditEntry)
throws ServiceException
- Throws:
ServiceException
get
public org.openmdx.application.dataprovider.cci.DataproviderReply get(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
get in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
get in class Indexed_1
- Throws:
ServiceException
find
public org.openmdx.application.dataprovider.cci.DataproviderReply find(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
find in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
find in class Indexed_1
- Throws:
ServiceException
replace
public org.openmdx.application.dataprovider.cci.DataproviderReply replace(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
replace in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
replace in class AbstractDatabase_1
- Throws:
ServiceException
create
public org.openmdx.application.dataprovider.cci.DataproviderReply create(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
create in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
create in class AbstractDatabase_1
- Throws:
ServiceException
remove
public org.openmdx.application.dataprovider.cci.DataproviderReply remove(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
remove in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
remove in class Indexed_1
- Throws:
ServiceException
otherOperation
protected org.openmdx.application.dataprovider.cci.DataproviderObject otherOperation(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request,
String operation,
org.openmdx.base.naming.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-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.