Exemplo n.º 1
0
 /**
  * Views plugin creates copy of technical projects and should be allowed to copy all measures even
  * internal ones
  */
 private boolean isTechnicalProjectCopy(Resource resource) {
   return Scopes.FILE.equals(resource.getScope())
       && Qualifiers.PROJECT.equals(resource.getQualifier());
 }
Exemplo n.º 2
0
 /** @return whether a resource is an entity. */
 public static boolean isEntity(Resource resource) {
   return resource != null && Scopes.FILE.equals(resource.getScope());
 }