public interface HippoRepository
Repository
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the repository connection.
|
InitializationProcessor |
getInitializationProcessor() |
String |
getLocation()
Get the location where the repository stores information.
|
ReferenceWorkspace |
getOrCreateReferenceWorkspace()
Get or create a new reference workspace for comparing what changed since system bootstrap.
|
javax.jcr.Repository |
getRepository()
Returns the JCR-170 compliant repository object in use.
|
RepositoryMap |
getRepositoryMap(javax.jcr.Node node)
This call is not (yet) part of the API, but under evaluation.
Returns a java.util.Map representation of the subtree starting with the indicated node in the repository.
|
UserTransaction |
getUserTransaction(javax.jcr.Session session)
Get a UserTransaction from the JTA transaction manager through JNDI.
|
UserTransaction |
getUserTransaction(TransactionManager tm,
javax.jcr.Session session)
Get a UserTransaction from the JTA transaction manager through JNDI.
|
javax.jcr.Session |
login()
Creates a new Session for the current user, which might involve opening an anonymous session.
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials)
Creates a new Session for the user identifier with the indicated credentials.
|
javax.jcr.Session |
login(javax.jcr.SimpleCredentials credentials)
Deprecated.
since 2.26.00 use #login(javax.jcr.Credentials) instead
|
javax.jcr.Session |
login(String username,
char[] password)
Creates a new Session for the user identifier with the indicated username and password.
|
javax.jcr.Session login() throws javax.jcr.LoginException, javax.jcr.RepositoryException
javax.jcr.LoginException
javax.jcr.RepositoryException
Repository.login()
javax.jcr.Session login(String username, char[] password) throws javax.jcr.LoginException, javax.jcr.RepositoryException
username
- the username to use as part of the credentialspassword
- the password to use as part of the credentialsjavax.jcr.LoginException
javax.jcr.RepositoryException
Repository.login(javax.jcr.Credentials)
javax.jcr.Session login(javax.jcr.Credentials credentials) throws javax.jcr.LoginException, javax.jcr.RepositoryException
javax.jcr.LoginException
javax.jcr.RepositoryException
Repository.login(javax.jcr.Credentials)
@Deprecated javax.jcr.Session login(javax.jcr.SimpleCredentials credentials) throws javax.jcr.LoginException, javax.jcr.RepositoryException
javax.jcr.LoginException
javax.jcr.RepositoryException
Repository.login(javax.jcr.Credentials)
void close()
UserTransaction getUserTransaction(javax.jcr.Session session) throws javax.jcr.RepositoryException, NotSupportedException
session
- the session for which the transaction support is requestedjavax.jcr.RepositoryException
- generic error such as a connection errorNotSupportedException
- indicates transactions are not supported in the set upUserTransaction getUserTransaction(TransactionManager tm, javax.jcr.Session session) throws NotSupportedException
tm
- the JTA transaction manager to usesession
- the JCR session for which to start the transactionNotSupportedException
- indicates transactions are not supported in the set upString getLocation()
javax.jcr.Repository getRepository()
RepositoryMap getRepositoryMap(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
- the starting node of the subtree to map as a java.util.Mapjavax.jcr.RepositoryException
- in case of a generic error occurs communicating with the repositoryInitializationProcessor getInitializationProcessor()
InitializationProcessor
for this repository for doing initialization tasksReferenceWorkspace getOrCreateReferenceWorkspace() throws javax.jcr.RepositoryException
ReferenceWorkspace
javax.jcr.RepositoryException
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.