public interface OracleRepository extends Repository, java.io.Serializable, javax.naming.Referenceable
Use the OracleRepositoryFactory class to create and configure an OracleRepository object. Then call login
to create a JCR session.
OracleRepository objects are both Serializable and Referenceable, allowing them to be stored in a JNDI directory instead of being created and initialized each time.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRAMEWORK_VERSION_DESC
The repository descriptor key for the version of the Oracle JCR framework.
|
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC
Modifier and Type | Method and Description |
---|---|
CredentialsProvider |
getCredentialsProvider()
Gets the CredentialsProvider used to generate a Credentials object when no Credentials object is supplied to the
login method of Repository. |
OracleRepositoryConfiguration |
getRepositoryConfiguration()
Gets the configuration of this repository.
|
boolean |
isStrictSaveRefreshBehavior()
Gets whether the behavior of the
save and refresh methods of Item conforms strictly to the JSR-170 specification. |
void |
setCredentialsProvider(CredentialsProvider cp)
Sets the CredentialsProvider used to generate a Credentials object when no Credentials object is supplied to the
login method of Repository. |
void |
setStrictSaveRefreshBehavior(boolean strict)
Sets whether the behavior of the
save and refresh methods of Item conforms strictly to the JSR-170 specification. |
getDescriptor, getDescriptorKeys, login, login, login, login
static final java.lang.String FRAMEWORK_VERSION_DESC
OracleRepositoryConfiguration getRepositoryConfiguration()
CredentialsProvider getCredentialsProvider()
login
method of Repository.void setCredentialsProvider(CredentialsProvider cp)
login
method of Repository.cp
- the CredentialsProvider, or null if noneboolean isStrictSaveRefreshBehavior()
save
and refresh
methods of Item conforms strictly to the JSR-170 specification.
If true, save
and refresh
can only be called on nodes of type nt:file
, nt:folder
, and ojcr:symbolicLink
. Calling these methods on nodes of other types will throw a ConstraintViolationException. This is the default.
If false, save
and refresh
can be called on any node or property. Calling these methods on properties or nodes whose node type is not nt:file
, nt:folder
, or ojcr:symbolicLink
will save or refresh the containing file, folder, or symbolic link.
void setStrictSaveRefreshBehavior(boolean strict)
save
and refresh
methods of Item conforms strictly to the JSR-170 specification.
If true, save
and refresh
can only be called on nodes of type nt:file
, nt:folder
, and ojcr:symbolicLink
. Calling these methods on nodes of other types will throw a ConstraintViolationException. This is the default.
If false, save
and refresh
can be called on any node or property. Calling these methods on properties or nodes whose node type is not nt:file
, nt:folder
, or ojcr:symbolicLink
will save or refresh the containing file, folder, or symbolic link.
strict
- the behavior; see description