Class Registry

  • Direct Known Subclasses:
    RegistryService

    public abstract class Registry
    extends Object
    Created by The eXo Platform SAS
    JCR based Services Registry abstraction. As interchange object all the methods use Nodes' wrappers to not to let using an arbitrary Type of Node. There is 2 phase modification of RegistryEntry (1) get or create RegistryEntry retrieves or creates new object in memory and (2) register/unregister stores the object permanently
    Author:
    Gennady Azarenkov
    eXo level API
    Unsupported
    • Constructor Detail

      • Registry

        public Registry()
    • Method Detail

      • getRegistry

        public abstract Registry.RegistryNode getRegistry​(SessionProvider sessionProvider)
                                                   throws org.exoplatform.services.jcr.config.RepositoryConfigurationException,
                                                          javax.jcr.RepositoryException
        Returns the registry node which wraps a node of type "exo:registry" (the whole registry tree)
        Parameters:
        sessionProvider -
        Returns:
        registry node object
        Throws:
        javax.jcr.RepositoryException
        org.exoplatform.services.jcr.config.RepositoryConfigurationException
      • getEntry

        public abstract RegistryEntry getEntry​(SessionProvider sessionProvider,
                                               String entryPath)
                                        throws javax.jcr.PathNotFoundException,
                                               javax.jcr.RepositoryException
        Returns the corresponding registry entry which wraps a node of type "exo:registryEntry"
        Parameters:
        sessionProvider -
        entryPath -
        Returns:
        the corresponding RegistryEntry
        Throws:
        javax.jcr.PathNotFoundException - if entry not found
        javax.jcr.RepositoryException
      • createEntry

        public abstract void createEntry​(SessionProvider sessionProvider,
                                         String groupPath,
                                         RegistryEntry entry)
                                  throws javax.jcr.RepositoryException
        Creates an entry in the group. In a case the group does not exist already it will be automatically created.
        Parameters:
        sessionProvider -
        groupPath - related path (w/o leading slash) to group
        entry -
        Throws:
        javax.jcr.RepositoryException
      • recreateEntry

        public abstract void recreateEntry​(SessionProvider sessionProvider,
                                           String groupPath,
                                           RegistryEntry entry)
                                    throws javax.jcr.RepositoryException
        Updates an entry in the group
        Parameters:
        sessionProvider -
        groupPath - related path (w/o leading slash) to group
        entry -
        Throws:
        javax.jcr.RepositoryException
      • removeEntry

        public abstract void removeEntry​(SessionProvider sessionProvider,
                                         String entryPath)
                                  throws javax.jcr.RepositoryException
        Removes the entry at the given absolute path (concatenation of group path / entry name)
        Parameters:
        sessionProvider -
        entryPath - related path (w/o leading slash) to entry
        Throws:
        javax.jcr.RepositoryException