public Resource getResource() {
    if (ALL.equals(resource)) {
      return Resource.ALL;
    }
    return Resource.valueOf(resource);
  }
Returns the resource, could be either ALL, NULL, DATA or CLUSTER

@return the resource as a {@link Resource}
geode-core/src/main/java/org/apache/geode/security/ResourcePermission.java