The Domain controls access to its registered namespaces and performs
initialization and connection management on behalf of the namespaces.
From the client application's perspective, the domain represents the only
directly accessible object. It is through this object that the client
gains access to namespaces, using the static method
Domain.accessNamespace().
Since the domain acts as the root of a directory service, it is a static
entity and there can be only one domain per JVM.
Initialization
When Slide is first initialized, the Domain configuration is loaded.
The location of the domain configuration file is given through the
org.apache.slide.domain property in the Slide properties, or
can be specified as argument to the static Domain.init()
method.
The domain configuration is written by an administrator and describes how
each namespace is to be initialized. It includes information like:
The low-level services the namespace uses (structure store, content
store, etc.)
The namespace base topology, which includes the location of the base
actions and paths in the namespace.
Access and Security
After initialization is complete, the client application can request
access to the domain. It uses one of the two methods:
The Domain uses an object (argument securityObject) to
decide whether or not the client should be granted access. A good
candidate is a reference to the client servlet or servlet context.
Note: Currently, access control on namespaces is not
implemented.
From the client application's perspective, the domain represents the only directly accessible object. It is through this object that the client gains access to namespaces, using the static method
Domain.accessNamespace().Since the domain acts as the root of a directory service, it is a static entity and there can be only one domain per JVM.
Initialization
When Slide is first initialized, the Domain configuration is loaded. The location of the domain configuration file is given through the
org.apache.slide.domainproperty in the Slide properties, or can be specified as argument to the staticDomain.init()method.The domain configuration is written by an administrator and describes how each namespace is to be initialized. It includes information like:
Access and Security
After initialization is complete, the client application can request access to the domain. It uses one of the two methods:
Used to access a specific namespace. This method returns a
NamespaceAccessToken, which thereafter must be used by the client application to perform operations on the namespace.Enumerates the registered namespaces with this domain. This allows application to browse the list of available namespaces.
The Domain uses an object (argument
securityObject) to decide whether or not the client should be granted access. A good candidate is a reference to the client servlet or servlet context.Note: Currently, access control on namespaces is not implemented.