public String list() { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromHttpRequest(ServletActionContext.getRequest()); page = scopeGlobalManager.pagedQuery(page, propertyFilters); return SUCCESS; }
public String list() { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromHttpRequest(ServletActionContext.getRequest()); propertyFilters.add(new PropertyFilter("EQS_scopeId", ScopeHolder.getScopeId())); page = aclSidManager.pagedQuery(page, propertyFilters); return SUCCESS; }
@RequestMapping("bpm-category-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = bpmCategoryManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "bpm/bpm-category-list"; }
@RequestMapping("perm-type-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); propertyFilters.add(new PropertyFilter("EQS_tenantId", tenantHolder.getTenantId())); page = permTypeManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "auth/perm-type-list"; }
public String list() { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromHttpRequest(ServletActionContext.getRequest()); Long localId = scopeConnector.findLocalId(ScopeHolder.getGlobalCode(), ScopeHolder.getLocalCode()); propertyFilters.add(new PropertyFilter("EQL_localId", Long.toString(localId))); page = roleManager.pagedQuery(page, propertyFilters); return SUCCESS; }
@RequestMapping("portal-widget-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = portalWidgetManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "portal/portal-widget-list"; }
@RequestMapping("role-def-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); propertyFilters.add(new PropertyFilter("EQS_scopeId", ScopeHolder.getScopeId())); page = roleDefManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "auth/role-def-list"; }
@RequestMapping("store-info-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { String tenantId = tenantHolder.getTenantId(); List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); propertyFilters.add(new PropertyFilter("EQS_tenantId", tenantId)); page = storeInfoManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "store/store-info-list"; }
public void exportExcel() throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromHttpRequest(ServletActionContext.getRequest()); page = roleManager.pagedQuery(page, propertyFilters); List<Role> roles = (List<Role>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("role"); tableModel.addHeaders("id", "name", "descn"); tableModel.setData(roles); exportor.exportExcel(ServletActionContext.getResponse(), tableModel); }
public String list() { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromHttpRequest(ServletActionContext.getRequest()); String userId = userConnector .findByUsername(SpringSecurityUtils.getCurrentUsername(), ScopeHolder.getUserRepoRef()) .getId(); propertyFilters.add(new PropertyFilter("EQL_userId", userId)); page = docInfoManager.pagedQuery(page, propertyFilters); return SUCCESS; }
public void exportExcel() throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromHttpRequest(ServletActionContext.getRequest()); page = aclSidManager.pagedQuery(page, propertyFilters); List<AclSid> aclSids = (List<AclSid>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("AclSid"); tableModel.addHeaders("id"); tableModel.setData(aclSids); exportor.exportExcel(ServletActionContext.getResponse(), tableModel); }
@RequestMapping("role-def-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = roleDefManager.pagedQuery(page, propertyFilters); List<RoleDef> roleDefs = (List<RoleDef>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("role"); tableModel.addHeaders("id", "name", "descn"); tableModel.setData(roleDefs); exportor.export(response, tableModel); }
@RequestMapping("user-status-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); propertyFilters.add(new PropertyFilter("EQS_scopeId", ScopeHolder.getScopeId())); page = userStatusManager.pagedQuery(page, propertyFilters); List<UserStatus> userStatuses = (List<UserStatus>) page.getResult(); List<UserStatusDTO> userStatusDtos = userStatusConverter.createUserStatusDtos( userStatuses, ScopeHolder.getUserRepoRef(), ScopeHolder.getScopeId()); page.setResult(userStatusDtos); model.addAttribute("page", page); return "auth/user-status-list"; }
@RequestMapping("perm-type-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletRequest request, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = permTypeManager.pagedQuery(page, propertyFilters); List<PermType> permTypees = (List<PermType>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("permType"); tableModel.addHeaders("id", "type", "value", "perm.name", "priority", "app.name"); tableModel.setData(permTypees); exportor.export(request, response, tableModel); }
@RequestMapping("bpm-category-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletRequest request, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = bpmCategoryManager.pagedQuery(page, propertyFilters); List<BpmCategory> bpmCategories = (List<BpmCategory>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("bpm-category"); tableModel.addHeaders("id", "name"); tableModel.setData(bpmCategories); exportor.export(request, response, tableModel); }
@RequestMapping("portal-widget-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletRequest request, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = portalWidgetManager.pagedQuery(page, propertyFilters); List<PortalWidget> portalWidgets = (List<PortalWidget>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("portal base"); tableModel.addHeaders("id", "client", "server", "resource"); tableModel.setData(portalWidgets); exportor.export(request, response, tableModel); }
@RequestMapping("party-entity-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletRequest request, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = partyEntityManager.pagedQuery(page, propertyFilters); List<PartyEntity> partyEntities = (List<PartyEntity>) page.getResult(); List<PartyEntityDTO> partyDtos = partyEntityConverter.createPartyEntityDtos(partyEntities); TableModel tableModel = new TableModel(); tableModel.setName("party entity"); tableModel.addHeaders("id", "type", "code", "name"); tableModel.setData(partyDtos); exportor.export(request, response, tableModel); }
@RequestMapping("user-status-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = userStatusManager.pagedQuery(page, propertyFilters); List<UserStatus> userStatuses = (List<UserStatus>) page.getResult(); List<UserStatusDTO> userStatusDtos = userStatusConverter.createUserStatusDtos( userStatuses, ScopeHolder.getUserRepoRef(), ScopeHolder.getScopeId()); TableModel tableModel = new TableModel(); tableModel.setName("user status"); tableModel.addHeaders("id", "username", "enabled", "authorities"); tableModel.setData(userStatusDtos); exportor.export(response, tableModel); }
@RequestMapping("whitelist-type-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletRequest request, HttpServletResponse response) throws Exception { String tenantId = tenantHolder.getTenantId(); List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); propertyFilters.add(new PropertyFilter("EQS_tenantId", tenantId)); page = whitelistTypeManager.pagedQuery(page, propertyFilters); List<WhitelistType> whitelistTypes = (List<WhitelistType>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("whitelistType"); tableModel.addHeaders("id", "name"); tableModel.setData(whitelistTypes); exportor.export(request, response, tableModel); }