/** * 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()); }
/** @return whether a resource is an entity. */ public static boolean isEntity(Resource resource) { return resource != null && Scopes.FILE.equals(resource.getScope()); }