@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); } } } }
@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; }
@Override public void loadParamIdListForPage(Page page) { for (Action action : page.getActionList()) { loadParamIdListForAction(action); } }