PortalRequestContext pcontext = Util.getPortalRequestContext();
DataStorage dataStorage = getApplicationComponent(DataStorage.class);
PortalConfig pConfig = dataStorage.getPortalConfig(pcontext.getPortalOwner());
ExoContainer container = ExoContainerContext.getCurrentContainer();
UserACL acl = (UserACL) container.getComponentInstanceOfType(UserACL.class);
UIFormInputSet uiSettingSet = new UIFormInputSet("PageSetting");
uiSettingSet.addUIFormInput(new UIFormStringInput("pageId", "pageId", null).setReadOnly(true));
List<SelectItemOption<String>> ownerTypes = new ArrayList<SelectItemOption<String>>();
if (pConfig != null && acl.hasEditPermission(pConfig)) {
ownerTypes.add(new SelectItemOption<String>(SiteType.PORTAL.getName()));
}
UserPortalConfigService userPortalConfigService = getApplicationComponent(UserPortalConfigService.class);
List<String> groups = userPortalConfigService.getMakableNavigations(pcontext.getRemoteUser(), true);