org.opencrx.kernel.layer.persistence
Class Audit_1

java.lang.Object
  extended by org.openmdx.compatibility.base.dataprovider.spi.Layer_1
      extended by org.openmdx.compatibility.base.dataprovider.spi.StreamOperationAwareLayer_1
          extended by org.openmdx.compatibility.base.dataprovider.layer.persistence.common.AbstractPersistence_1
              extended by org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.AbstractDatabase_1
                  extended by org.openmdx.compatibility.base.dataprovider.layer.persistence.jdbc.Database_1Jdbc2
                      extended by org.openmdx.compatibility.base.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:
Dataprovider_1_0, Layer_1_0, Layer_1_1, 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.compatibility.base.dataprovider.layer.persistence.jdbc.AbstractDatabase_1
allowsSqlSequenceFallback, batchSize, configuration, connectionManagers, DATASTORE_PREFIX, embeddedFeatures, EXTENT_PATTERN, ignoreCheckForDuplicates, JDBC_DRIVER_SQL_PROPERTIES, jdbcDriverSqlProperties, model, namespaceId, nonPersistentFeatures, OBJECT_ID, OBJECT_IDX, OBJECT_OID, OBJECT_RID, resultSetType, supportsSqlNumericNullCast, temporaryFiles
 
Fields inherited from class org.openmdx.compatibility.base.dataprovider.layer.persistence.common.AbstractPersistence_1
DEFAULT_CHUNK_SIZE
 
Constructor Summary
Audit_1()
           
 
Method Summary
 void activate(short id, Configuration configuration, Layer_1_0 delegation)
           
 DataproviderReply create(ServiceHeader header, DataproviderRequest request)
           
 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.opencrx.kernel.layer.persistence.Indexed_1
isAccountAddress
 
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, setPreparedStatementValue, useNormalizedReferences
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.layer.persistence.common.AbstractPersistence_1
getBinaryStream, getCharacterStream, getChunkSize, getStreamBufferDirectory, getStreamOperation, getStreamOperation, isSequenceSupported
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.spi.StreamOperationAwareLayer_1
createResponse, getConfigurationValue, getConfigurationValue, operation
 
Methods inherited from class org.openmdx.compatibility.base.dataprovider.spi.Layer_1
configurationSpecification, deactivate, 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
 

Constructor Detail

Audit_1

public Audit_1()
Method Detail

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)

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 AbstractDatabase_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-2007, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.