Examples of SearchQueryImpl


Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl

   */
  public long[] getRevisions(ResourceURI uri) throws ContentRepositoryException {
    String id = getIdentifier(uri);
    if (id == null)
      return new long[] {};
    SearchQuery q = new SearchQueryImpl(site).withIdentifier(id).withField(VERSION);
    SearchResultItem[] items = searchIdx.getByQuery(q).getItems();
    long[] versions = new long[items.length];
    for (int i = 0; i < items.length; i++) {
      versions[i] = (Long) ((ResourceSearchResultItem) items[i]).getMetadataByKey(VERSION).getValue();
    }
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.