Examples of EntitySearchFilter


Examples of com.agiletec.aps.system.common.entity.model.EntitySearchFilter

    IContentActionHelper helper = (IContentActionHelper) ApsWebApplicationUtils.getBean(JpFastContentEditSystemConstants.FRONT_CONTENT_ACTION_HELPER, this.pageContext);
    try {
      Set<String> contentIds = new HashSet<String>();
      String authorAttributeName = helper.getAuthorAttributeName((HttpServletRequest) request);
      if (null != authorAttributeName && authorAttributeName.trim().length() > 0) {
        EntitySearchFilter authorFilter = new EntitySearchFilter(authorAttributeName, true, currentUser.getUsername(), false);
        this.addFilter(authorFilter);
        contentIds.addAll(contentListHelper.getContentsId(this, reqCtx));
        this._filters = new EntitySearchFilter[0];
      }
      EntitySearchFilter lastEditorFilter = new EntitySearchFilter(IContentManager.CONTENT_LAST_EDITOR_FILTER_KEY, false, currentUser.getUsername(), false);
      this.addFilter(lastEditorFilter);
      contentIds.addAll(contentListHelper.getContentsId(this, reqCtx));
                        this.pageContext.setAttribute(this.getVar(), contentIds);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "doStartTag");
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.