public interface JackrabbitRepository
Repository
interface.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_PRINCIPAL_MANAGEMENT_SUPPORTED
Key to a
boolean descriptor. |
static java.lang.String |
OPTION_PRIVILEGE_MANAGEMENT_SUPPORTED
Key to a
boolean descriptor. |
static java.lang.String |
OPTION_USER_MANAGEMENT_SUPPORTED
Key to a
boolean descriptor. |
Modifier and Type | Method and Description |
---|---|
Session |
login(Credentials credentials,
java.lang.String workspaceName,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Equivalent to
login(credentials, workspaceName) except that the returned
Session instance contains the given extra session attributes in addition to any
included in the given Credentials instance. |
void |
shutdown()
Shuts down the repository.
|
static final java.lang.String OPTION_USER_MANAGEMENT_SUPPORTED
boolean
descriptor. Returns true
if
and only if user management is supported.static final java.lang.String OPTION_PRINCIPAL_MANAGEMENT_SUPPORTED
boolean
descriptor. Returns true
if
and only if principal management is supported.static final java.lang.String OPTION_PRIVILEGE_MANAGEMENT_SUPPORTED
boolean
descriptor. Returns true
if
and only if privilege management is supported.Session login(Credentials credentials, java.lang.String workspaceName, java.util.Map<java.lang.String,java.lang.Object> attributes) throws LoginException, NoSuchWorkspaceException, RepositoryException
login(credentials, workspaceName)
except that the returned
Session instance contains the given extra session attributes in addition to any
included in the given Credentials instance. Attribute names from the credentials
and the attribute map must not overlap. In case of an overlap implementation
may throw an RepositoryException
.
The attributes are implementation-specific and may affect the behavior of the returned session. Unlike credentials attributes, these separately passed session attributes are guaranteed not to affect the authentication of the client.
An implementation that does not support a particular session attribute is expected to ignore it and not make it available through the returned session. A client that depends on specific behavior defined by a particular attribute can check whether the returned session contains that attribute to verify whether the underlying repository implementation supports that feature.
credentials
- the credentials of the userworkspaceName
- the name of a workspaceattributes
- implementation-specific session attributesLoginException
- if authentication or authorization for the specified workspace failsNoSuchWorkspaceException
- if the specified workspace is not recognizedRepositoryException
- if another error occursvoid shutdown()
Possible errors are logged rather than thrown as exceptions as there is little that a client application could do in such a case.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"