Package com.ibm.xsp.model.domino.wrapped

Examples of com.ibm.xsp.model.domino.wrapped.DominoDocument


    if (ctx.getViewRoot() == null) {
      rootWasNull = true;
      ctx.setViewRoot(FacesUtil.getViewRoot(getComponent()));
    }

    final DominoDocument dominoDoc = (DominoDocument) ExtLibUtil.resolveVariable(ctx, "currentDocument");
    Map<String, Object> dataMap = null;
    if (dominoDoc instanceof Map) {
      dataMap = (Map<String, Object>) dominoDoc;
    } else {
      dataMap = new DominoDocumentMapAdapter(dominoDoc);
View Full Code Here


   *
   * @return the current {@link Document}
   */
  @Override
  public Document getDocument() {
    DominoDocument dominoDoc = getXspDocument();
    if (dominoDoc != null) {
      return Factory.fromLotus(dominoDoc.getDocument(), Document.SCHEMA, null);
    } else {
      return super.getDocument();
    }
  }
View Full Code Here

      if (((i & Database.DBACL_CREATE_DOCS) == 0) && ((i & Database.DBACL_WRITE_PUBLIC_DOCS) == 0)) {
        throw new NoAccessSignal("User " + currentUser + " is has not enough privileges to create documents in "
            + getDatabaseName());
      }
    }
    DominoDocument dominoDoc = DominoDocument.wrap(getDatabaseName(), db, getParentId(), getFormName(), getComputeWithForm(),
        getConcurrencyMode(), isAllowDeletedDocs(), getSaveLinksAs(), getWebQuerySaveAgent());

    OpenntfDominoDocument ntfDoc = wrap(dominoDoc, true);
    ntfDoc.setEditable(true);
    return ntfDoc;
View Full Code Here

    if (backendDoc != null) {
      BackendBridge.setNoRecycle(backendDoc.getParentDatabase().getParent(), backendDoc, true);
    }

    DominoDocument dominoDoc = DominoDocument.wrap(getDatabaseName(), backendDoc, getComputeWithForm(), getConcurrencyMode(),
        allowDelted, getSaveLinksAs(), getWebQuerySaveAgent());
    OpenntfDominoDocument ntfDoc = wrap(dominoDoc, false);
    boolean editMode = "editDocument".equals(getEffectiveAction());
    ntfDoc.setEditable(editMode);
    return ntfDoc;
View Full Code Here

    if (ctx.getViewRoot() == null) {
      rootWasNull = true;
      ctx.setViewRoot(FacesUtil.getViewRoot(getComponent()));
    }

    final DominoDocument dominoDoc = (DominoDocument) ExtLibUtil.resolveVariable(ctx, "currentDocument");
    Map<String, Object> dataMap = null;
    if (dominoDoc instanceof Map) {
      dataMap = (Map<String, Object>) dominoDoc;
    } else {
      dataMap = new DominoDocumentMapAdapter(dominoDoc);
View Full Code Here

TOP

Related Classes of com.ibm.xsp.model.domino.wrapped.DominoDocument

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.