Package com.day.crx
Interface CRXRepository
-
- All Superinterfaces:
Repository
public interface CRXRepository extends Repository
This Interface extends the jcr repository by some crx specific methods
-
-
Field Summary
Fields Modifier and Type Field Description static StringCRX_NAMESPACE_PREFIXthe crx namespace prefixstatic StringCRX_NAMESPACE_URIthe crx namespace uristatic StringLICENSE_PROPERTIESDefault name for the license properties filestatic StringREP_CLUSTER_IDDeprecated.Use Sling's discovery API instead - ie by implementing a TopologyEventListenerstatic StringREP_CLUSTER_MASTERDeprecated.Use Sling's discovery API instead - ie by implementing a TopologyEventListenerstatic StringREP_CLUSTER_PREFERRED_MASTERDeprecated.Not applicable to Oak.static StringREP_SYSTEM_IDthe system id paramstatic StringREP_VERSION_DISPLAY_DESCthe version to displaystatic StringSTATS_NODE_COUNT_PROPERTYdesciptor-key name for node-count statisticstatic StringSTATS_PROP_COUNT_PROPERTYdesciptor-key name for property-count statisticstatic StringSYSTEM_WORKSPACE_NAMEDeprecated.As of CRX 2.0 the automatic initialization of a crx.system workspace is omitted.-
Fields inherited from interface javax.jcr.Repository
IDENTIFIER_STABILITY, IDENTIFIER_STABILITY_INDEFINITE_DURATION, IDENTIFIER_STABILITY_METHOD_DURATION, IDENTIFIER_STABILITY_SAVE_DURATION, IDENTIFIER_STABILITY_SESSION_DURATION, LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, NODE_TYPE_MANAGEMENT_AUTOCREATED_DEFINITIONS_SUPPORTED, NODE_TYPE_MANAGEMENT_INHERITANCE, NODE_TYPE_MANAGEMENT_INHERITANCE_MINIMAL, NODE_TYPE_MANAGEMENT_INHERITANCE_MULTIPLE, NODE_TYPE_MANAGEMENT_INHERITANCE_SINGLE, NODE_TYPE_MANAGEMENT_MULTIPLE_BINARY_PROPERTIES_SUPPORTED, NODE_TYPE_MANAGEMENT_MULTIVALUED_PROPERTIES_SUPPORTED, NODE_TYPE_MANAGEMENT_ORDERABLE_CHILD_NODES_SUPPORTED, NODE_TYPE_MANAGEMENT_OVERRIDES_SUPPORTED, NODE_TYPE_MANAGEMENT_PRIMARY_ITEM_NAME_SUPPORTED, NODE_TYPE_MANAGEMENT_PROPERTY_TYPES, NODE_TYPE_MANAGEMENT_RESIDUAL_DEFINITIONS_SUPPORTED, NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED, NODE_TYPE_MANAGEMENT_UPDATE_IN_USE_SUPORTED, NODE_TYPE_MANAGEMENT_VALUE_CONSTRAINTS_SUPPORTED, OPTION_ACCESS_CONTROL_SUPPORTED, OPTION_ACTIVITIES_SUPPORTED, OPTION_BASELINES_SUPPORTED, OPTION_JOURNALED_OBSERVATION_SUPPORTED, OPTION_LIFECYCLE_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED, OPTION_NODE_TYPE_MANAGEMENT_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_RETENTION_SUPPORTED, OPTION_SHAREABLE_NODES_SUPPORTED, OPTION_SIMPLE_VERSIONING_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_UNFILED_CONTENT_SUPPORTED, OPTION_UPDATE_MIXIN_NODE_TYPES_SUPPORTED, OPTION_UPDATE_PRIMARY_NODE_TYPE_SUPPORTED, OPTION_VERSIONING_SUPPORTED, OPTION_WORKSPACE_MANAGEMENT_SUPPORTED, OPTION_XML_EXPORT_SUPPORTED, OPTION_XML_IMPORT_SUPPORTED, QUERY_FULL_TEXT_SEARCH_SUPPORTED, QUERY_JOINS, QUERY_JOINS_INNER, QUERY_JOINS_INNER_OUTER, QUERY_JOINS_NONE, QUERY_LANGUAGES, QUERY_STORED_QUERIES_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, WRITE_SUPPORTED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description FilegetHomeDir()Returns the repository homeLicensegetLicense()Deprecated.Use the Granite License APICRXModulegetModule(String moduleName)Returns the Module with the given name.CRXModule[]getModules()Returns all currently installed modules.voidinstallModule(Session session, CRXModule module)Installs a preconfiguredCRXModuleinto the repository.voiduninstallModule(Session session, String moduleName)Uninstalls the namedCRXModulefrom the repository.-
Methods inherited from interface javax.jcr.Repository
getDescriptor, getDescriptorKeys, getDescriptorValue, getDescriptorValues, isSingleValueDescriptor, isStandardDescriptor, login, login, login, login
-
-
-
-
Field Detail
-
CRX_NAMESPACE_PREFIX
static final String CRX_NAMESPACE_PREFIX
the crx namespace prefix- See Also:
- Constant Field Values
-
CRX_NAMESPACE_URI
static final String CRX_NAMESPACE_URI
the crx namespace uri- See Also:
- Constant Field Values
-
REP_CLUSTER_PREFERRED_MASTER
@Deprecated static final String REP_CLUSTER_PREFERRED_MASTER
Deprecated.Not applicable to Oak.this flag indicates whether this repository is configured to be the preferred master- See Also:
- Constant Field Values
-
REP_CLUSTER_MASTER
@Deprecated static final String REP_CLUSTER_MASTER
Deprecated.Use Sling's discovery API instead - ie by implementing a TopologyEventListenerthis flag indicates whether this repository currently operates in master mode.- See Also:
- Constant Field Values
-
REP_CLUSTER_ID
@Deprecated static final String REP_CLUSTER_ID
Deprecated.Use Sling's discovery API instead - ie by implementing a TopologyEventListenerthe cluster id.- See Also:
- Constant Field Values
-
REP_SYSTEM_ID
static final String REP_SYSTEM_ID
the system id param- See Also:
- Constant Field Values
-
REP_VERSION_DISPLAY_DESC
static final String REP_VERSION_DISPLAY_DESC
the version to display- See Also:
- Constant Field Values
-
STATS_NODE_COUNT_PROPERTY
static final String STATS_NODE_COUNT_PROPERTY
desciptor-key name for node-count statistic- See Also:
- Constant Field Values
-
STATS_PROP_COUNT_PROPERTY
static final String STATS_PROP_COUNT_PROPERTY
desciptor-key name for property-count statistic- See Also:
- Constant Field Values
-
SYSTEM_WORKSPACE_NAME
@Deprecated static final String SYSTEM_WORKSPACE_NAME
Deprecated.As of CRX 2.0 the automatic initialization of a crx.system workspace is omitted. User data are no stored in each workspace.name of the workspace, containing system data, like users etc- See Also:
- Constant Field Values
-
LICENSE_PROPERTIES
static final String LICENSE_PROPERTIES
Default name for the license properties file- See Also:
- Constant Field Values
-
-
Method Detail
-
getModule
CRXModule getModule(String moduleName)
Returns the Module with the given name.- Parameters:
moduleName- The name of theCRXModuleto return.- Returns:
- The installed
CRXModuleornullif no module whoseCRXModule.getName()returns that name is registered or ifmoduleNameisnullor empty.
-
getModules
CRXModule[] getModules()
Returns all currently installed modules. The array is a copy of the internal data structure of installed modules, so modifying the array returned does not influence the installed modules.- Returns:
- An array of all currently installed modules. If no modules are installed, an empty array is returned.
-
installModule
void installModule(Session session, CRXModule module) throws AccessDeniedException, RepositoryException
Installs a preconfiguredCRXModuleinto the repository.After
startingthe module it is registered.If an error occurs, that is if any exception is thrown, the module is not registered and will not be returned by the
getModule(String)andgetModules()method.- Parameters:
session- TheSessionauthorizing the installation of a new module into the repository. If thesessiondoes not have enough rights to install a module, anAccessDeniedExceptionis thrown.module- TheCRXModuleto install. This must not benull.- Throws:
NullPointerException- Is thrown ifsessionormoduleisnull.IllegalArgumentException- Is thrown if a module with the same name, that is if another module whosegetName()is equal to thegetName()ofmoduleor ifmodule.getName()returns an empty ornullname.AccessDeniedException- Is thrown if thesessionhas not enough rights to install a module into the repository.RepositoryException- Is thrown if theCRXModule.start(CRXSession)module fails or if any other problem occurs during installation.
-
uninstallModule
void uninstallModule(Session session, String moduleName) throws AccessDeniedException
Uninstalls the namedCRXModulefrom the repository.After unregistering the module, the
CRXModule.stop()method is called.If no module with the given name is installed in the system or if
moduleNameis empty ornull, this method has on effect.- Parameters:
session- TheSessionauthorizing the uninstallation of a module from the repository. If thesessiondoes not have enough rights to uninstall a module, anAccessDeniedExceptionis thrown.moduleName- The name as returned byCRXModule.getName()of the module to uninstall.- Throws:
AccessDeniedException- Is thrown if thesessionhas not enough rights to install a module into the repository.
-
getLicense
@Deprecated License getLicense()
Deprecated.Use the Granite License APIReturns the product license of this repository- Returns:
- the product license of this repository
-
getHomeDir
File getHomeDir()
Returns the repository home- Returns:
- the repository home
-
-