Esempio n. 1
0
 @Override
 public void updateCache(int projectId) {
   Project project = getProject(projectId);
   for (Module module : project.getModuleList()) {
     for (Page page : module.getPageList()) {
       for (Action action : page.getActionList()) {
         updateActionCache(action);
       }
     }
   }
 }
Esempio n. 2
0
 @Override
 public boolean canUserAccessPage(long userId, int pageId) {
   Page page = projectMgr.getPage(pageId);
   if (page != null) {
     Module module = page.getModule();
     if (module != null) {
       Project project = module.getProject();
       if (project != null) {
         return canUserAccessProject(userId, project.getId());
       }
     }
   }
   return false;
 }
Esempio n. 3
0
 @Override
 public void loadParamIdListForPage(Page page) {
   for (Action action : page.getActionList()) {
     loadParamIdListForAction(action);
   }
 }