*/
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);