Examples of OCDocumentCollection


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

Examples of com.ipc.oce.objects.OCDocumentCollection

   * @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

Examples of com.ipc.oce.objects.OCDocumentCollection

    }
  }
 
  @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

Examples of com.ipc.oce.objects.OCDocumentCollection

*/
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
Copyright © 2018 www.massapi.com. 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.