return pageUserBean;
}
@Override
public CustomPageConfig getGuestPageConfig(IPage page, HttpServletRequest request) throws ApsSystemException {
CustomPageConfig customConfig = null;
try {
Cookie cookie = this.getCookieGuestConfig(page, request);
if (null == cookie
|| cookie.getValue() == null
|| cookie.getValue().trim().length() == 0) {
ApsSystemUtils.getLogger().trace("Cookie nullo o invalido per pagina " + page.getCode());
return null;
}
MyPortalConfig mPortalConfig = this.getMyPortalConfigManager().getConfig();
customConfig = new CustomPageConfig(cookie, page, this.getWidgetTypeManager(),
mPortalConfig.getAllowedShowlets(), this.getVoidShowletCode());
for (int i = 0; i < customConfig.getConfig().length; i++) {
Widget showlet = customConfig.getConfig()[i];
if (null != showlet) {
if (null != showlet.getType()) {
String mainGroup = showlet.getType().getMainGroup();
if (null != mainGroup && !mainGroup.equals(Group.FREE_GROUP_NAME)) {
customConfig.getConfig()[i] = null;
customConfig.getStatus()[i] = null;
}
} else {
customConfig.getConfig()[i] = null;
customConfig.getStatus()[i] = null;
}
}
}
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "getGuestPageConfig");