*/
public class EventsOfDayTag extends TagSupport implements EventsOfDayDataBean {
@Override
public int doStartTag() throws JspException {
RequestContext reqCtx = (RequestContext) this.pageContext.getRequest().getAttribute(RequestContext.REQCTX);
ApsSystemUtils.getLogger().trace("EventsOfDayTag Invoked");
try {
this._calMan = (ICalendarManager) ApsWebApplicationUtils.getBean(CalendarConstants.CALENDAR_MANAGER, this.pageContext);
IAuthorizationManager authorizatorManager = (IAuthorizationManager)
ApsWebApplicationUtils.getBean(SystemConstants.AUTHORIZATION_SERVICE, this.pageContext);
this.extractRequiredDate();
UserDetails currentUser = (UserDetails) reqCtx.getRequest().getSession().getAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER);
if (authorizatorManager.isAuthOnGroup(currentUser, Group.ADMINS_GROUP_NAME)) {
this.setAllowedGroups(null);
} else {
List<Group> userGroups = authorizatorManager.getUserGroups(currentUser);
Set allowedGroup = new HashSet();