|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ObjectStores
collection contains
ObjectStore
objects. The primary use of
this collection is for retrieving a set of ObjectStore
objects to act upon.
You can instantiate an ObjectStores
collection object in one
of the following ways:
ObjectFactory.getObjectStores(Session sess)
to get a new, empty ObjectStores
collection object.EntireNetwork.getObjectStores()
,
which returns a collection of all ObjectStore
objects for the current
domain that are known to the Active Directory on the Content Services server.The following code fragment creates an EntireNetwork
object
and retrieves from it an ObjectStores
collection. The code
iterates through the collection, retrieving the value of the DisplayName
property for each ObjectStore
object in the collection.
Session session = com.filenet.Panagon.ObjectFactory.getSession("myApp", null, "user1", "password", null);
EntireNetwork network = ObjectFactory.getEntireNetwork(session);
ObjectStores objStores = network.getObjectStores();
ObjectStore objStore = null;
Properties props;
Property prop;
String objStoreName = null;
// Get each object store
Iterator iterator = objStores.iterator();
while(iterator.hasNext())
{
objStore = (ObjectStore) iterator.next();
System.out.println(objStore.getName());
}
Field Summary |
Fields inherited from interface com.filenet.wcm.api.ReadableMetadataObjects |
IS_EQUAL, IS_GREATER, IS_GREATER_OR_EQUAL, IS_LESS, IS_LESS_OR_EQUAL, IS_NOT_EQUAL |
Methods inherited from interface com.filenet.wcm.api.ReadableMetadataObjects |
filterByProperty, filterByProperty, filterByProperty, filterByProperty, filterByProperty, filterByProperty, filterByProperty, findByProperty, findByProperty, findByProperty, findByProperty, findByProperty, findByProperty, findByProperty, orderByProperty, orderByProperty |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |