|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Extends the AdminNamespace and provides the interface for the management of files and directories.
| Field Summary | |
static java.lang.String |
name
|
static java.lang.String |
separator
|
| Method Summary | |
boolean |
canVolumeCompress(ObjectEntry obj)
A check to determine if the selected File System volume can perform compressions. |
boolean |
canVolumeMigrate(ObjectEntry obj)
A check to determine if the selected File System volume can perform migrations. |
void |
create(ObjectEntry parent,
java.lang.String child,
ObjectEntry trusteeOE,
FSRights rights)
creates a File System directory and assigns a trustee with rights to it |
ObjectEntry |
createObjectEntry(ObjectEntry parent,
java.lang.String context)
Deprecated. This routine was used to keep track of the federation point into the file system namespace. This was done in a dangerous way which could cause namespace inconsistencies. Please use getFSRootOE(ObjectEntry federationPointObject) to create initial or root ObjectEntries within the file system namespace. |
ObjectAttribute[] |
getAttributes(ObjectEntry obj)
gets the attributes of a file, directory or volume in the File System |
java.lang.Object |
getContext(ObjectEntry objEntry)
return the initial context to be used. |
java.util.Enumeration |
getDeletedObjectInformationList(ObjectEntry parent)
|
java.util.Enumeration |
getDeletedObjectList(ObjectEntry parent,
ResultModifier modifier)
|
java.lang.String |
getDSFullName(java.lang.String fsDSName)
converts the FileSystem DS name to a full DS name |
java.lang.String |
getDSFullName(java.lang.String dsName,
java.lang.String treeName)
converts the DS name to a full DS name |
java.lang.String |
getDSName(java.lang.String fsDSName)
converts the FileSystem DS name to a regular DS name |
FSEntryAttribute |
getEntryAttribute(long attribute)
Creates an EntryAttribute and initializes it with the attribute value. |
ObjectEntry |
getFederationObjectEntry()
Deprecated. This routine may return erronous results unless specific namespace routines are called in a specific sequence. It will also return incorrect results if the filesystem namespace was federated into from multiple points using now deprecated namespace calls. The file system namespace should be federated into using getFSRootOE(ObjectEntry federationPointObject). Please use getFederationObjectEntry(ObjectEntry obj) in place of this routine. |
ObjectEntry |
getFederationObjectEntry(ObjectEntry obj)
gets the Object Entry that the File System federated off of. |
java.lang.String[] |
getFederationObjectEntryTypeList()
gets the list of names of the types of Object Entry that the File System federates off of. |
java.io.InputStream |
getFileInputStream(ObjectEntry objToUse)
Returns an InputStream for the specified ObjectEntry. |
java.io.OutputStream |
getFileOutputStream(ObjectEntry objToUse)
Returns an OutputStream for the specified ObjectEntry. |
long |
getFileSize(ObjectEntry fileOE)
Returns athe size of the file |
java.lang.String |
getFSDSName(java.lang.String dsName)
converts the NDS name to a File System DS name |
FSRootObjectEntry |
getFSRootOE(ObjectEntry federationPointObject)
get an FSRootObjectEntry for a NDS volume object. |
java.lang.String |
getFullDirectoryPath(ObjectEntry obj)
Determines the full directory path based on the ObjectEntry name. |
FSMODEntryAttr |
getMODEntryAttr()
Creates an MODEntryAttr and initializes it as no values |
Rights |
getObjectEffectiveRights(ObjectEntry obj)
Gets the effect rights the current user has on a particular File System object |
Rights |
getObjectEffectiveRights(ObjectEntry obj,
java.lang.String trustee)
Gets the effect rights a trustee has on a particular File System object |
ObjectEntry |
getObjectEntry(java.lang.String objEntryStr,
boolean bUseStoredRootName)
Deprecated. This routine may return erronous results unless specific namespace routines are called in a specific sequence. It will also return incorrect results if the filesystem namespace was federated into from multiple points using now deprecated namespace calls. The file system namespace should be federated into using getFSRootOE(ObjectEntry federationPointObject). Please use getObjectEntry(ObjectEntry parentEntry, String objEntryStr) in place of this routine. |
java.lang.String |
getRootServer(ObjectEntry obj)
Gets the root Server name from an ObjectEntry. |
java.lang.String |
getRootTree(ObjectEntry obj)
Gets the NDS root Tree name for an ObjectEntry in the file system namespace. |
java.lang.String[] |
getTrusteePathList(ObjectEntry obj,
java.lang.String trustee)
return the list of files and directories the trustee has explicit rights to. |
int |
getUserSpaceInUse(ObjectEntry volumeObj,
java.lang.String user)
Gets the User Space In Use for a volume where a file system object entry resides |
long |
getVolumeBlockSize(ObjectEntry volumeObj)
Gets the Block size from a volume |
boolean |
hasDeletedObjects()
A check to determine if the File System handles deleted objects and has the capability to salvage and purge those objects |
boolean |
hasDeleteInhibit()
return true if the File System has capability of inhibiting deletions, false otherwise. |
boolean |
hasDirectorySpaceRestrictions()
A check to determine if the File System has the capability of handling directory space restrictions. |
boolean |
hasRenameInhibit()
return true if the File System has capability of inhibiting renames, false otherwise. |
boolean |
hasTransactional()
return true if the File System has capability of setting the tranactional attribute for objects, false otherwise. |
boolean |
hasTrustees()
A check to determine if the File System has the capability of handling trustees of its objects. |
boolean |
hasUserVolumeSpaceRestrictions()
A check to determine if the File System has the capability of handling user space restictions for a volume. |
boolean |
hasVolumeCompression()
A check to determine if the File System has the capability of handling compressions for a volume. |
boolean |
hasVolumeMigration()
A check to determine if the File System has the capability of handling migrations for a volume. |
boolean |
isDeleteInhibit(ObjectEntry obj)
return true if the object is delete inhibited, false otherwise. |
boolean |
isReadOnly(ObjectEntry obj)
return true if the object is read-only, false otherwise. |
boolean |
isRenameInhibit(ObjectEntry obj)
return true if the object is rename inhibited, false otherwise. |
boolean |
isTransactional(ObjectEntry obj)
return true if the object is transactional, false otherwise. |
java.lang.String |
mapVolumeToRootName(ObjectEntry volumeObj)
return the root name of the File System based on the Federation volume. |
void |
purge(ObjectEntry parent,
java.util.Vector deletedFileList)
purges a deleted file from the File System |
void |
removeDeleteReadOnly(ObjectEntry obj)
remove the delete read-only attributes from the object. |
void |
removeReadOnly(ObjectEntry obj)
remove the read-only attributes from the object. |
void |
removeRenameReadOnly(ObjectEntry obj)
remove the rename read-only attributes from the object. |
void |
replaceRenameReadOnly(ObjectEntry obj,
boolean isReadOnly)
replaces the rename read-only attributes to the object. |
void |
salvage(ObjectEntry parent,
java.lang.Object facade,
java.lang.String newName)
salvages a deleted object in a particular location back to the File System |
void |
setTrusteeRestriction(ObjectEntry volumeObj,
ObjectEntry trusteeOE,
int limit)
Modifies a File System volume by assigning a trustee with restrictions to it. |
void |
setTrusteeRights(ObjectEntry objEntry,
ObjectEntry trusteeOE,
int rights)
Modifies a File System object by assigning a trustee with rights to it |
void |
unAuthenticate(ObjectEntry obj)
UnAuthenticates the object from any filesystem (i.e server/filesystem) that it may have created an authenticated identity to. |
| Methods inherited from interface com.novell.admin.ns.AdminNamespace |
create,
createNSObject,
createNSObject,
createObjectEntry,
delete,
doesExist,
freeDetails,
getAttributeDefinition,
getAttributes,
getChildren,
getChildren,
getClassDefinition,
getDetails,
getDetails,
getFullName,
getMaxNameLength,
getObjectEffectiveRights,
getObjectEntry,
getObjectEntry,
getObjectType,
getObjectTypes,
getPropertyEffectiveRights,
getSchemaDefinition,
move,
rename,
setAttributes,
update |
| Methods inherited from interface com.novell.application.console.snapin.NamespaceSnapin |
getChildContainers,
getInitialObjectEntries,
getUniqueID |
| Methods inherited from interface com.novell.admin.ns.MultiObjModificationNamespace |
getMODDetails,
updateMultipleObjects |
| Methods inherited from interface com.novell.application.console.snapin.Snapin |
getSnapinDescription,
getSnapinName,
initSnapin,
shutdownSnapin |
| Field Detail |
public static final java.lang.String name
public static final java.lang.String separator
| Method Detail |
public ObjectEntry createObjectEntry(ObjectEntry parent,
java.lang.String context)
throws NamespaceException,
SPIException
parent - The ObjectEntry which is part of the parent Namespace where the
federation into the File System Namespace occurred.context - The context of the ObjectEntry. The name it will use.
example "simpleServerName/volName" or "elvis/sys"
If parent is a NDS Volume object this parameter is ignored.
public FSRootObjectEntry getFSRootOE(ObjectEntry federationPointObject)
throws SPIException
federationPointObject - The ObjectEntry which is part of the parent Namespace where the
federation into the File System Namespace occurred. This is the
NDS volume object
public void create(ObjectEntry parent,
java.lang.String child,
ObjectEntry trusteeOE,
FSRights rights)
throws SPIException,
SnapinVetoException,
NamespaceException,
IncompatibleComponentException
parent - The parent directory ObjectEntrychild - The name of the child directorytrusteeOE - The trustee NDS User ObjectEntryrights - The trustee's rights for the newly created directorypublic ObjectEntry getFederationObjectEntry()
public ObjectEntry getFederationObjectEntry(ObjectEntry obj)
obj - an object entry from the file - this does not have to be a root/volume
type of object. Any directory or file type of OE will dopublic java.lang.String[] getFederationObjectEntryTypeList()
public java.lang.String getFSDSName(java.lang.String dsName)
dsName - the NDS name to be converted.public java.lang.String getDSName(java.lang.String fsDSName)
fsDSName - the FS DS name.public java.lang.String getDSFullName(java.lang.String fsDSName)
fsDSName - the FS DS name.
public java.lang.String getDSFullName(java.lang.String dsName,
java.lang.String treeName)
dsName - the unrooted DS name.treeName - the tree name associated with the DS name.
public ObjectAttribute[] getAttributes(ObjectEntry obj)
throws SPIException
obj - The file, directory, or volume to get the list of attributes for
public Rights getObjectEffectiveRights(ObjectEntry obj,
java.lang.String trustee)
throws SPIException
obj - the object to check the rights on.trustee - the trustee to check the object rights for.
public Rights getObjectEffectiveRights(ObjectEntry obj)
throws SPIException
obj - the object to check the rights on.
public ObjectEntry getObjectEntry(java.lang.String objEntryStr,
boolean bUseStoredRootName)
throws SPIException
The object must exist in the namespace, or this method will fail.
objEntryStr - the name of the ObjectEntry to retrieve. If a stored root
name is used, the format is "dir1/dir2/file". If the stored root name
is not used, the format is "simpleServerName/volName/dir1/dir2/file"bUseStoredRootName - If false, then the root name must be part of the
objEntryStr. If true, then the stored root name from the previous
call to createObjectEntry(ObjectEntry parent, String context)
is used. That is also a deprecated call.public boolean hasDeletedObjects()
public void purge(ObjectEntry parent,
java.util.Vector deletedFileList)
throws SPIException,
SnapinVetoException
parent - The File System ObjectEntry representing the location
of the deleted filedeletedFileList - The array of the deleted files
public void salvage(ObjectEntry parent,
java.lang.Object facade,
java.lang.String newName)
throws SPIException,
SnapinVetoException
parent - The File System ObjectEntry representing the location
of the deleted object.facade - The deleted object informationnewName - The name to salvage the deleted object to
public java.util.Enumeration getDeletedObjectList(ObjectEntry parent,
ResultModifier modifier)
throws SPIException
parent - The File System ObjectEntry representing the
location of the deleted objects.modifier - The filtering information
public java.util.Enumeration getDeletedObjectInformationList(ObjectEntry parent)
throws SPIException
parent - The File System ObjectEntry representing the
location of the deleted objects.public boolean hasTrustees()
public void setTrusteeRights(ObjectEntry objEntry,
ObjectEntry trusteeOE,
int rights)
throws SPIException,
IncompatibleComponentException
objEntry - The File System ObjectEntrytrusteeOE - The trustee NDS User ObjectEntryrights - The trustee's rights for the File System object
public void setTrusteeRestriction(ObjectEntry volumeObj,
ObjectEntry trusteeOE,
int limit)
throws SPIException,
IncompatibleComponentException
volumeObj - The File System Volume ObjectEntrytrusteeOE - The trustee NDS User ObjectEntrylimit - The trustee's restriction for the File System volume
public java.lang.String[] getTrusteePathList(ObjectEntry obj,
java.lang.String trustee)
throws SPIException
public boolean hasUserVolumeSpaceRestrictions()
public boolean hasDirectorySpaceRestrictions()
public int getUserSpaceInUse(ObjectEntry volumeObj,
java.lang.String user)
throws SPIException
obj - a ObjectEntry in the file system namespaceuser - the user whose space restriction in use is being looked for.public java.lang.String getRootTree(ObjectEntry obj)
obj - a FileSystem ObjectEntry.public java.lang.String getRootServer(ObjectEntry obj)
obj - a FileSystem ObjectEntry.public java.lang.String getFullDirectoryPath(ObjectEntry obj)
obj - a FileSystem ObjectEntry.public java.lang.String mapVolumeToRootName(ObjectEntry volumeObj)
volumeObj - an NDS Volume ObjectEntry from the NDSNamespace.public long getVolumeBlockSize(ObjectEntry volumeObj)
volumeObj - the volume as an ObjectEntry.public boolean hasVolumeMigration()
public boolean canVolumeMigrate(ObjectEntry obj)
throws SPIException
obj - the File System ObjectEntry associated with a volume.public boolean hasVolumeCompression()
public boolean canVolumeCompress(ObjectEntry obj)
throws SPIException
obj - the File System ObjectEntry associated with a volume.public FSMODEntryAttr getMODEntryAttr()
public FSEntryAttribute getEntryAttribute(long attribute)
attribute - the attribute containing the file system attribute
bits that are set or not set.public boolean isReadOnly(ObjectEntry obj)
public boolean hasDeleteInhibit()
public boolean isDeleteInhibit(ObjectEntry obj)
public boolean hasRenameInhibit()
public boolean isRenameInhibit(ObjectEntry obj)
public boolean hasTransactional()
public boolean isTransactional(ObjectEntry obj)
public void removeReadOnly(ObjectEntry obj)
public void removeDeleteReadOnly(ObjectEntry obj)
public void removeRenameReadOnly(ObjectEntry obj)
public void replaceRenameReadOnly(ObjectEntry obj,
boolean isReadOnly)
public java.lang.Object getContext(ObjectEntry objEntry)
throws SPIException
public long getFileSize(ObjectEntry fileOE)
throws SPIException
fileOE - The File System Object Entry representing the file. It is expected
to be a File objecttype.
public java.io.InputStream getFileInputStream(ObjectEntry objToUse)
throws SPIException
objToUse - The File System Object Entry representing the file
public java.io.OutputStream getFileOutputStream(ObjectEntry objToUse)
throws SPIException
objToUse - The File System Object Entry representing the file
public void unAuthenticate(ObjectEntry obj)
throws SPIException
obj - The object to unauthenticate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||