Enum PolicyEditorPermissions

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PolicyEditorPermissions>

    public enum PolicyEditorPermissions
    extends java.lang.Enum<PolicyEditorPermissions>
    implements java.io.Serializable
    Defines the set of default permissions for PolicyEditor, ie the ones which are assigned dedicated checkboxes
    • Method Detail

      • values

        public static PolicyEditorPermissions[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PolicyEditorPermissions c : PolicyEditorPermissions.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PolicyEditorPermissions valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        A short human-readable name for this permission
        Returns:
        the name of this permission
      • getDescription

        public java.lang.String getDescription()
        A longer human-readable description for this permission
        Returns:
        the description of this permission
      • getType

        public PermissionType getType()
        Returns:
        the type of this permission, eg java.io.FilePermission
      • getTarget

        public PermissionTarget getTarget()
        Returns:
        the target of this permission, eg ${user.home}${/}*
      • getActions

        public PermissionActions getActions()
        Returns:
        the actions of this permission, eg read,write
      • toPermissionString

        public java.lang.String toPermissionString()
        A full String representation of this permission as it should appear when written into a policy file
        Returns:
        a policy file-ready String representation of this permission
      • setToActionList

        private static java.lang.String setToActionList​(java.lang.String string)