|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.commons.AbstractRepository
public abstract class AbstractRepository
Abstract base class for implementing the JCR Repository interface.
This class implements the three utility login methods by calling the
Repository.login(Credentials, String) method with null
arguments as specified in the JCR API.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AbstractRepository()
|
|
| Method Summary | |
|---|---|
boolean |
isStandardDescriptor(String key)
Returns true if the given key identifies a standard descriptor. |
Session |
login()
Calls Repository.login(Credentials, String) with
null arguments. |
Session |
login(Credentials credentials)
Calls Repository.login(Credentials, String) with
the given credentials and a null workspace name. |
Session |
login(String workspace)
Calls Repository.login(Credentials, String) with
null credentials and the given workspace name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jcr.Repository |
|---|
getDescriptor, getDescriptorKeys, getDescriptorValue, getDescriptorValues, isSingleValueDescriptor, login |
| Constructor Detail |
|---|
public AbstractRepository()
| Method Detail |
|---|
public boolean isStandardDescriptor(String key)
isStandardDescriptor in interface Repositorykey - descriptor key
true if the key identifies a standard descriptor,
false otherwise
public Session login()
throws RepositoryException
Repository.login(Credentials, String) with
null arguments.
login in interface RepositoryRepositoryException - if an error occurs
public Session login(Credentials credentials)
throws RepositoryException
Repository.login(Credentials, String) with
the given credentials and a null workspace name.
login in interface Repositorycredentials - login credentials
RepositoryException - if an error occurs
public Session login(String workspace)
throws RepositoryException
Repository.login(Credentials, String) with
null credentials and the given workspace name.
login in interface Repositoryworkspace - workspace name
RepositoryException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||