Lists the trustees of an Entry object (file or directory).
Adds a new Trustee object to the Trustee collection’s file or directory entry.
Object.Add(
Path As String,
ObjName As String,
Rights As String)
The full name of the file or the directory entry.
The name of the Trustee object to add.
The rights for the new Trustee object.R=Read, W=Write, S=Supervisor, A=Access, M=Modify.
Trustee.
This example creates the Trustee object ADMIN in NSN directory and assigns it RW (read and write) rights.
Set filemgr = Createobject("ucx:NWFileMgr")
Set entry = filemgr.FindEntry("Sys:NSN")
entry.trustees.Add("SYS:NSN","ADMIN","RW")
Determines whether or not the collection contains any more Trustee objects.
Object.HasMoreElements()
None.
Boolean. Returns TRUE if the collection contains more Trustee objects.
See sample in Example.
Returns the next Trustee object in the collection.
Object.Next()
None.
Trustee. Returns the next Trustee object in the collection. If there are no more objects in the collection, this method returns NULL.
See sample in Example.
Deletes the specified Trustee object from the Trustee collection’s file or directory entry.
Object.Remove(
Path As String,
ObjectName As String)
The full name of the file or the directory entry from which the specified trustee object is to be deleted.
The name of the Trustee object to delete.
Boolean. Returns TRUE if the Trustee object is successfully removed.
This example removes the ADMIN object from the collection.
Set filemgr = Createobject("ucx:NWFileMgr")
Set trustee = filemgr.FindEntry("Sys:NSN")
Set trustees = entry.trustees
If trustees.Remove("Sys:NSN","ADMIN") Then
Print("Deleted trustee successfully")
Else
Print("Unable to delete the trustee")
End If
Resets the collection of Entry objects.
Object.Reset()
None.
Void.
This method is the first operation that starts the iteration over files and directories.
See sample in Example.