|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JackrabbitRepository
The Jackrabbit repository interface. This interface contains the
Jackrabbit-specific extensions to the JCR Repository interface.
| Field Summary | |
|---|---|
static String |
OPTION_PRINCIPAL_MANAGEMENT_SUPPORTED
Key to a boolean descriptor. |
static String |
OPTION_PRIVILEGE_MANAGEMENT_SUPPORTED
Key to a boolean descriptor. |
static String |
OPTION_USER_MANAGEMENT_SUPPORTED
Key to a boolean descriptor. |
| Method Summary | |
|---|---|
Session |
login(Credentials credentials,
String workspaceName,
Map<String,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. |
| Methods inherited from interface javax.jcr.Repository |
|---|
getDescriptor, getDescriptorKeys, getDescriptorValue, getDescriptorValues, isSingleValueDescriptor, isStandardDescriptor, login, login, login, login |
| Field Detail |
|---|
static final String OPTION_USER_MANAGEMENT_SUPPORTED
boolean descriptor. Returns true if
and only if user management is supported.
static final String OPTION_PRINCIPAL_MANAGEMENT_SUPPORTED
boolean descriptor. Returns true if
and only if principal management is supported.
static final String OPTION_PRIVILEGE_MANAGEMENT_SUPPORTED
boolean descriptor. Returns true if
and only if privilege management is supported.
| Method Detail |
|---|
Session login(Credentials credentials,
String workspaceName,
Map<String,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 attributes
LoginException - if authentication or authorization for the specified workspace fails
NoSuchWorkspaceException - if the specified workspace is not recognized
RepositoryException - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||