|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.file.nw.DirectoryEntryInformation
Provides the attribute interface for Directory Entry Information. A directory entry can be a file or a directory.
The jndi.ds.Attribute.getAttributeID() method returns "DirectoryEntryInformation" as the attribute ID for this interface.
This class results in a mutable object. For versatility, code block synchronization has been implemented in the various jndi search and modify methods of this classes implementation to provide for thread safe operation.
If you have a multi-threaded application and a code segment of that application uses the get methods of this class and there is a potential of another thread randomly using corresponding set methods of this class, you should enclose the calls to the get methods in a synchronized code block.
If you have a multi-threaded application and a code segment of that application uses set methods of this class, and there is a potential of another thread randomly using corresponding get methods, you should enclose the calls to the set methods in a synchronized code block.
This class contains the following directory entry information:
When using the JNDI interface and doing a modify attribute operation on a DirectoryEntryInformation value, the above values flagged with an asterisk (*) are the only ones that will be modified. The user must set all of these fields up to the desired values before making the modify call.
Field Summary | |
static int |
A_CANT_COMPRESS
Attribute: The entry cannot be compressed. |
static int |
A_COPY_INHIBIT
Attribute: The entry cannot be copied. |
static int |
A_DELETE_INHIBIT
Attribute: The entry cannot be deleted. |
static int |
A_DIRECTORY
Attribute: The entry is a directory, not a file. |
static int |
A_DONT_COMPRESS
Attribute: The entry should not be compressed. |
static int |
A_DONT_MIGRATE
Attribute: The entry should not be migrated. |
static int |
A_EXECUTE_ONLY
Attribute: The entry can be loaded for execution only once. |
static int |
A_FILE_COMPRESSED
Attribute: The entry is compressed. |
static int |
A_FILE_MIGRATED
Attribute: The entry has been migrated. |
static int |
A_HIDDEN
Attribute: The entry doesn't appear in a normal directory listing. |
static int |
A_IMMEDIATE_COMPRESS
Attribute: The entry should be compressed when migrated. |
static int |
A_IMMEDIATE_PURGE
Attribute: The entry will be purged when deleted. |
static int |
A_INDEXED
Attribute: Not in use; provided for compatibility only. |
static int |
A_NEEDS_ARCHIVED
Attribute: The entry has been changed since last archived. |
static int |
A_NORMAL
Attribute: No attributes set. |
static int |
A_READ_AUDIT
Attribute: Not in use. |
static int |
A_READ_ONLY
Attribute: The entry cannot be written, deleted or renamed. |
static int |
A_RENAME_INHIBIT
Attribute: The entry cannot be renamed. |
static int |
A_SHAREABLE
Attribute: The entry can be opened by multiple clients. |
static int |
A_SYSTEM
Attribute: The entry is used by the system and is hidden. |
static int |
A_TRANSACTIONAL
Attribute: A transaction on the entry is being tracked. |
static int |
A_WRITE_AUDIT
Attribute: Not in use. |
static java.lang.String |
ARCHIVEDATE_FIELD
Field specifier for searching on last archival date. |
static java.lang.String |
ARCHIVER_FIELD
Field specifier for searching on archiver. |
static java.lang.String |
ARCHIVETIME_FIELD
Field specifier for searching on last archival time. |
static java.lang.String |
ATTRIBUTE_ID
Attribute ID of DirectoryEntryInformation. |
static java.lang.String |
ATTRIBUTES_FIELD
Field specifier for searching on directory entry attributes. |
static java.lang.String |
COMPARE_SYNTAX_STRING
Schema Syntax of DirectoryEntryInfomation. |
static java.lang.String |
CREATIONDATE_FIELD
Field specifier for searching on creation date. |
static java.lang.String |
CREATIONTIME_FIELD
Field specifier for searching on creation time. |
static java.lang.String |
CREATOR_FIELD
Field specifier for searching on creator. |
static java.lang.String |
DATASTREAMSIZE_FIELD
Field specifier for searching on the primary data stream size. |
static java.lang.String |
DIRENTNUM_FIELD
Field specifier for searching on the name space directory entry number. |
static int |
DM_ARCHIVE_DATE
Modify Mask: Archive Date. |
static int |
DM_ARCHIVE_TIME
Modify Mask: Archive Time. |
static int |
DM_ARCHIVER
Modify Mask: Archiver. |
static int |
DM_ATTRIBUTES
Modify Mask: Attributes. |
static int |
DM_CREATE_DATE
Modify Mask: Creation Date. |
static int |
DM_CREATE_TIME
Modify Mask: Creation Time. |
static int |
DM_CREATOR
Modify Mask: Creator. |
static int |
DM_INHERITED_RIGHTS_MASK
Modify Mask: Inherited Rights Mask. |
static int |
DM_LAST_ACCESS_DATE
Modify Mask: Last Access Date. |
static int |
DM_MODIFIER
Modify Mask: Modifier. |
static int |
DM_MODIFY_DATE
Modify Mask: Modify Date. |
static int |
DM_MODIFY_TIME
Modify Mask: Modify Time. |
static java.lang.String |
DOSDIRNUM_FIELD
Field specifier for searching on the DOS directory entry number. |
static java.lang.String |
EADATASIZE_FIELD
Field specifier for searching on total EA data size. |
static java.lang.String |
EAKEYCOUNT_FIELD
Field specifier for searching on number of EAs associated with this directory entry. |
static java.lang.String |
EAKEYSIZE_FIELD
Field specifier for searching on size of the EA key strings. |
static java.lang.String |
ENTRYNAME_FIELD
Field specifier for searching on name space name. |
static java.lang.String |
FLAGS_FIELD
Field specifier for searching on internal directory entry flags. |
static java.lang.String |
INHERITEDRIGHTSMASK_FIELD
Field specifier for searching on the inherited rights mask. |
static java.lang.String |
LASTACCESSDATE_FIELD
Field specifier for searching on last access date. |
static java.lang.String |
MODIFIER_FIELD
Field specifier for searching on modifier. |
static java.lang.String |
MODIFYDATE_FIELD
Field specifier for searching on last modification time. |
static java.lang.String |
MODIFYMASK_FIELD
Field specifier for searching on modify mask. |
static java.lang.String |
MODIFYSEARCHATTRIBUTES_FIELD
Field specifier for searching on modify search attributes. |
static java.lang.String |
MODIFYTIME_FIELD
Field specifier for searching on last modification date. |
static java.lang.String |
NAMELENGTH_FIELD
Field specifier for searching on length of the name space name. |
static java.lang.String |
NSCREATOR_FIELD
Field specifier for searching on the owning name space. |
static java.lang.String |
NUMBEROFSTREAMS_FIELD
Field specifier for searching on the number of data streams associated with this directory entry. |
static int |
NW_NS_DOS
NSCreator: DOS name space. |
static int |
NW_NS_FTAM
NSCreator: FTAM name space. |
static int |
NW_NS_MAC
NSCreator: MAC name space. |
static int |
NW_NS_NFS
NSCreator: NFS name space. |
static int |
NW_NS_OS2
NSCreator: OS2 name space (LONG). |
static int |
SA_HIDDEN
modifySearchAttributes: Search for hidden entries for modification. |
static int |
SA_SUBDIR_FILES
modifySearchAttributes: Search for files and directories for modification. |
static int |
SA_SUBDIR_ONLY
modifySearchAttributes: Search for directories only for modification. |
static int |
SA_SYSTEM
modifySearchAttributes: Search for system entries for modification. |
static java.lang.String |
SCHEMA_BINDING_NAME
Schema Class Definition Name of DirectoryEntryInformation. |
static java.lang.String |
SPACEALLOC_FIELD
Field specifier for searching on space allocation information. |
static int |
TA_ALL
Netware rights: Specifies all rights to the directory. |
static int |
TA_CREATE
Netware rights: Can create files. |
static int |
TA_DELETE
Netware rights: Can delete files. |
static int |
TA_MODIFY
Netware rights: Can modify the file attributes. |
static int |
TA_NONE
Netware rights: Cannot read or write. |
static int |
TA_OLD_OPEN
Netware rights: Can open existing file (obsolete). |
static int |
TA_OWNERSHIP
Netware rights: Can create and delete subdirectories, and can grant and revoke trustee rights. |
static int |
TA_READ
Netware rights: Can read. |
static int |
TA_SEARCH
Netware rights: Can search the directory. |
static int |
TA_SUPERVISOR
Netware rights: User has supervisor rights. |
static int |
TA_WRITE
Netware rights: Can write. |
static java.lang.String |
TOTALSTREAMSIZE_FIELD
Field specifier for searching on the total size of all data streams. |
static java.lang.String |
VOLNUMBER_FIELD
Field specifier for searching on the volume number where the directory entry resides. |
Constructor Summary | |
DirectoryEntryInformation()
Constructs a DirectoryEntryInformation object. |
|
DirectoryEntryInformation(int spaceAlloc,
int attributes,
int flags,
int dataStreamSize,
int totalStreamSize,
int numberOfStreams,
int creationTime,
int creationDate,
java.lang.String creator,
int modifyTime,
int modifyDate,
java.lang.String modifier,
int lastAccessDate,
int archiveTime,
int archiveDate,
java.lang.String archiver,
int inheritedRightsMask,
int dirEntNum,
int DosDirNum,
int volNumber,
int EADataSize,
int EAKeyCount,
int EAKeySize,
int NSCreator,
int nameLength,
java.lang.String entryName,
int modifySearchAttributes)
Constructs a DirectoryEntryInformation object specifying all values that are needed to set the full state. |
|
DirectoryEntryInformation(int attributes,
int creationDate,
int creationTime,
java.lang.String creator,
int modifyDate,
int modifyTime,
java.lang.String modifier,
int archiveDate,
int archiveTime,
java.lang.String archiver,
int lastAccessDate,
int grantRights,
int revokeRights,
int spaceAlloc,
int modifySearchAttributes,
int modifyMask)
Constructs a DirectoryEntryInformation object that is ready to send into a modify operation. |
Method Summary | |
java.lang.Object |
clone()
Clones this object. |
void |
copy(DirectoryEntryInformation from)
|
boolean |
equals(java.lang.Object obj)
Tests if the specified object is equal to this directory entry information object. |
int |
getArchiveDate()
Returns the ArchiveDate field. |
java.lang.String |
getArchiver()
Returns a reference to this object's Archiver field. |
int |
getArchiveTime()
Returns the ArchiveTime field. |
int |
getAttributes()
Returns the directory entry attributes. |
java.lang.String |
getCompareString()
Returns the current value of compareString. |
int |
getCreationDate()
Returns the CreationDate field. |
int |
getCreationTime()
Returns the CreationTime field. |
java.lang.String |
getCreator()
Returns the Creator field. |
int |
getDataStreamSize()
Returns the DataStreamSize field. |
int |
getDirEntNum()
Returns the DirEntNum field. |
int |
getDosDirNum()
Returns the DosDirNum field. |
int |
getEADataSize()
Returns the EADataSize field. |
int |
getEAKeyCount()
Returns the EAKeyCount field. |
int |
getEAKeySize()
Returns the EAKeySize field. |
java.lang.String |
getEntryName()
Returns the EntryName field. |
int |
getFlags()
Returns the Flags field. |
int |
getInheritedRightsMask()
Returns the inheritedRightsMask field. |
int |
getLastAccessDate()
Returns the LastAccessDate field. |
java.lang.String |
getModifier()
Returns a reference to this object's Modifier field. |
int |
getModifyDate()
Returns the ModifyDate field. |
int |
getModifyMask()
Returns the modifyMask field of the Attribute. |
int |
getModifySearchAttributes()
Returns the modifySearchAttributes field of the Attribute. |
int |
getModifyTime()
Returns the ModifyTime field. |
int |
getNameLength()
Returns the NameLength field. |
int |
getNSCreator()
Returns the NSCreator field. |
int |
getNumberOfStreams()
Returns the NumberOfStreams field. |
com.novell.service.rfc1960.Rfc1960Parser |
getSearchStringParser()
Returns the RFC1960 search string parser for the compare string. |
int |
getSpaceAlloc()
Returns the SpaceAlloc field. |
int |
getTotalStreamSize()
Returns the TotalStreamSize field. |
int |
getVolNumber()
Returns the VolNumber field. |
void |
setArchiveDate(int value)
Sets the ArchiveDate field. |
void |
setArchiver(java.lang.String value)
Sets the Archiver field of the Attribute. |
void |
setArchiveTime(int value)
Sets the ArchiveTime field. |
void |
setAttributes(int value)
Sets the directory entry attributes. |
void |
setCompareString(java.lang.String compareString)
Sets the compare string value. |
void |
setCreationDate(int value)
Sets the CreationDate field. |
void |
setCreationTime(int value)
Sets the CreationTime field. |
void |
setCreator(java.lang.String value)
Sets the Creator field of the Attribute. |
void |
setDataStreamSize(int value)
Sets the DataStreamSize field. |
void |
setDirEntNum(int value)
Sets the DirEntNum field. |
void |
setDosDirNum(int value)
Sets the DosDirNum field. |
void |
setEADataSize(int value)
Sets the EADataSize field. |
void |
setEAKeyCount(int value)
Sets the EAKeyCount field. |
void |
setEAKeySize(int value)
Sets the EAKeySize field. |
void |
setEntryName(java.lang.String value)
Sets the EntryName field. |
void |
setFlags(int value)
Sets the Flags field. |
void |
setInheritedRightsMask(int value)
Sets the inheritedRightsMask field. |
void |
setLastAccessDate(int value)
Sets the LastAccessDate field. |
void |
setModifier(java.lang.String value)
Sets the Modifier field of the Attribute. |
void |
setModifyDate(int value)
Sets the ModifyDate field. |
void |
setModifyMask(int value)
Sets the modifyMask field of the Attribute. |
void |
setModifySearchAttributes(int value)
Sets the modifySearchAttributes field of the Attribute. |
void |
setModifyTime(int value)
Sets the ModifyTime field. |
void |
setNameLength(int value)
Sets the NameLength field. |
void |
setNSCreator(int value)
Sets the NSCreator field. |
void |
setNumberOfStreams(int value)
Sets the NumberOfStreams field. |
void |
setSpaceAlloc(int value)
Sets the SpaceAlloc field. |
void |
setTotalStreamSize(int value)
Sets the TotalStreamSize field. |
void |
setVolNumber(int value)
Sets the VolNumber field. |
java.lang.String |
toString()
Creates and returns a comma separated list of all attribute values. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String ATTRIBUTE_ID
(ATTRIBUTE_ID = "Entry Information")
public static final java.lang.String SCHEMA_BINDING_NAME
(SCHEMA_BINDING_NAME = ATTRIBUTE_ID + " Definition")
public static final java.lang.String COMPARE_SYNTAX_STRING
(COMPARE_SYNTAX_STRING = "(" + SearchStringComponent.EQUALS_STRING + "," + SearchStringComponent.PRESENT_STRING + "," + SearchStringComponent.SUBSTRING_STRING + ")")
public static final java.lang.String SPACEALLOC_FIELD
(SPACEALLOC_FIELD = "SpaceAlloc")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String ATTRIBUTES_FIELD
(ATTRIBUTES_FIELD = "Attributes")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String FLAGS_FIELD
(FLAGS_FIELD = "Flags")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String DATASTREAMSIZE_FIELD
(DATASTREAMSIZE_FIELD = "DataStreamSize")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String TOTALSTREAMSIZE_FIELD
This variable represents the number of 4K blocks that the given file is occupying.
(TOTALSTREAMSIZE_FIELD = "TotalStreamSize")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String NUMBEROFSTREAMS_FIELD
(NUMBEROFSTREAMS_FIELD = "NumberOfStreams")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String CREATIONTIME_FIELD
(CREATIONTIME_FIELD = "CreationTime")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String CREATIONDATE_FIELD
(CREATIONDATE_FIELD = "CreationDate")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String CREATOR_FIELD
(CREATOR_FIELD = "Creator")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String MODIFYTIME_FIELD
(MODIFYTIME_FIELD = "ModifyTime")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String MODIFYDATE_FIELD
(MODIFYDATE_FIELD = "ModifyDate")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String MODIFIER_FIELD
(MODIFIER_FIELD = "Modifier")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String LASTACCESSDATE_FIELD
(LASTACCESSDATE_FIELD = "LastAccessDate")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String ARCHIVETIME_FIELD
(ARCHIVETIME_FIELD = "ArchiveTime")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String ARCHIVEDATE_FIELD
(ARCHIVEDATE_FIELD = "ArchiveDate")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String ARCHIVER_FIELD
(ARCHIVER_FIELD = "Archiver")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String INHERITEDRIGHTSMASK_FIELD
(INHERITEDRIGHTSMASK_FIELD = "InheritedRightsMask")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String DIRENTNUM_FIELD
(DIRENTNUM_FIELD = "DirEntNum")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String DOSDIRNUM_FIELD
(DOSDIRNUM_FIELD = "DosDirNum")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String VOLNUMBER_FIELD
(VOLNUMBER_FIELD = "VolNumber")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String EADATASIZE_FIELD
(EADATASIZE_FIELD = "EADataSize")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String EAKEYCOUNT_FIELD
(EAKEYCOUNT_FIELD = "EAKeyCount")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String EAKEYSIZE_FIELD
(EAKEYSIZE_FIELD = "EAKeySize")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String NSCREATOR_FIELD
(NSCREATOR_FIELD = "NSCreator")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String NAMELENGTH_FIELD
(NAMELENGTH_FIELD = "NameLength")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String ENTRYNAME_FIELD
(ENTRYNAME_FIELD = "EntryName")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String MODIFYSEARCHATTRIBUTES_FIELD
(MODIFYSEARCHATTRIBUTES_FIELD = "ModifySearchAttributes")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String MODIFYMASK_FIELD
(MODIFYMASK_FIELD = "ModifyMask")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final int TA_NONE
(TA_NONE = 0x0000)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_READ
(TA_READ = 0x0001)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_WRITE
(TA_WRITE = 0x0002)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_OLD_OPEN
(TA_WRITE = 0x0004)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_CREATE
(TA_CREATE = 0x0008)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_DELETE
(TA_DELETE = 0x0010)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_OWNERSHIP
(TA_OWNERSHIP = 0x0020)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_SEARCH
(TA_SEARCH = 0x0040)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_MODIFY
(TA_MODIFY = 0x0080)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_SUPERVISOR
(TA_SUPERVISOR = 0x0100)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int TA_ALL
(TA_ALL = 0x00FB)
getInheritedRightsMask()
,
setInheritedRightsMask(int)
public static final int A_NORMAL
(A_NORMAL = 0x00000000)
getAttributes()
,
setAttributes(int)
public static final int A_READ_ONLY
(A_READ_ONLY = 0x00000001)
getAttributes()
,
setAttributes(int)
public static final int A_HIDDEN
(A_HIDDEN = 0x00000002)
getAttributes()
,
setAttributes(int)
public static final int A_SYSTEM
(A_SYSTEM = 0x00000004)
getAttributes()
,
setAttributes(int)
public static final int A_EXECUTE_ONLY
(A_EXECUTE_ONLY = 0x00000008)
getAttributes()
,
setAttributes(int)
public static final int A_DIRECTORY
(A_DIRECTORY = 0x00000010)
getAttributes()
,
setAttributes(int)
public static final int A_NEEDS_ARCHIVED
(A_NEEDS_ARCHIVED = 0x00000020)
getAttributes()
,
setAttributes(int)
public static final int A_SHAREABLE
(A_SHAREABLE = 0x00000080)
getAttributes()
,
setAttributes(int)
public static final int A_TRANSACTIONAL
(A_TRANSACTIONAL = 0x00001000)
getAttributes()
,
setAttributes(int)
public static final int A_INDEXED
(A_INDEXED = 0x00002000)
getAttributes()
,
setAttributes(int)
public static final int A_READ_AUDIT
(A_READ_AUDIT = 0x00004000)
getAttributes()
,
setAttributes(int)
public static final int A_WRITE_AUDIT
(A_WRITE_AUDIT = 0x00008000)
getAttributes()
,
setAttributes(int)
public static final int A_IMMEDIATE_PURGE
(A_IMMEDIATE_PURGE = 0x00010000)
getAttributes()
,
setAttributes(int)
public static final int A_RENAME_INHIBIT
(A_RENAME_INHIBIT = 0x00020000)
getAttributes()
,
setAttributes(int)
public static final int A_DELETE_INHIBIT
(A_DELETE_INHIBIT = 0x00040000)
getAttributes()
,
setAttributes(int)
public static final int A_COPY_INHIBIT
(A_COPY_INHIBIT = 0x00080000)
getAttributes()
,
setAttributes(int)
public static final int A_FILE_MIGRATED
(A_FILE_MIGRATED = 0x00400000)
getAttributes()
,
setAttributes(int)
public static final int A_DONT_MIGRATE
(A_DONT_MIGRATE = 0x00800000)
getAttributes()
,
setAttributes(int)
public static final int A_IMMEDIATE_COMPRESS
(A_IMMEDIATE_COMPRESS = 0x02000000)
getAttributes()
,
setAttributes(int)
public static final int A_FILE_COMPRESSED
(A_FILE_COMPRESSED = 0x04000000)
getAttributes()
,
setAttributes(int)
public static final int A_DONT_COMPRESS
(A_DONT_COMPRESS = 0x08000000)
getAttributes()
,
setAttributes(int)
public static final int A_CANT_COMPRESS
(A_CANT_COMPRESS = 0x20000000)
getAttributes()
,
setAttributes(int)
public static final int NW_NS_DOS
(NW_NS_DOS = 0x00)
getNSCreator()
,
setNSCreator(int)
public static final int NW_NS_MAC
(NW_NS_MAC = 0x01)
getNSCreator()
,
setNSCreator(int)
public static final int NW_NS_NFS
(NW_NS_NFS = 0x02)
getNSCreator()
,
setNSCreator(int)
public static final int NW_NS_FTAM
(NW_NS_FTAM = 0x03)
getNSCreator()
,
setNSCreator(int)
public static final int NW_NS_OS2
(NW_NS_OS2 = 0x04)
getNSCreator()
,
setNSCreator(int)
public static final int SA_HIDDEN
(SA_HIDDEN = 0x0002)
getModifySearchAttributes()
,
setModifySearchAttributes(int)
public static final int SA_SYSTEM
(SA_SYSTEM = 0x0004)
getModifySearchAttributes()
,
setModifySearchAttributes(int)
public static final int SA_SUBDIR_ONLY
(SA_SUBDIR_ONLY = 0x0010)
getModifySearchAttributes()
,
setModifySearchAttributes(int)
public static final int SA_SUBDIR_FILES
(SA_SUBDIR_FILES = 0x8000)
getModifySearchAttributes()
,
setModifySearchAttributes(int)
public static final int DM_ATTRIBUTES
(DM_ATTRIBUTES = 0x0002)
setModifyMask(int)
,
getModifyMask()
public static final int DM_CREATE_DATE
(DM_CREATE_DATE = 0x0004)
setModifyMask(int)
,
getModifyMask()
public static final int DM_CREATE_TIME
(DM_CREATE_TIME = 0x0008)
setModifyMask(int)
,
getModifyMask()
public static final int DM_CREATOR
(DM_CREATOR_ID = 0x0010)
setModifyMask(int)
,
getModifyMask()
public static final int DM_ARCHIVE_DATE
(DM_ARCHIVE_DATE = 0x0020)
setModifyMask(int)
,
getModifyMask()
public static final int DM_ARCHIVE_TIME
(DM_ARCHIVE_TIME = 0x0040)
setModifyMask(int)
,
getModifyMask()
public static final int DM_ARCHIVER
(DM_ARCHIVER_ID = 0x0080)
setModifyMask(int)
,
getModifyMask()
public static final int DM_MODIFY_DATE
(DM_MODIFY_DATE = 0x0100)
setModifyMask(int)
,
getModifyMask()
public static final int DM_MODIFY_TIME
(DM_MODIFY_TIME = 0x0200)
setModifyMask(int)
,
getModifyMask()
public static final int DM_MODIFIER
(DM_MODIFIER_ID = 0x0400)
setModifyMask(int)
,
getModifyMask()
public static final int DM_LAST_ACCESS_DATE
(DM_LAST_ACCESS_DATE = 0x0800)
setModifyMask(int)
,
getModifyMask()
public static final int DM_INHERITED_RIGHTS_MASK
(DM_INHERITED_RIGHTS_MASK = 0x1000)
setModifyMask(int)
,
getModifyMask()
Constructor Detail |
public DirectoryEntryInformation()
public DirectoryEntryInformation(int attributes, int creationDate, int creationTime, java.lang.String creator, int modifyDate, int modifyTime, java.lang.String modifier, int archiveDate, int archiveTime, java.lang.String archiver, int lastAccessDate, int grantRights, int revokeRights, int spaceAlloc, int modifySearchAttributes, int modifyMask)
This constructor is intended for the user application layer. The created DirectoryEntryInformation object is targeted for use in an attribute modify operation. The parameters reflect all the fields that can be modified. All other fields are ignored by the modify operation.
The modifyMask is used to specify which of these fields are valid and should be modified. The following constants are available for this support.
attributes
- Data member attributes value.createDate
- Data member creation date value.createTime
- Data member creation time value.creator
- Data member creator value.modifyDate
- Data member modify date value.modifyTime
- Data member modify time value.modifier
- Data member modifier value.archiveDate
- Data member archive date value.archiveTime
- Data member archive time value.archiver
- Data member archiver value.lastAccessDate
- Data member last access value.grantRights
- Data member grant rights value.revokeRights
- Data member revoke rights value.maximumSpace
- Data member maximum space value.modifySearchAttributes
- Data member modify search attributes value.DM_ATTRIBUTES
,
DM_CREATE_DATE
,
DM_CREATE_TIME
,
DM_CREATOR
,
DM_ARCHIVE_DATE
,
DM_ARCHIVE_TIME
,
DM_ARCHIVER
,
DM_MODIFY_DATE
,
DM_MODIFY_TIME
,
DM_MODIFIER
,
DM_LAST_ACCESS_DATE
,
DM_INHERITED_RIGHTS_MASK
,
setModifyMask(int)
,
getModifyMask()
public DirectoryEntryInformation(int spaceAlloc, int attributes, int flags, int dataStreamSize, int totalStreamSize, int numberOfStreams, int creationTime, int creationDate, java.lang.String creator, int modifyTime, int modifyDate, java.lang.String modifier, int lastAccessDate, int archiveTime, int archiveDate, java.lang.String archiver, int inheritedRightsMask, int dirEntNum, int DosDirNum, int volNumber, int EADataSize, int EAKeyCount, int EAKeySize, int NSCreator, int nameLength, java.lang.String entryName, int modifySearchAttributes)
spaceAlloc
- Data member: space alloc value.attributes
- Data member: attributes value.flags
- Data member: flags value.dataStreamSize
- Data member: data stream size value.totalStreamSize
- Data member: total stream size value.numberOfStreams
- Data member: number of streams value.creationTime
- Data member: creation time value.creationDate
- Data member: creation date value.creator
- Data member: creator value.modifyTime
- Data member: modify time value.modifyDate
- Data member: modify date value.modifier
- Data member: modifier value.lastAccessDate
- Data member: last access date value.archiveTime
- Data member: archive time value.archiveDate
- Data member: archive date value.archiver
- Data member: archiver value.inheritedRightsMask
- Data member: inherited rights mask value.dirEntNum
- Data member: dir ent num value.DosDirNum
- Data member: DOS directory number value.volNumber
- Data member: volume number value.EADataSize
- Data member: EA data size value.EAKeyCount
- Data member: EA key count value.EAKeySize
- Data member: EA key size value.NSCreator
- Data member: NS creator value.nameLength
- Data member: name length value.entryName
- Data member: entry name value.modifySearchAttributes
- Data member: modify search attributes value.Method Detail |
public int getSpaceAlloc()
public void setSpaceAlloc(int value)
value
- The SpaceAlloc for this directory entry.public int getAttributes()
A_NORMAL
public void setAttributes(int value)
value
- The attributes for this directory entry.A_NORMAL
public int getFlags()
public void setFlags(int value)
value
- The Flags for this directory entry.public int getDataStreamSize()
public void setDataStreamSize(int value)
value
- The DataStreamSize for this directory entry.public int getTotalStreamSize()
The TotalStreamSize is the number of 4K blocks that the given file occupies.
public void setTotalStreamSize(int value)
value
- The TotalStreamSize for this directory entry, which
is the number of 4K blocks that the directory entry
occupies.public int getNumberOfStreams()
public void setNumberOfStreams(int value)
value
- The NumberOfStreams for this directory entry.public int getCreationTime()
setCreationTime(int)
public void setCreationTime(int value)
value
- The CreationTime for this directory entry in
the order of seconds (5 bits), minutes (6 bits)
and hours (5 bits).public int getCreationDate()
setCreationDate(int)
public void setCreationDate(int value)
To use the month value as 0-11 java base you must subtract 1. Also, be aware that Novell starts at 1980, thus you need to add the year to 1980.
value
- The CreationDate for this directory entry in
the order of dsy (5 bits), month (4 bits)
and year (7 bits).public java.lang.String getCreator()
public void setCreator(java.lang.String value)
value
- The Creator for this directory entry.public int getModifyTime()
public void setModifyTime(int value)
value
- The ModifyTime for this directory entry.public int getModifyDate()
public void setModifyDate(int value)
value
- The ModifyDate for this directory entry.public java.lang.String getModifier()
public void setModifier(java.lang.String value)
value
- The Modifier for this directory entry.public int getLastAccessDate()
public void setLastAccessDate(int value)
value
- The LastAccessDate for this directory entry.public int getArchiveTime()
public void setArchiveTime(int value)
value
- The ArchiveTime for this directory entry.public int getArchiveDate()
public void setArchiveDate(int value)
value
- The ArchiveDate for this directory entry.public java.lang.String getArchiver()
public void setArchiver(java.lang.String value)
value
- The Archiver for this directory entry.public int getInheritedRightsMask()
TA_NONE
public void setInheritedRightsMask(int value)
value
- The inheritedRightsMask for this directory entry.TA_NONE
public int getDirEntNum()
public void setDirEntNum(int value)
value
- The DirEntNum for this directory entry.public int getDosDirNum()
public void setDosDirNum(int value)
value
- The DosDirNum for this directory entry.public int getVolNumber()
public void setVolNumber(int value)
value
- The VolNumber for this directory entry.public int getEADataSize()
public void setEADataSize(int value)
value
- The EADataSize for this directory entry.public int getEAKeyCount()
public void setEAKeyCount(int value)
value
- The EAKeyCount for this directory entry.public int getEAKeySize()
public void setEAKeySize(int value)
value
- The EAKeySize for this directory entry.public int getNSCreator()
NW_NS_DOS
public void setNSCreator(int value)
value
- The NSCreator for this directory entry.NW_NS_DOS
public int getNameLength()
public void setNameLength(int value)
value
- The NameLength for this directory entry.public java.lang.String getEntryName()
public void setEntryName(java.lang.String value)
value
- The EntryName for this directory entry.public int getModifySearchAttributes()
SA_HIDDEN
public void setModifySearchAttributes(int value)
value
- The modifySearchAttributes for this directory entry.public int getModifyMask()
SA_HIDDEN
public void setModifyMask(int value)
value
- The modifyMask for this directory entry.public void setCompareString(java.lang.String compareString)
See the various SearchStringComponent compare methods referenced below for detailed information on the operation types allowed for String and integer data members.
The names of these fields takes the names of their corresponding methods minus the get or set prefix. Given the following string: "(&(Name=*printer*)(ObjectId>=2)(Rights>=128))"
The equals method returns TRUE if the name has the substring "printer" in it, the objectId is not 2 and the rights are set to be able to modify (TA_MODIFY). If the approximate operator type is used on the Rights field the various bits of the operand value are checked. If any of them are set, equals will return TRUE. For example: "(Rights~=3) returns TRUE if either the TA_READ or TA_WRITE bits are set, and regardless of what other bits might be set.
If the string passed in is not a valid RFC1960 formated string, this method will throw an IllegalArgumentException. If the compareString value is NULL, RFC1960 formated compares will be disabled.
compareString
- The RFC1960 formated search string. NULL
disables this compare functionality.equals(java.lang.Object)
,
SPACEALLOC_FIELD
public java.lang.String getCompareString()
Trustee.setCompareString(java.lang.String)
public com.novell.service.rfc1960.Rfc1960Parser getSearchStringParser()
Returns a Rfc1960Parser object that was instantiated with the compareString last set by the setCompareString method.
public boolean equals(java.lang.Object obj)
This method compares the input object against this object. If the input object has a RFC1960 compare string, this method will do the comparision based on the commands in the compare string.
obj
- The object to compare.setCompareString(java.lang.String)
,
SPACEALLOC_FIELD
public java.lang.String toString()
The list of returned values is in the following format: "spaceAlloc: n, attributes: n, flags: n, dataStreamSize: n, totalStreamSize: n, numberOfStreams: n, creationTime: n, creationDate: n, creator: s, modifyTime: n, modifyDate: n, modifier: s, lastAccessDate: n, archiveTime: n, archiveDate: n, archiver: s, inheritedRightsMask: n, dirEntNum: n, DosDirNum: n, volNumber: n, EADataSize: n, EAKeyCount: n, EAKeySize: n, NSCreator: n, nameLength: n, entryName: s, modifySearchAttributes: n, compareString: s, modifyMask: n"
public java.lang.Object clone()
Instantiates a new instance of this type and assigns all fields using the current values of the fields of this directory entry information object.
public void copy(DirectoryEntryInformation from)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |