|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.cap.entityattrs.ntfs.NtfsAttributes
public class NtfsAttributes
This object contains NTFS attributes that an entity may have.
For generic information about EntityAttributes
objects, see the
ECEntityAttributes
documentation.
EntityAttributes
Constructor Summary | |
---|---|
NtfsAttributes()
|
Method Summary | |
---|---|
Object |
clone()
The Cloneable interface does not make the clone() method
visible. |
boolean |
equals(Object o)
|
boolean |
equalsExceptForCreationTime(Object o)
Test to see if the supplied attributes object is equal to this object except for the two objects creation times. |
long |
getCreationTime()
Get the creation time of the entity. |
int |
getGid()
Get the group id. |
Set<NtFileAttributes> |
getNtFileAttributes()
Get the attributes. |
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 |
setNtFileAttributes(int attr)
Set the attributes. |
void |
setNtFileAttributes(Set<NtFileAttributes> ntFileAttributes)
Set the attributes. |
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 NtfsAttributes()
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 Set<NtFileAttributes> getNtFileAttributes()
NtFileAttributesConfigurable
getNtFileAttributes
in interface NtFileAttributesConfigurable
public void setNtFileAttributes(Set<NtFileAttributes> ntFileAttributes)
NtFileAttributesConfigurable
setNtFileAttributes
in interface NtFileAttributesConfigurable
ntFileAttributes
- The attributes.public void setNtFileAttributes(int attr)
NtFileAttributesConfigurable
setNtFileAttributes
in interface NtFileAttributesConfigurable
attr
- The attributes code.NtFileAttributes.getIntValue()
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)
equalsExceptForCreationTime
in interface CreationTimeAttributes
o
- The other entity attributes object.
true
if the supplied entity attributes object is equal to
this object 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 |