public class QueryTemplateEnvironment extends SystemEnvironment
Author:
Luca Frosini (ISTI - CNR) Contains all the query templates
  • Method Details

    • getInstance

      public static QueryTemplateEnvironment getInstance() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Returns the singleton instance of QueryTemplateEnvironment.
      Returns:
      the singleton instance
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - if initialization fails
    • addExtraRules

      protected com.orientechnologies.orient.core.metadata.security.ORole addExtraRules(com.orientechnologies.orient.core.metadata.security.ORole role, Environment.PermissionMode permissionMode)
      Grants the Query Template environment's reader/writer roles the CLUSTER, SYSTEM_CLUSTERS, and CLASS permissions needed to read/write Query Template records under OrientDB's record-level security, mirroring the same rule set applied to other SystemEnvironment subclasses (Context, Type).
      Overrides:
      addExtraRules in class Environment
      Parameters:
      role - the OrientDB role to configure
      permissionMode - the permission mode defining the access level (READER/WRITER)
      Returns:
      the modified role with extra rules applied