public class AuditServiceImpl extends Object implements AuditService, org.picocontainer.Startable
AUDIT_STORAGE_ID, EXO_AUDIT, EXO_AUDITABLE, EXO_AUDITHISTORY, EXO_AUDITHISTORY_LASTRECORD, EXO_AUDITHISTORY_TARGETNODE, EXO_AUDITRECORD, EXO_AUDITRECORD_AUDITVERSION, EXO_AUDITRECORD_AUDITVERSIONNAME, EXO_AUDITRECORD_CREATED, EXO_AUDITRECORD_EVENTTYPE, EXO_AUDITRECORD_NEWVALUE, EXO_AUDITRECORD_OLDVALUE, EXO_AUDITRECORD_PROPERTYNAME, EXO_AUDITRECORD_USER, EXO_AUDITSTORAGE| Constructor and Description |
|---|
AuditServiceImpl(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.RepositoryService repService)
AuditServiceImpl constructor.
|
AuditServiceImpl(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.RepositoryService repService,
org.exoplatform.services.jcr.ext.registry.RegistryService registryService)
AuditServiceImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(javax.jcr.Item previousItem,
javax.jcr.Item currentItem,
int eventType)
Adds new audit record.
|
void |
createHistory(javax.jcr.Node node)
Creates audit history for given node.
|
AuditHistory |
getHistory(javax.jcr.Node node)
Get node audit history.
|
boolean |
hasHistory(javax.jcr.Node node)
Check if node has audit history.
|
void |
removeHistory(javax.jcr.Node node)
Deletes audit history.
|
void |
start() |
void |
stop() |
public AuditServiceImpl(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.RepositoryService repService)
throws org.exoplatform.services.jcr.config.RepositoryConfigurationException
initParams - repService - org.exoplatform.services.jcr.config.RepositoryConfigurationExceptionpublic AuditServiceImpl(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.RepositoryService repService,
org.exoplatform.services.jcr.ext.registry.RegistryService registryService)
throws org.exoplatform.services.jcr.config.RepositoryConfigurationException
initParams - repService - registryService - org.exoplatform.services.jcr.config.RepositoryConfigurationExceptionpublic void start()
start in interface org.picocontainer.Startablepublic void addRecord(javax.jcr.Item previousItem,
javax.jcr.Item currentItem,
int eventType)
throws javax.jcr.RepositoryException
AuditServiceaddRecord in interface AuditServicejavax.jcr.RepositoryExceptionpublic void createHistory(javax.jcr.Node node)
throws javax.jcr.RepositoryException
AuditServicecreateHistory in interface AuditServicejavax.jcr.RepositoryExceptionpublic AuditHistory getHistory(javax.jcr.Node node) throws javax.jcr.RepositoryException, UnsupportedOperationException
AuditServicegetHistory in interface AuditServicejavax.jcr.RepositoryExceptionUnsupportedOperationException - if item(parent) is not auditablepublic boolean hasHistory(javax.jcr.Node node)
AuditServicehasHistory in interface AuditServicepublic void removeHistory(javax.jcr.Node node)
throws javax.jcr.RepositoryException
AuditServiceremoveHistory in interface AuditServicejavax.jcr.RepositoryExceptionpublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2017 eXo Platform SAS. All Rights Reserved.