public class RepositoryJobExecutionContext extends Object
RepositoryJob
s to do their job.Constructor and Description |
---|
RepositoryJobExecutionContext(javax.jcr.Session systemSession,
Map<String,String> attributes) |
Modifier and Type | Method and Description |
---|---|
javax.jcr.Session |
createSession(javax.jcr.Credentials credentials)
Create a session with the given credentials.
|
javax.jcr.Session |
createSystemSession()
Get a system session.
|
String |
getAttribute(String name)
Get an attribute value.
|
Collection<String> |
getAttributeNames() |
javax.jcr.Session |
getSession(javax.jcr.Credentials credentials)
Deprecated.
use
createSession(javax.jcr.Credentials) instead |
javax.jcr.Session |
getSystemSession()
Deprecated.
use
createSystemSession() instead |
@Deprecated public javax.jcr.Session getSession(javax.jcr.Credentials credentials) throws javax.jcr.LoginException, javax.jcr.RepositoryException
createSession(javax.jcr.Credentials)
insteadjavax.jcr.LoginException
javax.jcr.RepositoryException
public javax.jcr.Session createSession(javax.jcr.Credentials credentials) throws javax.jcr.LoginException, javax.jcr.RepositoryException
javax.jcr.LoginException
javax.jcr.RepositoryException
@Deprecated public javax.jcr.Session getSystemSession() throws javax.jcr.LoginException, javax.jcr.RepositoryException
createSystemSession()
insteadjavax.jcr.LoginException
javax.jcr.RepositoryException
public javax.jcr.Session createSystemSession() throws javax.jcr.LoginException, javax.jcr.RepositoryException
javax.jcr.LoginException
javax.jcr.RepositoryException
public String getAttribute(String name)
RepositoryJobInfo.setAttribute(String, String)
.name
- the name of the attribute.public Collection<String> getAttributeNames()
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.