Examples of withTypes()


Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    if (uri == null && StringUtils.isNotBlank(imagePath))
      uri = new ImageResourceURIImpl(site, imagePath, null);
    if (uri == null && imageSubjects != null && imageSubjects.size() > 0) {
      SearchQuery query = new SearchQueryImpl(site);
      query.withVersion(Resource.LIVE);
      query.withTypes(ImageResource.TYPE);
      query.withSubjects(SearchQuery.Quantifier.All, imageSubjects.toArray(new String[imageSubjects.size()]));
      SearchResult result;
      try {
        result = repository.find(query);
      } catch (ContentRepositoryException e) {
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

      return SKIP_BODY;
    }

    SearchQuery query = new SearchQueryImpl(site);
    query.withVersion(Resource.LIVE);
    query.withTypes(ImageResource.TYPE);
    for (int i = 0; i < imageSubjects.size(); i++)
      query.withSubject(imageSubjects.get(i));
    SearchResult result;
    try {
      result = repository.find(query);
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    // First time search resources
    if (searchResult == null) {
      SearchQuery q = new SearchQueryImpl(site);
      if (includeTypes != null)
        q.withTypes(includeTypes.toArray(new String[includeTypes.size()]));

      if (excludeTypes != null)
        q.withoutTypes(excludeTypes.toArray(new String[excludeTypes.size()]));

      if (order != null)
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    // Only take resources that have not been modified
    q.withoutPublication();

    // Type
    q.withTypes(Page.TYPE);

    // Filter query
    if (StringUtils.isNotBlank(filter))
      q.withFilter(filter);
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    }

    Site site = getSite(request);
    SearchQuery q = new SearchQueryImpl(site);
    q.withVersion(Resource.LIVE);
    q.withTypes(Page.TYPE);
    q.withPathPrefix(page.getURI().getPath());

    ContentRepository repository = getContentRepository(site, false);
    SearchResult result = null;
    try {
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    if (pageId == null)
      return Response.status(Status.BAD_REQUEST).build();

    Site site = getSite(request);
    SearchQuery q = new SearchQueryImpl(site);
    q.withTypes(Page.TYPE);
    q.withVersion(Resource.LIVE);
    q.withProperty("resourceid", pageId);

    ContentRepository repository = getContentRepository(site, false);
    SearchResult result = null;
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    // Create search query
    Site site = getSite(request);
    SearchQuery q = new SearchQueryImpl(site);

    q.withTypes(Page.TYPE);
    if (version != -1)
      q.withVersion(version);

    if (preferredVersion != -1)
      q.withPreferredVersion(preferredVersion);
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    q.withVersion(Resource.LIVE);

    // Type
    q.withoutTypes(Page.TYPE);
    if (StringUtils.isNotBlank(type))
      q.withTypes(type);

    // Path
    if (StringUtils.isNotBlank(path))
      q.withPath(path);
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

    q.withoutModification();

    // Type
    q.withoutTypes(Page.TYPE);
    if (StringUtils.isNotBlank(type))
      q.withTypes(type);

    // Filter query
    if (StringUtils.isNotBlank(filter))
      q.withFilter(filter);
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withTypes()

      return Response.status(Status.BAD_REQUEST).build();

    Site site = getSite(request);
    SearchQuery q = new SearchQueryImpl(site);
    q.withVersion(Resource.LIVE);
    q.withTypes(Page.TYPE);
    q.withProperty("resourceid", resourceId);

    ContentRepository repository = getContentRepository(site, false);
    SearchResult result = null;
    try {
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.