Entry.Access, Entry.Entity, Entry.PosixEntity, Entry.Size, Entry.Type
ALL_ACCESS, ALL_POSIX_ACCESS, ALL_POSIX_ENTITIES, ALL_SIZES, ALL_TYPES, DIRECTORY_TYPE, FILE_TYPE, NO_ACCESS, NO_POSIX_ENTITIES, NO_SIZES, NO_TYPES, SPECIAL_TYPE, SYMLINK_TYPE, UNKNOWN
Modifier and Type | Method and Description |
---|---|
boolean |
setPermitted(Entry.Access type,
Entry.Entity entity,
Boolean value)
Sets the permission for the given
entity for the given access
type to this entry. |
boolean |
setSize(Entry.Size type,
long value)
Sets the size of the given
type for this entry. |
boolean |
setTime(Entry.Access type,
long value)
Sets the time of the given access
type for this entry. |
getName, getSize, getTime, isPermitted
boolean setPermitted(Entry.Access type, Entry.Entity entity, @CheckForNull Boolean value)
entity
for the given access
type
to this entry.entity
- the entity which desires access.type
- the type of the access.value
- the value of the permission
or null
if not defined.false
if and only if setting a permission of the given
type
for the given entity
is unsupported.boolean setSize(Entry.Size type, long value)
type
for this entry.type
- the type of the size.value
- the value of the size in bytes
or Entry.UNKNOWN
if not defined.false
if and only if setting a size of the given
type
is unsupported.NullPointerException
- if type
is null
.IllegalArgumentException
- if value
is negative and not
Entry.UNKNOWN
.boolean setTime(Entry.Access type, long value)
type
for this entry.type
- the type of the access.value
- the value of the size in in milliseconds since the epoch
or Entry.UNKNOWN
if not defined.false
if and only if setting a time of the given
type
is unsupported.NullPointerException
- if type
is null
.IllegalArgumentException
- if value
is negative and not
Entry.UNKNOWN
.Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.