public PageUserConfigBean getUserConfig(UserDetails user) throws ApsSystemException {
PageUserConfigBean pageUserBean = null;
try {
List<WidgetType> customizables = this.getMyPortalConfigManager().getCustomizableShowlets();
for (int i = 0; i < customizables.size(); i++) {
WidgetType type = customizables.get(i);
String mainGroup = type.getMainGroup();
if (null != mainGroup
&& !mainGroup.equals(Group.FREE_GROUP_NAME)
&& !this.getAuthorizationManager().isAuthOnGroup(user, mainGroup)) {
this.getPageUserConfigDAO().removeUnauthorizedShowlet(user.getUsername(), type.getCode());
}
}
pageUserBean = this.getPageUserConfigDAO().getUserConfig(user.getUsername());
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "getUserConfig");