Class RepositoryJobExecutionContext
java.lang.Object
org.onehippo.repository.scheduling.RepositoryJobExecutionContext
Context object containing operational information and helper objects for use by
RepositoryJob
s to do their job.-
Constructor Summary
ConstructorDescriptionRepositoryJobExecutionContext
(Session systemSession, Map<String, String> attributes) -
Method Summary
Modifier and TypeMethodDescriptioncreateSession
(Credentials credentials) Create a session with the given credentials.Get a system session.getAttribute
(String name) Get an attribute value.getSession
(Credentials credentials) Deprecated.Deprecated.usecreateSystemSession()
instead
-
Constructor Details
-
RepositoryJobExecutionContext
-
-
Method Details
-
getSession
@Deprecated public Session getSession(Credentials credentials) throws LoginException, RepositoryException Deprecated.usecreateSession(javax.jcr.Credentials)
insteadGet a session with the given credentials. Caller must log out the returned session after use.- Throws:
LoginException
RepositoryException
-
createSession
Create a session with the given credentials. Caller must log out the returned session after use.- Throws:
LoginException
RepositoryException
-
getSystemSession
Deprecated.usecreateSystemSession()
insteadCreate a system session. Caller must log out the returned session after use.- Throws:
LoginException
RepositoryException
-
createSystemSession
Get a system session. Caller must log out the returned session after use.- Throws:
LoginException
RepositoryException
-
getAttribute
Get an attribute value. You can pass attributes to this context object throughRepositoryJobInfo.setAttribute(String, String)
.- Parameters:
name
- the name of the attribute.- Returns:
- the attribute value associated with name.
-
getAttributeNames
- Returns:
- the collection of all the attribute names.
-
createSession(javax.jcr.Credentials)
instead