Class RepositoryJobExecutionContext


  • public class RepositoryJobExecutionContext
    extends Object
    Context object containing operational information and helper objects for use by RepositoryJobs to do their job.
    • Constructor Detail

      • RepositoryJobExecutionContext

        public RepositoryJobExecutionContext​(javax.jcr.Session systemSession,
                                             Map<String,​String> attributes)
    • Method Detail

      • getSession

        @Deprecated
        public javax.jcr.Session getSession​(javax.jcr.Credentials credentials)
                                     throws javax.jcr.LoginException,
                                            javax.jcr.RepositoryException
        Deprecated.
        Get a session with the given credentials. Caller must log out the returned session after use.
        Throws:
        javax.jcr.LoginException
        javax.jcr.RepositoryException
      • createSession

        public javax.jcr.Session createSession​(javax.jcr.Credentials credentials)
                                        throws javax.jcr.LoginException,
                                               javax.jcr.RepositoryException
        Create a session with the given credentials. Caller must log out the returned session after use.
        Throws:
        javax.jcr.LoginException
        javax.jcr.RepositoryException
      • getSystemSession

        @Deprecated
        public javax.jcr.Session getSystemSession()
                                           throws javax.jcr.LoginException,
                                                  javax.jcr.RepositoryException
        Deprecated.
        Create a system session. Caller must log out the returned session after use.
        Throws:
        javax.jcr.LoginException
        javax.jcr.RepositoryException
      • createSystemSession

        public javax.jcr.Session createSystemSession()
                                              throws javax.jcr.LoginException,
                                                     javax.jcr.RepositoryException
        Get a system session. Caller must log out the returned session after use.
        Throws:
        javax.jcr.LoginException
        javax.jcr.RepositoryException
      • getAttributeNames

        public Collection<String> getAttributeNames()
        Returns:
        the collection of all the attribute names.