|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.cap.entityattrs.unix.UnixAttributes
public class UnixAttributes
This object contains attributes that a file in a Unix file system can have.
Read more about entity attributes in the ECEntityAttributes
documentation.
ECUnixAttributes
Constructor Summary | |
---|---|
UnixAttributes()
|
Method Summary | |
---|---|
Object |
clone()
The Cloneable interface does not make the clone() method
visible. |
boolean |
equals(Object o)
|
boolean |
equalsExceptForCreationTime(Object o)
Check if this attribute object is equal to the supplied object except for the creation time. |
long |
getCreationTime()
Get the creation time of the entity. |
int |
getGid()
Get the group id. |
int |
getUid()
Get the user id. |
UnixEntityMode |
getUnixEntityMode()
Get the current UnixEntityMode . |
int |
hashCode()
|
void |
setCreationTime(long creationTime)
Set the creation time of the entity in milliseconds since January 1, 1970 |
void |
setGid(int gid)
Set the group id. |
void |
setUid(int uid)
Set the user id. |
void |
setUnixEntityMode(int m)
Set the UnixEntityMode using its integer representation. |
void |
setUnixEntityMode(UnixEntityMode unixEntityMode)
Set the UnixEntityMode . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnixAttributes()
Method Detail |
---|
public long getCreationTime()
CreationTimeConfigurable
getCreationTime
in interface CreationTimeConfigurable
Date.getTime()
public void setCreationTime(long creationTime)
CreationTimeConfigurable
setCreationTime
in interface CreationTimeConfigurable
creationTime
- The new creation time.Date.getTime()
public int getGid()
UidGidConfigurable
getGid
in interface UidGidConfigurable
public void setGid(int gid) throws IllegalArgumentException
UidGidConfigurable
setGid
in interface UidGidConfigurable
gid
- The group id. It must be a positive integer.
IllegalArgumentException
- If the GID is invalid.public int getUid()
UidGidConfigurable
getUid
in interface UidGidConfigurable
public void setUid(int uid) throws IllegalArgumentException
UidGidConfigurable
setUid
in interface UidGidConfigurable
uid
- The user id. It must be a positive integer.
IllegalArgumentException
- If the UID is invalid.public UnixEntityMode getUnixEntityMode()
UnixEntityModeConfigurable
UnixEntityMode
.
getUnixEntityMode
in interface UnixEntityModeConfigurable
UnixEntityMode
.public void setUnixEntityMode(UnixEntityMode unixEntityMode)
UnixEntityModeConfigurable
UnixEntityMode
.
setUnixEntityMode
in interface UnixEntityModeConfigurable
unixEntityMode
- The new UnixEntityMode
.UnixEntityModeConfigurable.setUnixEntityMode(int)
public void setUnixEntityMode(int m)
UnixEntityModeConfigurable
UnixEntityMode
using its integer representation.
setUnixEntityMode
in interface UnixEntityModeConfigurable
m
- An integer representing the mode, for instance 0644
or
01777
.UnixEntityModeConfigurable.setUnixEntityMode(UnixEntityMode)
public boolean equalsExceptForCreationTime(Object o)
CreationTimeAttributes
equalsExceptForCreationTime
in interface CreationTimeAttributes
o
- The other attribute object.
true
if the attribute objects are equals in all
attributes except for the creation time.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone()
EntityAttributes
Cloneable
interface does not make the clone()
method
visible. This declaration does.
clone
in interface EntityAttributes
clone
in class Object
Cloneable
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |