Package org.jibeframework.alfresco.node

Examples of org.jibeframework.alfresco.node.CMObject


      }
    });
    argumentsResolver.registerRequestParamResolver("nodeId", new RequestParamArgumentResolver() {
      public void addToArgumentsCache(ArgumentCandidatesCache cache, Object paramValue) {
        if (paramValue != null) {
          CMObject node = repositoryService.fetch(CMObject.class, new NodeRef((String) paramValue));
          cache.add(CMObject.class, node);

        }
      }
    });
View Full Code Here


  public List<CMObject> getVersionHistory(NodeRef nodeRef) {
    List<CMObject> versions = new ArrayList<CMObject>();
    VersionHistory versionHistory = serviceRegistry.getVersionService().getVersionHistory(nodeRef);
    if (versionHistory != null) {
      for (Version version : versionHistory.getAllVersions()) {
        CMObject doc = repositoryService.fetch(CMObject.class, version.getFrozenStateNodeRef());
        versions.add(doc);
      }
    }
    return versions;
  }
View Full Code Here

    StringBuffer b = new StringBuffer(this.query);
    b.append(String.format(" +ID:\"%1$s\"", entryId));
    List<NodeRef> l = AlfrescoUtil.getInstance().getResultSet(b.toString());
    removeEntry(entryId);
    if (!l.isEmpty()) {
      CMObject o = repositoryService.fetch(CMObject.class, new NodeRef(entryId));
      getModel().add(o);
    }
  }
View Full Code Here

  @Override
  protected void removeEntry(final String entryId) {
    CollectionUtils.filter(this.getModel(), new Predicate() {
      public boolean evaluate(Object object) {
        CMObject o = (CMObject) object;
        return !o.getNodeRef().toString().equals(entryId);
      }
    });

  }
View Full Code Here

  public void refreshEntry(String entryId) {
    String q = String.format("ID:\"%1$s\"", entryId);
    List<NodeRef> l = AlfrescoUtil.getInstance().getResultSet(q);
    removeEntry(entryId);
    if (!l.isEmpty()) {
      CMObject o = repositoryService.fetch(CMObject.class, new NodeRef(entryId));
      getModel().add(o);
    }
  }
View Full Code Here

  @Override
  protected void removeEntry(final String entryId) {
    CollectionUtils.filter(this.getModel(), new Predicate() {
      public boolean evaluate(Object object) {
        CMObject o = (CMObject) object;
        return !o.getNodeRef().toString().equals(entryId);
      }
    });

  }
View Full Code Here

    StringBuffer b = new StringBuffer(this.query);
    b.append(String.format(" +ID:\"%1$s\"", entryId));
    List<NodeRef> l = AlfrescoUtil.getInstance().getResultSet(b.toString());
    removeEntry(entryId);
    if (!l.isEmpty()) {
      CMObject o = repositoryService.fetch(CMObject.class, new NodeRef(entryId));
      getModel().add(o);
    }
  }
View Full Code Here

  @Override
  protected void removeEntry(final String entryId) {
    CollectionUtils.filter(this.getModel(), new Predicate() {
      public boolean evaluate(Object object) {
        CMObject o = (CMObject) object;
        return !o.getNodeRef().toString().equals(entryId);
      }
    });

  }
View Full Code Here

TOP

Related Classes of org.jibeframework.alfresco.node.CMObject

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.