public class SimpleResourceAttributes extends java.lang.Object implements PlexusIoResourceAttributes
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Integer |
gid |
private java.lang.String |
groupName |
private boolean |
isSymbolicLink |
private int |
mode |
private java.lang.Integer |
uid |
private java.lang.String |
userName |
UNKNOWN_OCTAL_MODE| Constructor and Description |
|---|
SimpleResourceAttributes() |
SimpleResourceAttributes(java.lang.Integer uid,
java.lang.String userName,
java.lang.Integer gid,
java.lang.String groupName,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getGroupId()
Gets the unix group id.
|
java.lang.String |
getGroupName()
The group name.
|
int |
getOctalMode()
Octal mode attributes.
|
java.lang.String |
getOctalModeString() |
java.lang.Integer |
getUserId()
Gets the unix user id.
|
java.lang.String |
getUserName()
Returns the user name of the user owning the file.
|
boolean |
isGroupExecutable() |
boolean |
isGroupReadable() |
boolean |
isGroupWritable() |
boolean |
isOwnerExecutable() |
boolean |
isOwnerReadable() |
boolean |
isOwnerWritable() |
boolean |
isSymbolicLink() |
boolean |
isWorldExecutable() |
boolean |
isWorldReadable() |
boolean |
isWorldWritable() |
static PlexusIoResourceAttributes |
lastResortDummyAttributesForBrokenOS() |
PlexusIoResourceAttributes |
setGroupId(java.lang.Integer gid) |
PlexusIoResourceAttributes |
setGroupName(java.lang.String name) |
PlexusIoResourceAttributes |
setOctalMode(int mode) |
PlexusIoResourceAttributes |
setOctalModeString(java.lang.String mode) |
void |
setSymbolicLink(boolean isSymbolicLink) |
PlexusIoResourceAttributes |
setUserId(java.lang.Integer uid) |
PlexusIoResourceAttributes |
setUserName(java.lang.String name) |
java.lang.String |
toString() |
private java.lang.Integer gid
private java.lang.Integer uid
private java.lang.String userName
private java.lang.String groupName
private int mode
private boolean isSymbolicLink
public SimpleResourceAttributes(java.lang.Integer uid,
java.lang.String userName,
java.lang.Integer gid,
java.lang.String groupName,
int mode)
SimpleResourceAttributes()
public static PlexusIoResourceAttributes lastResortDummyAttributesForBrokenOS()
public int getOctalMode()
PlexusIoResourceAttributesPlexusIoResourceAttributes.UNKNOWN_OCTAL_MODE if unsupported on current file/file systemgetOctalMode in interface PlexusIoResourceAttributes@Nullable public java.lang.Integer getGroupId()
PlexusIoResourceAttributesgetGroupId in interface PlexusIoResourceAttributes@Nullable public java.lang.String getGroupName()
PlexusIoResourceAttributesgetGroupName in interface PlexusIoResourceAttributespublic java.lang.Integer getUserId()
PlexusIoResourceAttributesgetUserId in interface PlexusIoResourceAttributespublic java.lang.String getUserName()
PlexusIoResourceAttributesgetUserName in interface PlexusIoResourceAttributespublic boolean isGroupExecutable()
isGroupExecutable in interface PlexusIoResourceAttributespublic boolean isGroupReadable()
isGroupReadable in interface PlexusIoResourceAttributespublic boolean isGroupWritable()
isGroupWritable in interface PlexusIoResourceAttributespublic boolean isOwnerExecutable()
isOwnerExecutable in interface PlexusIoResourceAttributespublic boolean isOwnerReadable()
isOwnerReadable in interface PlexusIoResourceAttributespublic boolean isOwnerWritable()
isOwnerWritable in interface PlexusIoResourceAttributespublic boolean isWorldExecutable()
isWorldExecutable in interface PlexusIoResourceAttributespublic boolean isWorldReadable()
isWorldReadable in interface PlexusIoResourceAttributespublic boolean isWorldWritable()
isWorldWritable in interface PlexusIoResourceAttributespublic java.lang.String getOctalModeString()
public PlexusIoResourceAttributes setOctalMode(int mode)
public PlexusIoResourceAttributes setGroupId(java.lang.Integer gid)
public PlexusIoResourceAttributes setGroupName(java.lang.String name)
public PlexusIoResourceAttributes setUserId(java.lang.Integer uid)
public PlexusIoResourceAttributes setUserName(java.lang.String name)
public PlexusIoResourceAttributes setOctalModeString(java.lang.String mode)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setSymbolicLink(boolean isSymbolicLink)
public boolean isSymbolicLink()
isSymbolicLink in interface PlexusIoResourceAttributes