|
|||||||||
| 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 CreationTimeConfigurableDate.getTime()public void setCreationTime(long creationTime)
CreationTimeConfigurable
setCreationTime in interface CreationTimeConfigurablecreationTime - 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 UidGidConfigurablegid - 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 UidGidConfigurableuid - The user id. It must be a positive integer.
IllegalArgumentException - If the UID is invalid.public UnixEntityMode getUnixEntityMode()
UnixEntityModeConfigurableUnixEntityMode.
getUnixEntityMode in interface UnixEntityModeConfigurableUnixEntityMode.public void setUnixEntityMode(UnixEntityMode unixEntityMode)
UnixEntityModeConfigurableUnixEntityMode.
setUnixEntityMode in interface UnixEntityModeConfigurableunixEntityMode - The new UnixEntityMode.UnixEntityModeConfigurable.setUnixEntityMode(int)public void setUnixEntityMode(int m)
UnixEntityModeConfigurableUnixEntityMode using its integer representation.
setUnixEntityMode in interface UnixEntityModeConfigurablem - An integer representing the mode, for instance 0644 or
01777.UnixEntityModeConfigurable.setUnixEntityMode(UnixEntityMode)public boolean equalsExceptForCreationTime(Object o)
CreationTimeAttributes
equalsExceptForCreationTime in interface CreationTimeAttributeso - 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 Objectpublic int hashCode()
hashCode in class Objectpublic Object clone()
EntityAttributesCloneable interface does not make the clone() method
visible. This declaration does.
clone in interface EntityAttributesclone in class ObjectCloneablepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||