Class SimpleResourceAttributes
java.lang.Object
org.codehaus.plexus.components.io.attributes.SimpleResourceAttributes
- All Implemented Interfaces:
PlexusIoResourceAttributes
-
Field Summary
Fields inherited from interface PlexusIoResourceAttributes
UNKNOWN_OCTAL_MODE -
Constructor Summary
ConstructorsConstructorDescriptionSimpleResourceAttributes(Integer uid, String userName, Integer gid, String groupName, int mode) SimpleResourceAttributes(Integer uid, String userName, Integer gid, String groupName, int mode, boolean isSymbolicLink) -
Method Summary
Modifier and TypeMethodDescriptionGets the unix group id.The group name.intOctal mode attributes.Gets the unix user id.Returns the user name of the user owning the file.booleanbooleanbooleanbooleanbooleanbooleanbooleanIndicates if this is a symbolic link element.booleanbooleanbooleanstatic PlexusIoResourceAttributessetGroupId(Integer gid) setGroupName(String name) setOctalMode(int mode) setOctalModeString(String mode) voidsetSymbolicLink(boolean isSymbolicLink) setUserName(String name) toString()
-
Constructor Details
-
SimpleResourceAttributes
-
SimpleResourceAttributes
-
-
Method Details
-
lastResortDummyAttributesForBrokenOS
-
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
-
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
-
getGroupName
Description copied from interface:PlexusIoResourceAttributesThe group name. May be null if groups are unsupported- Specified by:
getGroupNamein interfacePlexusIoResourceAttributes- Returns:
- the group names
-
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
-
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
-
isGroupExecutable
public boolean isGroupExecutable()- Specified by:
isGroupExecutablein interfacePlexusIoResourceAttributes
-
isGroupReadable
public boolean isGroupReadable()- Specified by:
isGroupReadablein interfacePlexusIoResourceAttributes
-
isGroupWritable
public boolean isGroupWritable()- Specified by:
isGroupWritablein interfacePlexusIoResourceAttributes
-
isOwnerExecutable
public boolean isOwnerExecutable()- Specified by:
isOwnerExecutablein interfacePlexusIoResourceAttributes
-
isOwnerReadable
public boolean isOwnerReadable()- Specified by:
isOwnerReadablein interfacePlexusIoResourceAttributes
-
isOwnerWritable
public boolean isOwnerWritable()- Specified by:
isOwnerWritablein interfacePlexusIoResourceAttributes
-
isWorldExecutable
public boolean isWorldExecutable()- Specified by:
isWorldExecutablein interfacePlexusIoResourceAttributes
-
isWorldReadable
public boolean isWorldReadable()- Specified by:
isWorldReadablein interfacePlexusIoResourceAttributes
-
isWorldWritable
public boolean isWorldWritable()- Specified by:
isWorldWritablein interfacePlexusIoResourceAttributes
-
getOctalModeString
-
setOctalMode
-
setGroupId
-
setGroupName
-
setUserId
-
setUserName
-
setOctalModeString
-
toString
-
setSymbolicLink
public void setSymbolicLink(boolean isSymbolicLink) -
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.
-