Package org.alfresco.service.cmr.search

Examples of org.alfresco.service.cmr.search.ResultSet


    sp.setLanguage(SearchService.LANGUAGE_LUCENE);
    String buildQuery = sc.buildQuery(3);
    sp.setQuery(buildQuery);
    sp.addStore(AlfrescoUtil.getInstance().getStoreRef());
    List<CMObject> model = new ArrayList<CMObject>();
    ResultSet rs = null;
    try {
      rs = serviceRegistry.getSearchService().query(sp);
      for (ResultSetRow row : rs) {
        NodeRef nodeRef = row.getNodeRef();
        if (serviceRegistry.getNodeService().exists(nodeRef)) {
          model.add(repositoryService.fetch(CMObject.class, nodeRef));
        }
      }
    } finally {
      if (rs != null) {
        rs.close();
      }
    }
    CollectionUtils.filter(model, new Predicate() {
      public boolean evaluate(Object object) {
        return !((CMObject) object).hasAspect(ContentModel.ASPECT_WORKING_COPY);
View Full Code Here


    sp.setLanguage(SearchService.LANGUAGE_LUCENE);
    query = sc.buildQuery(3);
    sp.setQuery(query);
    sp.addStore(AlfrescoUtil.getInstance().getStoreRef());
    List<CMObject> model = new ArrayList<CMObject>();
    ResultSet rs = null;
    try {
      rs = serviceRegistry.getSearchService().query(sp);
      for (ResultSetRow row : rs) {
        NodeRef nodeRef = row.getNodeRef();
        if (serviceRegistry.getNodeService().exists(nodeRef)) {
          model.add(repositoryService.fetch(CMObject.class, nodeRef));
        }
      }
    } finally {
      if (rs != null) {
        rs.close();
      }
    }
    CollectionUtils.filter(model, new Predicate() {
      public boolean evaluate(Object object) {
        return !((CMObject) object).hasAspect(ContentModel.ASPECT_WORKING_COPY);
View Full Code Here

    sp.setLanguage(SearchService.LANGUAGE_LUCENE);
    query = sc.buildQuery(3);
    sp.setQuery(query);
    sp.addStore(AlfrescoUtil.getInstance().getStoreRef());
    List<CMObject> model = new ArrayList<CMObject>();
    ResultSet rs = null;
    try {
      rs = serviceRegistry.getSearchService().query(sp);
      for (ResultSetRow row : rs) {
        NodeRef nodeRef = row.getNodeRef();
        if (serviceRegistry.getNodeService().exists(nodeRef)) {
          model.add(repositoryService.fetch(CMObject.class, nodeRef));
        }
      }
    } finally {
      if (rs != null) {
        rs.close();
      }
    }
    CollectionUtils.filter(model, new Predicate() {
      public boolean evaluate(Object object) {
        return !((CMObject) object).hasAspect(ContentModel.ASPECT_WORKING_COPY);
View Full Code Here

TOP

Related Classes of org.alfresco.service.cmr.search.ResultSet

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.