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 IntegergetGroupId()Gets the unix group id.StringgetGroupName()The group name.intgetOctalMode()Octal mode attributes.IntegergetUserId()Gets the unix user id.StringgetUserName()Returns the user name of the user owning the file.booleanisGroupExecutable()booleanisGroupReadable()booleanisGroupWritable()booleanisOwnerExecutable()booleanisOwnerReadable()booleanisOwnerWritable()booleanisSymbolicLink()Indicates if this is a symbolic link element.booleanisWorldExecutable()booleanisWorldReadable()booleanisWorldWritable()
-
-
-
Constructor Detail
-
PlexusIoProxyResourceAttributes
public PlexusIoProxyResourceAttributes(PlexusIoResourceAttributes thisAttr)
-
-
Method Detail
-
isOwnerReadable
public boolean isOwnerReadable()
- Specified by:
isOwnerReadablein interfacePlexusIoResourceAttributes
-
getOctalMode
public int getOctalMode()
Description copied from interface:PlexusIoResourceAttributesOctal mode attributes.PlexusIoResourceAttributes.UNKNOWN_OCTAL_MODEif unsupported on current file/file system- Specified by:
getOctalModein interfacePlexusIoResourceAttributes
-
getUserName
public String getUserName()
Description copied from interface:PlexusIoResourceAttributesReturns the user name of the user owning the file. Probably not null :)- Specified by:
getUserNamein interfacePlexusIoResourceAttributes- Returns:
- The user name
-
isGroupReadable
public boolean isGroupReadable()
- Specified by:
isGroupReadablein interfacePlexusIoResourceAttributes
-
isWorldExecutable
public boolean isWorldExecutable()
- Specified by:
isWorldExecutablein interfacePlexusIoResourceAttributes
-
getGroupId
@Nullable public Integer getGroupId()
Description copied from interface:PlexusIoResourceAttributesGets the unix group id.- Specified by:
getGroupIdin interfacePlexusIoResourceAttributes- Returns:
- The unix group id, may be null ("not set"), even on unix
-
isGroupWritable
public boolean isGroupWritable()
- Specified by:
isGroupWritablein interfacePlexusIoResourceAttributes
-
getUserId
public Integer getUserId()
Description copied from interface:PlexusIoResourceAttributesGets the unix user id.- Specified by:
getUserIdin interfacePlexusIoResourceAttributes- Returns:
- The unix user id, may be null ("not set"), even on unix
-
isOwnerWritable
public boolean isOwnerWritable()
- Specified by:
isOwnerWritablein interfacePlexusIoResourceAttributes
-
isOwnerExecutable
public boolean isOwnerExecutable()
- Specified by:
isOwnerExecutablein interfacePlexusIoResourceAttributes
-
isSymbolicLink
public boolean isSymbolicLink()
Description copied from interface:PlexusIoResourceAttributesIndicates 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:
isSymbolicLinkin interfacePlexusIoResourceAttributes- Returns:
- True if the file is a symlink or false if not.
-
isGroupExecutable
public boolean isGroupExecutable()
- Specified by:
isGroupExecutablein interfacePlexusIoResourceAttributes
-
isWorldWritable
public boolean isWorldWritable()
- Specified by:
isWorldWritablein interfacePlexusIoResourceAttributes
-
getGroupName
@Nullable public String getGroupName()
Description copied from interface:PlexusIoResourceAttributesThe group name. May be null if groups are unsupported- Specified by:
getGroupNamein interfacePlexusIoResourceAttributes- Returns:
- the group names
-
isWorldReadable
public boolean isWorldReadable()
- Specified by:
isWorldReadablein interfacePlexusIoResourceAttributes
-
-