public abstract class AbstractRepository
extends java.lang.Object
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.
| Constructor and Description |
|---|
AbstractRepository() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStandardDescriptor(java.lang.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(Credentials credentials,
java.lang.String workspaceName,
java.util.Map<java.lang.String,java.lang.Object> attributes)
This implementation directly delegates to
#login(javax.jcr.Credentials, String)
not supporting any attributes. |
Session |
login(java.lang.String workspace)
Calls
Repository#login(Credentials, String) with
null credentials and the given workspace name. |
public boolean isStandardDescriptor(java.lang.String key)
key - descriptor keytrue if the key identifies a standard descriptor,
false otherwisepublic Session login(Credentials credentials,
java.lang.String workspaceName,
java.util.Map<java.lang.String,java.lang.Object> attributes)
throws LoginException,
NoSuchWorkspaceException,
RepositoryException
#login(javax.jcr.Credentials, String)
not supporting any attributes.credentials - the credentials of the userworkspaceName - the name of a workspaceattributes - implementation-specific session attributesjavax.jcr.LoginExceptionjavax.jcr.NoSuchWorkspaceExceptionRepositoryExceptionLoginExceptionNoSuchWorkspaceExceptionpublic Session login()
throws RepositoryException
Repository#login(Credentials, String) with
null arguments.RepositoryException - if an error occurspublic Session login(Credentials credentials)
throws RepositoryException
Repository#login(Credentials, String) with
the given credentials and a null workspace name.credentials - login credentialsRepositoryException - if an error occurspublic Session login(java.lang.String workspace)
throws RepositoryException
Repository#login(Credentials, String) with
null credentials and the given workspace name.workspace - workspace nameRepositoryException - if an error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"