Examples of ITagCloudManager


Examples of com.agiletec.plugins.jpcmstagcloud.aps.system.services.tagcloud.ITagCloudManager

*/
public class TagCloudBuilderTag extends TagSupport {
 
  @Override
  public int doStartTag() throws JspException {
    ITagCloudManager tagCloudManager = (ITagCloudManager) ApsWebApplicationUtils.getBean(JpcmstagcloudSystemConstants.TAG_CLOUD_MANAGER, this.pageContext);
    try {
      UserDetails currentUser = (UserDetails) this.pageContext.getSession().getAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER);
      Map<ITreeNode, Integer> occurrences = tagCloudManager.getCloudInfos(currentUser);
      if (null != this.getOccurrencesVar()) {
        this.pageContext.setAttribute(this.getOccurrencesVar(), occurrences);
      }
      List<CloudInfoBean> cloudBeans = this.buildCloudsInfoBeans(occurrences);
      this.pageContext.setAttribute(this.getCloudBeansVar(), cloudBeans);
View Full Code Here

Examples of com.agiletec.plugins.jpcmstagcloud.aps.system.services.tagcloud.ITagCloudManager

*/
public class ContentListTag extends TagSupport {
 
  @Override
  public int doStartTag() throws JspException {
    ITagCloudManager tagCloudManager = (ITagCloudManager) ApsWebApplicationUtils.getBean(JpcmstagcloudSystemConstants.TAG_CLOUD_MANAGER, this.pageContext);
    ServletRequest request =  this.pageContext.getRequest();
    try {
      UserDetails currentUser = (UserDetails) this.pageContext.getSession().getAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER);
      String tagCategoryCode = request.getParameter("tagCategoryCode");
      List<String> contentsId = tagCloudManager.loadPublicTaggedContentsId(tagCategoryCode, currentUser);
      this.pageContext.setAttribute(this.getListName(), contentsId);
      request.setAttribute("tagCategoryCode", tagCategoryCode);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "doStartTag");
      throw new JspException("Errore tag", t);
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.