public class SimpleResourceAttributes extends Object implements PlexusIoResourceAttributes
UNKNOWN_OCTAL_MODE
Constructor and Description |
---|
SimpleResourceAttributes(Integer uid,
String userName,
Integer gid,
String groupName,
int mode) |
public static PlexusIoResourceAttributes lastResortDummyAttributesForBrokenOS()
public int getOctalMode()
PlexusIoResourceAttributes
PlexusIoResourceAttributes.UNKNOWN_OCTAL_MODE
if unsupported on current file/file systemgetOctalMode
in interface PlexusIoResourceAttributes
@Nullable public Integer getGroupId()
PlexusIoResourceAttributes
getGroupId
in interface PlexusIoResourceAttributes
@Nullable public String getGroupName()
PlexusIoResourceAttributes
getGroupName
in interface PlexusIoResourceAttributes
public Integer getUserId()
PlexusIoResourceAttributes
getUserId
in interface PlexusIoResourceAttributes
public String getUserName()
PlexusIoResourceAttributes
getUserName
in interface PlexusIoResourceAttributes
public boolean isGroupExecutable()
isGroupExecutable
in interface PlexusIoResourceAttributes
public boolean isGroupReadable()
isGroupReadable
in interface PlexusIoResourceAttributes
public boolean isGroupWritable()
isGroupWritable
in interface PlexusIoResourceAttributes
public boolean isOwnerExecutable()
isOwnerExecutable
in interface PlexusIoResourceAttributes
public boolean isOwnerReadable()
isOwnerReadable
in interface PlexusIoResourceAttributes
public boolean isOwnerWritable()
isOwnerWritable
in interface PlexusIoResourceAttributes
public boolean isWorldExecutable()
isWorldExecutable
in interface PlexusIoResourceAttributes
public boolean isWorldReadable()
isWorldReadable
in interface PlexusIoResourceAttributes
public boolean isWorldWritable()
isWorldWritable
in interface PlexusIoResourceAttributes
public String getOctalModeString()
public PlexusIoResourceAttributes setOctalMode(int mode)
public PlexusIoResourceAttributes setGroupId(Integer gid)
public PlexusIoResourceAttributes setGroupName(String name)
public PlexusIoResourceAttributes setUserId(Integer uid)
public PlexusIoResourceAttributes setUserName(String name)
public PlexusIoResourceAttributes setOctalModeString(String mode)
public void setSymbolicLink(boolean isSymbolicLink)
public boolean isSymbolicLink()
isSymbolicLink
in interface PlexusIoResourceAttributes
Copyright © 2001–2017 Codehaus Plexus. All rights reserved.