Package com.ipc.oce.objects

Examples of com.ipc.oce.objects.OCDocumentCollection


   * Используется для доступа к определенным в конфигурации документам.
   * @return OCDocumentCollection
   * @throws JIException
   */
  public OCDocumentCollection getDocumentCollection() throws JIException {
    return new OCDocumentCollection(get("Documents"));
  }
View Full Code Here


   * @param documentName - имя документа
   * @return OCDocumentManager
   * @throws JIException
   */
  public OCDocumentManager getDocumentManager(String documentName) throws JIException {
    OCDocumentCollection collection = getDocumentCollection();
    try {
      return collection.getDocument(documentName);
    } catch (JIException e) {
      getErrorListener().onError(this, e);
      throw e;
    }
  }
View Full Code Here

    }
  }
 
  @Test
  public void enumDocument() throws JIException {
    OCDocumentCollection collection = app.getDocumentCollection();
    System.out.println("\nOCDocumentCollection ====================");
    for (OCDocumentManager manager : collection) {
      System.out.println(manager.getMetadata().getFullName());
    }
  }
View Full Code Here

*/
public class JUDocuments extends BasicTest {

  @Test
  public void getCollectionAndIterate() throws JIException {
    OCDocumentCollection docCollection = app.getDocumentCollection();
    int docCount = 0;
    for (OCDocumentManager manager : docCollection) {
      docCount++;
    }
    System.out.println("Total documents: " + docCount);
View Full Code Here

TOP

Related Classes of com.ipc.oce.objects.OCDocumentCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.