Path: blob/master/src/java.base/share/classes/java/nio/file/attribute/AclEntryPermission.java
41161 views
/*1* Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package java.nio.file.attribute;2627/**28* Defines the permissions for use with the permissions component of an ACL29* {@link AclEntry entry}.30*31* @since 1.732*/3334public enum AclEntryPermission {3536/**37* Permission to read the data of the file.38*/39READ_DATA,4041/**42* Permission to modify the file's data.43*/44WRITE_DATA,4546/**47* Permission to append data to a file.48*/49APPEND_DATA,5051/**52* Permission to read the named attributes of a file.53*54* <p> <a href="http://www.ietf.org/rfc/rfc3530.txt">RFC 3530: Network55* File System (NFS) version 4 Protocol</a> defines <em>named attributes</em>56* as opaque files associated with a file in the file system.57*/58READ_NAMED_ATTRS,5960/**61* Permission to write the named attributes of a file.62*63* <p> <a href="http://www.ietf.org/rfc/rfc3530.txt">RFC 3530: Network64* File System (NFS) version 4 Protocol</a> defines <em>named attributes</em>65* as opaque files associated with a file in the file system.66*/67WRITE_NAMED_ATTRS,6869/**70* Permission to execute a file.71*/72EXECUTE,7374/**75* Permission to delete a file or directory within a directory.76*/77DELETE_CHILD,7879/**80* The ability to read (non-acl) file attributes.81*/82READ_ATTRIBUTES,8384/**85* The ability to write (non-acl) file attributes.86*/87WRITE_ATTRIBUTES,8889/**90* Permission to delete the file.91*/92DELETE,9394/**95* Permission to read the ACL attribute.96*/97READ_ACL,9899/**100* Permission to write the ACL attribute.101*/102WRITE_ACL,103104/**105* Permission to change the owner.106*/107WRITE_OWNER,108109/**110* Permission to access file locally at the server with synchronous reads111* and writes.112*/113SYNCHRONIZE;114115/**116* Permission to list the entries of a directory (equal to {@link #READ_DATA})117*/118public static final AclEntryPermission LIST_DIRECTORY = READ_DATA;119120/**121* Permission to add a new file to a directory (equal to {@link #WRITE_DATA})122*/123public static final AclEntryPermission ADD_FILE = WRITE_DATA;124125/**126* Permission to create a subdirectory to a directory (equal to {@link #APPEND_DATA})127*/128public static final AclEntryPermission ADD_SUBDIRECTORY = APPEND_DATA;129}130131132