Package org.jboss.vfs

Class VirtualFilePermission

    • Field Detail

      • FLAG_READ

        public static final int FLAG_READ
        The flag value for the "read" action.
      • FLAG_DELETE

        public static final int FLAG_DELETE
        The flag value for the "delete" action.
      • FLAG_GET_FILE

        public static final int FLAG_GET_FILE
        The flag value for the "getfile" action.
      • VALID_FLAGS

        public static final int VALID_FLAGS
        The set of valid action flags for this permission.
    • Constructor Detail

      • VirtualFilePermission

        public VirtualFilePermission​(String path,
                                     String actions)
        Construct a new instance.
        Parameters:
        path - the path
        actions - the actions to grant
      • VirtualFilePermission

        public VirtualFilePermission​(String path,
                                     int actionFlags)
        Construct a new instance. Any flags outside of VALID_FLAGS are ignored.
        Parameters:
        path - the path
        actionFlags - the action flags to set