The Content Java™ API defines certain root and high-level objects,
which provide access to the contents of object stores persisted to
a Content Engine. Some of the commonly used root and high-level objects
of the Content Java API are briefly described below. For more information
about these objects, refer to the
Content Java API Developer's
Guide.
- EntireNetwork: Represents the entire structure
of the FileNet P8 domain and object stores, as defined in the Global
Configuration Data (GCD) file on the Content Engine server. To expose
all public objects that are part of this hierarchical structure, you
can instantiate the EntireNetwork object, as shown
below:
EntireNetwork loEntireNetwork = ObjectFactory.getEntireNetwork(loSession);
- Domain: Represents the FileNet P8 domain as defined
in the GCD file on the Content Engine server. To retrieve the object
stores residing in the FileNet P8 domain and their associated properties,
you begin by instantiating the Domain interface,
and then calling the appropriate methods. To instantiate the Domain interface,
use the following code:
Domains loDomains = EntireNetwork.getAvailableDomains();
- Realm: Represents a collection of users and groups
that are recognized by the FileNet P8 domain and defined on the Content
Engine server. You use the Realm object to retrieve
users and groups stored in FileNet P8-compatible directory services,
such as Active Directory.
- Session: Contains the user credentials, such
as user ID and password, and configuration information. The Content
Engine server authenticates this information before providing access
to its resources. To create a session, you can use the following code:
Session loSession = ObjectFactory.getSession(appId, null, userId, password);
- ObjectStore: Represents a location in which objects
are stored on the Content Engine server. In order to use the RM Java
API, you need to first instantiate the ObjectStore object,
as shown in the following code:
ObjectStore loObjectStore = ObjectFactory.getObjectStore(objectStoreName, loSession);