Esempio n. 1
0
 public boolean hasSubModule(long id) {
   boolean hasSubModule = false;
   for (Module subModule : subModules) {
     if (subModule.getId() == id || subModule.hasSubModule(id)) {
       hasSubModule = true;
     }
   }
   return hasSubModule;
 }
Esempio n. 2
0
 public boolean hasSubModule(String name) {
   boolean hasSubModule = false;
   for (Module subModule : subModules) {
     if (subModule.getName().equals(name) || subModule.hasSubModule(name)) {
       hasSubModule = true;
     }
   }
   return hasSubModule;
 }