public abstract class AbstractRepository extends 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(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,
String workspaceName,
Map<String,Object> attributes)
This implementation directly delegates to
#login(javax.jcr.Credentials, String)
not supporting any attributes. |
Session |
login(String workspace)
Calls
Repository#login(Credentials, String) with
null credentials and the given workspace name. |
public boolean isStandardDescriptor(String key)
key
- descriptor keytrue
if the key identifies a standard descriptor,
false
otherwisepublic Session login(Credentials credentials, String workspaceName, Map<String,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.LoginException
javax.jcr.NoSuchWorkspaceException
RepositoryException
LoginException
NoSuchWorkspaceException
public 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(String workspace) throws RepositoryException
Repository#login(Credentials, String)
with
null
credentials and the given workspace name.workspace
- workspace nameRepositoryException
- if an error occurs"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"