The methods Repository.getDescriptorKeys and Repository.getDescriptor can be used to query information about the particular repository implementation. The required names are defined as string constants of the Repository interface. They are:
Descriptor Key |
Information Returned |
SPEC_VERSION_DESC |
For this specification the value of this descriptor is “1.0”. |
SPEC_NAME_DESC |
For this specification the value of this descriptor is “Content Repository for Java Technology API”. |
REP_VENDOR_DESC |
The name of the vendor of this repository implementation. |
REP_VENDOR_URL_DESC |
The URL of the repository vendor. |
REP_NAME_DESC |
The name of this repository implementation. |
REP_VERSION_DESC |
The version of this repository implementation. |
LEVEL_1_SUPPORTED |
Indicates whether this implementation supports all level 1 features. This descriptor should always be “true”. |
LEVEL_2_SUPPORTED |
Indicates whether this implementation supports all level 2 features. This descriptor will be either “true” or “false”. |
OPTION_TRANSACTIONS_SUPPORTED |
Indicates whether this implementation supports transactions. This descriptor will be either “true” or “false”. |
OPTION_VERSIONING_SUPPORTED |
Indicates whether this implementation supports versioning. This descriptor will be either “true” or “false”. |
OPTION_OBSERVATION_SUPPORTED |
Indicates whether this implementation supports observation. This descriptor will be either “true” or “false”. |
OPTION_LOCKING_SUPPORTED |
Indicates whether this implementation supports locking. This descriptor will be either “true” or “false”. |
OPTION_QUERY_SQL_SUPPORTED |
Indicates whether this implementation supports queries using the SQL language. This descriptor will be either “true” or “false”. |
QUERY_XPATH_POS_INDEX |
Indicates whether this implementation supports index position notation for same-name siblings within XPath queries. This descriptor will be either “true” or “false”. See 6.6.4.1 Adapting XPath to the Content Repository::Same-Name Siblings for more details. |
QUERY_XPATH_DOC_ORDER |
Indicates whether this implementation returns the results of XPath queries in document order. This descriptor will be either “true” or “false”. See 6.6.4.2 Adapting XPath to the Content Repository::Document Order. |
Implementations may add additional descriptors.