Class PlexusIoProxyResourceAttributes
- java.lang.Object
-
- org.codehaus.plexus.components.io.attributes.proxy.PlexusIoProxyResourceAttributes
-
- All Implemented Interfaces:
PlexusIoResourceAttributes
public class PlexusIoProxyResourceAttributes extends Object implements PlexusIoResourceAttributes
-
-
Field Summary
-
Fields inherited from interface org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes
UNKNOWN_OCTAL_MODE
-
-
Constructor Summary
Constructors Constructor Description PlexusIoProxyResourceAttributes(PlexusIoResourceAttributes thisAttr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getGroupId()
Gets the unix group id.String
getGroupName()
The group name.int
getOctalMode()
Octal mode attributes.Integer
getUserId()
Gets the unix user id.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()
Indicates if this is a symbolic link element.boolean
isWorldExecutable()
boolean
isWorldReadable()
boolean
isWorldWritable()
-
-
-
Constructor Detail
-
PlexusIoProxyResourceAttributes
public PlexusIoProxyResourceAttributes(PlexusIoResourceAttributes thisAttr)
-
-
Method Detail
-
isOwnerReadable
public boolean isOwnerReadable()
- Specified by:
isOwnerReadable
in interfacePlexusIoResourceAttributes
-
getOctalMode
public int getOctalMode()
Description copied from interface:PlexusIoResourceAttributes
Octal mode attributes.PlexusIoResourceAttributes.UNKNOWN_OCTAL_MODE
if unsupported on current file/file system- Specified by:
getOctalMode
in interfacePlexusIoResourceAttributes
-
getUserName
public String getUserName()
Description copied from interface:PlexusIoResourceAttributes
Returns the user name of the user owning the file. Probably not null :)- Specified by:
getUserName
in interfacePlexusIoResourceAttributes
- Returns:
- The user name
-
isGroupReadable
public boolean isGroupReadable()
- Specified by:
isGroupReadable
in interfacePlexusIoResourceAttributes
-
isWorldExecutable
public boolean isWorldExecutable()
- Specified by:
isWorldExecutable
in interfacePlexusIoResourceAttributes
-
getGroupId
@Nullable public Integer getGroupId()
Description copied from interface:PlexusIoResourceAttributes
Gets the unix group id.- Specified by:
getGroupId
in interfacePlexusIoResourceAttributes
- Returns:
- The unix group id, may be null ("not set"), even on unix
-
isGroupWritable
public boolean isGroupWritable()
- Specified by:
isGroupWritable
in interfacePlexusIoResourceAttributes
-
getUserId
public Integer getUserId()
Description copied from interface:PlexusIoResourceAttributes
Gets the unix user id.- Specified by:
getUserId
in interfacePlexusIoResourceAttributes
- Returns:
- The unix user id, may be null ("not set"), even on unix
-
isOwnerWritable
public boolean isOwnerWritable()
- Specified by:
isOwnerWritable
in interfacePlexusIoResourceAttributes
-
isOwnerExecutable
public boolean isOwnerExecutable()
- Specified by:
isOwnerExecutable
in interfacePlexusIoResourceAttributes
-
isSymbolicLink
public boolean isSymbolicLink()
Description copied from interface:PlexusIoResourceAttributes
Indicates if this is a symbolic link element. For file-based resource attributes this value may be always "false" for versions prior to java7.- Specified by:
isSymbolicLink
in interfacePlexusIoResourceAttributes
- Returns:
- True if the file is a symlink or false if not.
-
isGroupExecutable
public boolean isGroupExecutable()
- Specified by:
isGroupExecutable
in interfacePlexusIoResourceAttributes
-
isWorldWritable
public boolean isWorldWritable()
- Specified by:
isWorldWritable
in interfacePlexusIoResourceAttributes
-
getGroupName
@Nullable public String getGroupName()
Description copied from interface:PlexusIoResourceAttributes
The group name. May be null if groups are unsupported- Specified by:
getGroupName
in interfacePlexusIoResourceAttributes
- Returns:
- the group names
-
isWorldReadable
public boolean isWorldReadable()
- Specified by:
isWorldReadable
in interfacePlexusIoResourceAttributes
-
-