Package com.ketayao.ketacustom.entity.main

Examples of com.ketayao.ketacustom.entity.main.Module


  public String preAssign(@PathVariable Long id, Map<String, Object> map) {
    Role role = roleService.get(id);
   
    Map<Module, List<RolePermission>> mpMap = new LinkedHashMap<Module, List<RolePermission>>();
    for (RolePermission rp : role.getRolePermissions()) {
      Module module = rp.getPermission().getModule();
     
      List<RolePermission> rps = mpMap.get(module);
      if (rps == null) {
        rps = new ArrayList<RolePermission>();
       
View Full Code Here


        }
       
        Map<String, SearchFilter> searchFilters = SearchFilter.parse(controlMap);
        Set<SearchFilter> filterSet = new HashSet<SearchFilter>(searchFilters.values());
        try {
          Module module = SecurityUtils.getShiroUser().getHasModules().get(sn);
         
          boolean handleResult = true;
          if (method.getName().startsWith(SHOW_METHOD_PREFIX)) {
            handleResult = (handleList(request, filterSet, method, dataControl, module) == true) ? true : false;
          } else {
View Full Code Here

import com.ketayao.ketacustom.entity.main.Module;

public class ModuleTest {
  @Test
  public void test() {
    Module module = new Module();
    module.setId(1L);
    module.setName("module_1");
   
    Module module2 = new Module();
    module2.setId(2L);
    module2.setName("module_2");
    module2.setParent(module);
   
    Module module3 = new Module();
    module3.setId(3L);
    module3.setName("module_3");
    module3.setParent(module);
   
    Module module4 = new Module();
    module4.setId(4L);
    module4.setName("module_4");
    module4.setParent(module2);
   
    Module module5 = new Module();
    module5.setId(5L);
    module5.setName("module_5");
    module5.setParent(module4);
   
    List<Module> list = new ArrayList<Module>();
    list.add(module2);
    list.add(module3);
    module.setChildren(list);
View Full Code Here

TOP

Related Classes of com.ketayao.ketacustom.entity.main.Module

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.