All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jnfs.security.UnixStylePermissionGranter
user has permission
for file.
pathname to mode.
pathname to
owner and group membership to group.
pathname for the given owner and
group according to mode.
file.
pathname based on information
provided by the underlying unix file system.
name
name
pathname.
file is cached, invalidates it.
groupname.
pathname.
pathname.
file with
the new permissions in acl.
file with
the default permissions for newOwner.
public static final int S_IRWXU
public static final int S_IRUSR
public static final int S_IWUSR
public static final int S_IXUSR
public static final int S_IRWXG
public static final int S_IRGRP
public static final int S_IWGRP
public static final int S_IXGRP
public static final int S_IRWXO
public static final int S_IROTH
public static final int S_IWOTH
public static final int S_IXOTH
public static final int S_ISVTX
If a directory is writable and has S_ISVTX (the sticky
bit) set, files within that directory can be removed or renamed
only if one or more of the following is true (see unlink(2) and
rename(2)):
public static final int S_ISUID
public static final int S_ISGID
protected UserTable users
protected final String groupPrefix
public UnixStylePermissionGranter(UserTable users)
protected abstract int mode(String pathname) throws IOException
pathname.
pathname does
not exist.
protected abstract String owner(String pathname) throws IOException
pathname.
pathname does
not exist.
protected abstract String group(String pathname) throws IOException
pathname.
pathname does
not exist.
protected abstract String[] members(String groupname) throws IOException
groupname.
protected abstract void chmod(String pathname,
int mode) throws IOException
pathname to mode.
pathname does
not exist.
protected abstract void chown(String pathname,
String owner,
String group) throws IOException
pathname to
owner and group membership to group. If
either owner or group are
null, that permission is not changed. If both are
null, nothing happens.
pathname does
not exist.
public Group worldGroup()
public Acl getAccessControl(File file) throws IOException
file. Permissions on a
particular file don't necessarily map 1-to-1 to who can access the
file or not because there may be security restrictions on the parent
directories of the file that override this file's settings.
null otherwise.
public boolean setAccessControl(Principal user,
File file,
Acl acl) throws IOException, NotOwnerException
file with
the new permissions in acl.
true if the permissions were set;
false otherwise.
user is not
an owner of file.
public boolean setDefaultAccessControl(Principal newOwner,
File file) throws IOException
file with
the default permissions for newOwner. Changes the
ownership to the new owner.
true if the permissions were set;
false otherwise.
public boolean invalidateCache(File file)
file is cached, invalidates it.
true if the ACL information was in the cache;
false otherwise.
public boolean checkPermission(Principal user,
Permission permission,
File file) throws IOException
user has permission
for file.
true if user has the specified
permission; false otherwise.
protected Principal getPrincipal(String name)
name
protected Group getGroup(String name) throws IOException
name
protected Acl getAcl(String pathname) throws IOException
pathname based on information
provided by the underlying unix file system. Caches whatever
return value it provides.
protected Acl createAcl(String pathname,
int mode,
Principal owner,
Group grp)
pathname for the given owner and
group according to mode. Does not cache return value
or use underlying filesytem for any info.
public Permission getReadPermission()
public Permission getWritePermission()
public Permission getExecutePermission()
public Permission getDeletePermission()
public Permission getAttributesPermission()
public Permission getListPermission()
public Permission getRenamePermission()
public Permission getStickyPermission()
All Packages Class Hierarchy This Package Previous Next Index