Interface PlexusIoResourceAttributes
-
- All Known Implementing Classes:
FileAttributes,PlexusIoProxyResourceAttributes,SimpleResourceAttributes
public interface PlexusIoResourceAttributes
-
-
Field Summary
Fields Modifier and Type Field Description static intUNKNOWN_OCTAL_MODE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetGroupId()Gets the unix group id.java.lang.StringgetGroupName()The group name.intgetOctalMode()Octal mode attributes.java.lang.IntegergetUserId()Gets the unix user id.java.lang.StringgetUserName()Returns the user name of the user owning the file.booleanisGroupExecutable()booleanisGroupReadable()booleanisGroupWritable()booleanisOwnerExecutable()booleanisOwnerReadable()booleanisOwnerWritable()booleanisSymbolicLink()booleanisWorldExecutable()booleanisWorldReadable()booleanisWorldWritable()
-
-
-
Field Detail
-
UNKNOWN_OCTAL_MODE
static final int UNKNOWN_OCTAL_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isOwnerReadable
boolean isOwnerReadable()
-
isOwnerWritable
boolean isOwnerWritable()
-
isOwnerExecutable
boolean isOwnerExecutable()
-
isGroupReadable
boolean isGroupReadable()
-
isGroupWritable
boolean isGroupWritable()
-
isGroupExecutable
boolean isGroupExecutable()
-
isWorldReadable
boolean isWorldReadable()
-
isWorldWritable
boolean isWorldWritable()
-
isWorldExecutable
boolean isWorldExecutable()
-
getUserId
java.lang.Integer getUserId()
Gets the unix user id.- Returns:
- The unix user id, may be null ("not set"), even on unix
-
getGroupId
@Nullable java.lang.Integer getGroupId()
Gets the unix group id.- Returns:
- The unix group id, may be null ("not set"), even on unix
-
getUserName
@Nullable java.lang.String getUserName()
Returns the user name of the user owning the file. Probably not null :)- Returns:
- The user name
-
getGroupName
@Nullable java.lang.String getGroupName()
The group name. May be null if groups are unsupported- Returns:
- the group names
-
getOctalMode
int getOctalMode()
Octal mode attributes.UNKNOWN_OCTAL_MODEif unsupported on current file/file system
-
isSymbolicLink
@Nonnull boolean isSymbolicLink()
-
-