示例#1
0
  private void populateElements() throws ServiceException {
    this.elements = new ArrayList<Element>();

    String mainLegalHandle =
        AppServiceFacade.getDocumentService()
            .getTree(this.userIdCaller, this.tldCaller)
            .getMainLegal()
            .getHandle();
    this.elements.add(
        AppServiceFacade.getDocumentService()
            .getElementWithHandle(
                mainLegalHandle, Folder.class, this.userIdCaller, this.tldCaller));

    String mainOperationHandle =
        AppServiceFacade.getDocumentService()
            .getTree(this.userIdCaller, this.tldCaller)
            .getMainOperation()
            .getHandle();
    this.elements.add(
        AppServiceFacade.getDocumentService()
            .getElementWithHandle(
                mainOperationHandle, Folder.class, this.userIdCaller, this.tldCaller));
  }