// Retrieve all Object stores in CE
public void FetchOSList(Connection conn) { //FileNet CE Connection
try {
Domain domain = Factory.Domain.fetchInstance(conn, null, null);
ObjectStoreSet osSet= domain.get_ObjectStores();
ObjectStore store;
Iterator iterator = osSet.iterator();
Iterator<ObjectStore> osIter = iterator;
while (osIter.hasNext()) {
store = (ObjectStore)osIter.next();
if((store.getAccessAllowed().intValue() & AccessLevel.USE_OBJECT_STORE.getValue())>0)
System.out.println(store.get_Name());
}
} catch (Exception e) {
e.printStackTrace();
}
}
No comments:
Post a Comment