Class AuditServiceImpl

  • All Implemented Interfaces:
    AuditService, org.picocontainer.Startable

    public class AuditServiceImpl
    extends Object
    implements AuditService, org.picocontainer.Startable
    Created by The eXo Platform SAS .
    Version:
    $Id: AuditServiceImpl.java 14416 2008-05-16 13:04:06Z pnedonosko $
    Author:
    Gennady Azarenkov
    • Constructor Detail

      • AuditServiceImpl

        public AuditServiceImpl​(org.exoplatform.container.xml.InitParams initParams,
                                org.exoplatform.services.jcr.RepositoryService repService)
                         throws org.exoplatform.services.jcr.config.RepositoryConfigurationException
        AuditServiceImpl constructor.
        Parameters:
        initParams -
        repService -
        Throws:
        org.exoplatform.services.jcr.config.RepositoryConfigurationException
      • AuditServiceImpl

        public 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
        AuditServiceImpl constructor.
        Parameters:
        initParams -
        repService -
        registryService -
        Throws:
        org.exoplatform.services.jcr.config.RepositoryConfigurationException
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.picocontainer.Startable
      • addRecord

        public void addRecord​(javax.jcr.Item previousItem,
                              javax.jcr.Item currentItem,
                              int eventType)
                       throws javax.jcr.RepositoryException
        Description copied from interface: AuditService
        Adds new audit record.
        Specified by:
        addRecord in interface AuditService
        Throws:
        javax.jcr.RepositoryException
      • createHistory

        public void createHistory​(javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
        Description copied from interface: AuditService
        Creates audit history for given node. Throws an exception, if history already present.
        Specified by:
        createHistory in interface AuditService
        Throws:
        javax.jcr.RepositoryException
      • hasHistory

        public boolean hasHistory​(javax.jcr.Node node)
        Description copied from interface: AuditService
        Check if node has audit history.
        Specified by:
        hasHistory in interface AuditService
        Returns:
        true if audit history for this item exists
      • removeHistory

        public void removeHistory​(javax.jcr.Node node)
                           throws javax.jcr.RepositoryException
        Description copied from interface: AuditService
        Deletes audit history.
        Specified by:
        removeHistory in interface AuditService
        Throws:
        javax.jcr.RepositoryException
      • stop

        public void stop()
        Specified by:
        stop in interface org.picocontainer.Startable