Class Factory.ObjectStore
- java.lang.Object
-
- com.filenet.api.core.Factory.ObjectStore
-
- Enclosing class:
- Factory
public static class Factory.ObjectStore extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static ObjectStorecreateInstance(Domain domain, java.lang.String[] admins, java.lang.String[] users)Creates a new instance of theObjectStoreclass based on the specified parameters.static ObjectStorecreateInstance(Domain domain, java.lang.String[] admins, java.lang.String[] users, java.lang.String schemaScript)Creates a new instance of theObjectStoreclass based on the specified parameters.static ObjectStorefetchInstance(Domain domain, Id id, PropertyFilter filter)Retrieves an object of theObjectStoreclass by the specified domain and ID.static ObjectStorefetchInstance(Domain domain, java.lang.String name, PropertyFilter filter)Retrieves the specified object from thisObjectStoreobject.static ObjectStoregetInstance(Domain domain, Id id)Constructs an instance of theObjectStoreclass by the specified domain and ID.static ObjectStoregetInstance(Domain domain, java.lang.String name)Retrieves an instance of theObjectStoreclass by the specified domain and ID.
-
-
-
Method Detail
-
getInstance
public static ObjectStore getInstance(Domain domain, java.lang.String name)
Retrieves an instance of theObjectStoreclass by the specified domain and ID. This method does not verify the existence of the requested object on the server; it simply returns a local reference without making a round-trip to the server. The local reference is not affiliated with an object of this class type until you perform a function on the object (for example, fetch a property value) that causes a round-trip to the Content Engine server.- Parameters:
domain- The FileNet P8 domain to which this object is scoped.name- The symbolic name of the class instance to retrieve.- Returns:
- A reference to an
ObjectStoreobject.
-
fetchInstance
public static ObjectStore fetchInstance(Domain domain, java.lang.String name, PropertyFilter filter)
Retrieves the specified object from thisObjectStoreobject. This method always makes a round-trip to the server. You can optionally include a filter to control which properties to return with the object. If you pass innullfor thefilterparameter, this method returns values for all non-object properties and returns placeholders for all object-valued properties. For more information, see the description of thefilterparameter.- Parameters:
domain- The FileNet P8 domain to which this object is scoped.name- The symbolic name of the class instance to retrieve.filter- APropertyFilterobject that represents information for controlling which property values (and with what level of detail and recursion) to return. Ifnull, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObjectproperties with a state ofPropertyState.UNEVALUATEDorPropertyState.REFERENCE); any subsequent attempts to access an object-valued property will cause an automatic round-trip to the server to fetch its value.- Returns:
- An
ObjectStore.
-
createInstance
public static ObjectStore createInstance(Domain domain, java.lang.String[] admins, java.lang.String[] users)
Creates a new instance of theObjectStoreclass based on the specified parameters. Before calling thesavemethod, you must also set additional properties for the object store. DisplayName, SymbolicName, JNDIDataSource, and JNDIXADataSource are required at a minimum. Use property accessor methods (for example, set_DisplayName) to set the property values. TheObjectStoreobject is created when the returned instance is saved.Note: Provide values for the
adminsandusersparameters. Otherwise, Content Engine will derive default values based on permissions on the P8 Domain, and these values might not be correct for your environment. See Object store access rights.- Parameters:
domain- The FileNet P8 domain to which the new instance is scoped.admins- An array of strings representing the administrative users and/or groups who can access this object store; for example, "Domain Admins".users- An array of strings representing the security principal names of the users and/or groups who can access this object store; for example, "Domain Users".- Returns:
- An
ObjectStore.
-
createInstance
public static ObjectStore createInstance(Domain domain, java.lang.String[] admins, java.lang.String[] users, java.lang.String schemaScript)
Creates a new instance of theObjectStoreclass based on the specified parameters. Before calling thesavemethod, you must also set additional properties for the object store. DisplayName, SymbolicName, JNDIDataSource, and JNDIXADataSource are required at a minimum. Use property accessor methods (for example, set_DisplayName) to set the property values. TheObjectStoreobject is created when the returned instance is saved.This form of the
createInstancemethod allows you to submit a custom schema script that the server will use during object store creation. Typical modifications to the script include the distribution of the various tables, indexes, and Large Object (LOB) columns across different tablespaces. However, note that making changes to the names and structures of the tables, indexes, and columns is not supported; such changes will lead to system failures.Note: It is a best practice to provide values for the
adminsandusersparameters. Otherwise, Content Engine will derive a default value based on permissions on the P8 Domain, and this value might not be correct for your environment. See Object store access rights.- Parameters:
domain- The FileNet P8 domain to which the new instance is scoped.admins- An array of strings representing the administrative users and/or groups who can access this object store; for example, "Domain Admins".users- An array of strings representing the security principal names of the users and/or groups who can access this object store; for example, "Domain Users".schemaScript- A string containing a customized schema script specifying the object store's database schema. This script should be derived from the appropriateDomain.ObjectStoreSchemaXXXproperty, where XXX is the database type (DB2, MSSQL, or Oracle), and must contain the correct version information.- Returns:
- An
ObjectStore.
-
getInstance
public static ObjectStore getInstance(Domain domain, Id id)
Constructs an instance of theObjectStoreclass by the specified domain and ID. This method does not verify the existence of the requested object on the server; it simply returns a local reference without making a round-trip to the server. The local reference is not affiliated with an object of this class type until you perform a function on the object (for example, fetch a property value) that causes a round-trip to the Content Engine server.- Parameters:
domain- The FileNet P8 domain to which the new instance is scoped.id- The ID (GUID) of the object to retrieve.- Returns:
- A reference to an object of the requested type.
-
fetchInstance
public static ObjectStore fetchInstance(Domain domain, Id id, PropertyFilter filter)
Retrieves an object of theObjectStoreclass by the specified domain and ID. This method always makes a round-trip to the server. You can optionally include a filter to control which properties to return with the object. If you pass innullfor thefilterparameter, this method returns values for all non-object properties and returns placeholders for all object-valued properties. For details, see the description of thefilterparameter.- Parameters:
domain- TheDomainobject to which this class instance is scoped.id- The ID (GUID) of the object to retrieve.filter- APropertyFilterobject that represents information for controlling which property values (and with what level of detail and recursion) to return. Ifnull, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObjectproperties with a state ofPropertyState.UNEVALUATEDorPropertyState.REFERENCE); any subsequent attempts to access an object-valued property will cause an automatic round-trip to the server to fetch its value.- Returns:
- An object of the requested type.
-
-