public interface CRXRepository
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CRX_NAMESPACE_PREFIX
the crx namespace prefix
|
static java.lang.String |
CRX_NAMESPACE_URI
the crx namespace uri
|
static java.lang.String |
LICENSE_PROPERTIES
Default name for the license properties file
|
static java.lang.String |
REP_CLUSTER_ID
Deprecated.
Use Sling's discovery API instead - ie by implementing a TopologyEventListener
|
static java.lang.String |
REP_CLUSTER_MASTER
Deprecated.
Use Sling's discovery API instead - ie by implementing a TopologyEventListener
|
static java.lang.String |
REP_CLUSTER_PREFERRED_MASTER
Deprecated.
Not applicable to Oak.
|
static java.lang.String |
REP_SYSTEM_ID
the system id param
|
static java.lang.String |
REP_VERSION_DISPLAY_DESC
the version to display
|
static java.lang.String |
STATS_NODE_COUNT_PROPERTY
desciptor-key name for node-count statistic
|
static java.lang.String |
STATS_PROP_COUNT_PROPERTY
desciptor-key name for property-count statistic
|
static java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getHomeDir()
Returns the repository home
|
License |
getLicense()
Deprecated.
Use the Granite License API
|
CRXModule |
getModule(java.lang.String moduleName)
Returns the Module with the given name.
|
CRXModule[] |
getModules()
Returns all currently installed modules.
|
void |
installModule(Session session,
CRXModule module)
Installs a preconfigured
CRXModule into the repository. |
void |
uninstallModule(Session session,
java.lang.String moduleName)
Uninstalls the named
CRXModule from the repository. |
static final java.lang.String CRX_NAMESPACE_PREFIX
static final java.lang.String CRX_NAMESPACE_URI
static final java.lang.String REP_CLUSTER_PREFERRED_MASTER
static final java.lang.String REP_CLUSTER_MASTER
static final java.lang.String REP_CLUSTER_ID
static final java.lang.String REP_SYSTEM_ID
static final java.lang.String REP_VERSION_DISPLAY_DESC
static final java.lang.String STATS_NODE_COUNT_PROPERTY
static final java.lang.String STATS_PROP_COUNT_PROPERTY
@Deprecated static final java.lang.String SYSTEM_WORKSPACE_NAME
static final java.lang.String LICENSE_PROPERTIES
CRXModule getModule(java.lang.String moduleName)
moduleName
- The name of the CRXModule
to return.CRXModule
or null
if no
module whose CRXModule.getName()
returns that name is
registered or if moduleName
is null
or
empty.CRXModule[] getModules()
void installModule(Session session, CRXModule module) throws AccessDeniedException, RepositoryException
CRXModule
into the repository.
After starting
the 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)
and getModules()
method.
session
- The Session
authorizing the installation of
a new module into the repository. If the session
does
not have enough rights to install a module, an
AccessDeniedException
is thrown.module
- The CRXModule
to install. This must not be
null
.java.lang.NullPointerException
- Is thrown if session
or
module
is null
.java.lang.IllegalArgumentException
- Is thrown if a module with the same
name, that is if another module whose getName()
is equal to the getName()
of module
or if
module.getName()
returns an empty or
null
name.AccessDeniedException
- Is thrown if the session
has
not enough rights to install a module into the repository.RepositoryException
- Is thrown if the
CRXModule.start(CRXSession)
module fails or if any other
problem occurs during installation.void uninstallModule(Session session, java.lang.String moduleName) throws AccessDeniedException
CRXModule
from 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
moduleName
is empty or null
, this method
has on effect.
session
- The Session
authorizing the uninstallation of
a module from the repository. If the session
does
not have enough rights to uninstall a module, an
AccessDeniedException
is thrown.moduleName
- The name as returned by CRXModule.getName()
of
the module to uninstall.AccessDeniedException
- Is thrown if the session
has
not enough rights to install a module into the repository.License getLicense()
java.io.File getHomeDir()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"