org.opencrx.kernel.layer.persistence
Class Audit_1

java.lang.Object
  extended by org.openmdx.application.dataprovider.spi.Layer_1
      extended by org.openmdx.application.dataprovider.spi.OperationAwareLayer_1
          extended by org.openmdx.application.dataprovider.layer.persistence.common.AbstractPersistence_1
              extended by org.openmdx.application.dataprovider.layer.persistence.jdbc.AbstractDatabase_1
                  extended by org.openmdx.application.dataprovider.layer.persistence.jdbc.Database_1
                      extended by org.opencrx.kernel.layer.persistence.Indexed_1
                          extended by org.opencrx.kernel.layer.persistence.Audit_1
All Implemented Interfaces:
org.openmdx.application.dataprovider.cci.Dataprovider_1_0, org.openmdx.application.dataprovider.layer.persistence.jdbc.DataTypes, 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

public class Audit_1
extends Indexed_1

This plugin creates audit entries for modified objects.


Field Summary
 
Fields inherited from class org.openmdx.application.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, 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
 
Fields inherited from class org.openmdx.application.dataprovider.layer.persistence.common.AbstractPersistence_1
DEFAULT_CHUNK_SIZE
 
Constructor Summary
Audit_1()
           
 
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, javax.resource.cci.MappedRecord 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(javax.resource.cci.MappedRecord beforeImage)
           
protected  String getQualifiedPrincipalName(org.openmdx.base.naming.Path accessPath, String principalName)
           
protected  boolean isInstanceOfBasicObject(javax.resource.cci.MappedRecord object)
           
protected  javax.resource.cci.MappedRecord 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(javax.resource.cci.MappedRecord auditEntry)
           
protected  void setSystemAttributes(org.openmdx.application.dataprovider.cci.ServiceHeader header, javax.resource.cci.MappedRecord object, short operation)
           
protected  String uidAsString()
           
protected  boolean useDatatypes()
          Tells whether XML datatype formatting is required
 
Methods inherited from class org.opencrx.kernel.layer.persistence.Indexed_1
findIndexEntries, isAccountAddress
 
Methods inherited from class org.openmdx.application.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.layer.persistence.common.AbstractPersistence_1
getChunkSize, getStreamBufferDirectory, isSequenceSupported
 
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
 

Constructor Detail

Audit_1

public Audit_1()
Method Detail

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 org.openmdx.application.dataprovider.layer.persistence.jdbc.AbstractDatabase_1
Throws:
ServiceException

useDatatypes

protected boolean useDatatypes()
Tells whether XML datatype formatting is required

Returns:

isInstanceOfBasicObject

protected boolean isInstanceOfBasicObject(javax.resource.cci.MappedRecord object)

getQualifiedPrincipalName

protected String getQualifiedPrincipalName(org.openmdx.base.naming.Path accessPath,
                                           String principalName)

setSecurityAttributes

protected void setSecurityAttributes(javax.resource.cci.MappedRecord auditEntry)
                              throws ServiceException
Throws:
ServiceException

setSystemAttributes

protected void setSystemAttributes(org.openmdx.application.dataprovider.cci.ServiceHeader header,
                                   javax.resource.cci.MappedRecord object,
                                   short operation)
                            throws ServiceException
Throws:
ServiceException

getBeforeImageAsString

public String getBeforeImageAsString(javax.resource.cci.MappedRecord beforeImage)
                              throws ServiceException
Throws:
ServiceException

createAuditEntry

protected void createAuditEntry(org.openmdx.application.dataprovider.cci.ServiceHeader header,
                                javax.resource.cci.MappedRecord 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 org.openmdx.application.dataprovider.layer.persistence.jdbc.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 org.openmdx.application.dataprovider.layer.persistence.jdbc.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 javax.resource.cci.MappedRecord 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.