Enum Class Authorization

Object
Enum<Authorization>
Authorization
All Implemented Interfaces:
Serializable, Comparable<Authorization>, Constable

public enum Authorization extends Enum<Authorization>
Indication of whether access to a file or URL is granted or denied. A file may be specified in a xlink:href attribute of an XML document, or as a parameter in the definition of a coordinate operation (e.g. a datum shift grid file). By default, Apache SIS opens these files only if they are relative to a directory inferred by the context (for example $SIS_DATA/Datum­Changes for datum shift grid files), of if they are in the same directory or a sub-directory of the document referencing the file, This enumeration can be used for replacing the default policy by an user-specified policy. See the following methods for more information:
Since:
1.7
  • Enum Constant Details

    • GRANTED

      public static final Authorization GRANTED
      Access to the file or URL is authorized. The file may be opened and its content read.
    • DENIED

      public static final Authorization DENIED
      Access to the file or URL is denied. It may result in an Access­Denied­Exception to be thrown.
    • DEFAULT

      public static final Authorization DEFAULT
      Access to the file or URL is determined by Apache SIS default policy. The access is granted if the reference is an URL local to the JSON or GML document, or if the URL is a file in the same directory or in a sub-directory of the JSON, GML, WKT, netCDF, etc. document referencing the file. In addition, some other special directories are accepted depending on the context:
      • For coordinate operations using datum shift grids, grant access to files inside the $SIS_DATA/Datum­Changes directory.
  • Method Details

    • values

      public static Authorization[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Authorization valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      Illegal­Argument­Exception - if this enum class has no constant with the specified name
      Null­Pointer­Exception - if the argument is null