@Override @CoreSecured({CORE_CUSTOMER_ORGANIZATION_ACCESS}) @Action( value = "details", results = {@Result(name = "success", location = "/org/details.jsp")}) public String execute() throws ServiceException { if (org == null) { Org o = orgService.getById(getServiceContext(), getOrgId()); org = o.getAsMap(); org.put("parentOrgName", o.getParentOrgName()); } if (reset) { contactDataGridState.getFilters().clear(); orgPartDataGridState.getFilters().clear(); } orgPartScope = scopeService.getScopeWithOrgParts(getServiceContext()); contactByOrgItemProvider.setOrgId(getOrgId()); orgPartItemProvider.setOrgId(getOrgId()); orgPartItemProvider.setScopeId(getServiceContext().getScopeId()); viewDef = configService.getViewDefinition(getServiceContext(), ViewDefTypeCode.ORG); contactsViewDef = configService.getViewDefinition(getServiceContext(), ViewDefTypeCode.CONTACT_DATAGRID); orgPartViewDef = configService.getViewDefinition(getServiceContext(), ViewDefTypeCode.ORG_PART_DATAGRID); return SUCCESS; }
@Override @CoreSecured({CORE_CUSTOMER_USER_CREATE}) public String execute() { viewDef = configService.getViewDefinition(getServiceContext(), ViewDefTypeCode.USER_CREATE); conversation.put("orgFilterSelectionHandler", "orgFilterSelectionHandlerForUserCreate"); conversation.put("roleFilterSelectionHandler", "roleFilterSelectionHandlerForUserCreate"); return SUCCESS; }