|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objects that implement this interface represent Document Folders. Folders may contain other Folders and/or Documents. A Root Folder is created by the system at installation time and is the top of the Folder hierarchy.
Field Summary | |
static String |
EL_DOC_FOLDER
The element type of Document Folder |
static String |
LIST
The 'list' permission type. |
static String |
PROTECT
The 'protect' permission type. |
static String |
READ
The 'read' permission type. |
static String |
WRITE
The 'write' permission type. |
Fields inherited from interface com.sssw.cm.api.EbiDirectory |
DIR_TYPE_APP_FIRST,
DIR_TYPE_DEFAULT,
DIR_TYPE_ROOT,
DIR_TYPE_SYS1,
DIR_TYPE_SYS2,
DIR_TYPE_SYS3,
DIR_TYPE_SYS4,
DIR_TYPE_SYS5,
DIR_TYPE_SYSTEM,
OP_ADD_SUBDIR |
Fields inherited from interface com.sssw.cm.api.EbiDirectoryEntry |
OP_ADD_LEAF_NODE |
Fields inherited from interface com.sssw.cm.api.EbiCmElement |
OP_COPY,
OP_MOVE,
OP_REMOVE,
OP_UPDATE |
Method Summary | |
EbiDocument |
addDocument(EbiContext context,
EbiAddDocumentParams params,
boolean overwrite)
Adds a Document to this Folder. |
EbiDocFolder |
addSubfolder(EbiContext context,
String name,
int type,
String description,
Acl acl,
boolean overwrite)
Adds a Subfolder to this Folder. |
EbiDocFolder |
copy(EbiContext context,
EbiDocFolder destFolder,
boolean copyFolderSecurity,
boolean copySubfolders,
boolean copyDocuments,
boolean overwrite,
int docParts)
Copies this Folder into the specified destination Folder. |
String |
getCreator()
Gets the name of the creator of the Folder |
Timestamp |
getDateCreated()
Gets the date/time of the Folder's creation |
Timestamp |
getDateLastModified()
Gets the date/time of the last modification of the Folder |
long |
getFolderSize()
Gets the current size of the Folder |
String |
getModifier()
Gets the name of the user that last modified the Folder |
EbiDocFolder |
getParentFolder(EbiContext context)
Gets the Parent Folder for this Folder. |
int |
getSize()
Deprecated. EbiDocFolder.getFolderSize() |
EbiDocFolder |
getSubfolder(EbiContext context,
String relativePath)
Gets a Subfolder of this Folder, given the relative path to the Subfolder. |
EbiDocFolder |
move(EbiContext context,
EbiDocFolder destFolder,
boolean withFolderSecurity,
boolean overwrite,
int docParts)
Moves this Folder into the specified destination Folder. |
boolean |
removeSubfolder(EbiContext context,
String relativePath)
Removes the Subfolder specified by its path relative to this Folder. |
void |
setCreator(String userID)
Sets the creator. |
void |
setDateCreated(Timestamp created)
Sets the date/time created. |
void |
setFolderSize(long size)
Sets the size. |
void |
setSize(int size)
Sets the size. |
Methods implemented from interface com.sssw.cm.api.EbiDirectory |
getChildren,
getChildren,
getCount,
getDescription,
getDirectoryType,
getDocument,
getEntry,
getParentID,
isRoot,
isSystemDirectory,
isTopLevel,
publishAll,
removeChildren,
removeDocument,
removeEntry,
setDescription,
setDirectoryType,
setParentID,
unpublishAll |
Methods implemented from interface com.sssw.cm.api.EbiDirectoryEntry |
exists,
getContentManager,
getID,
getKey,
getName,
getParentDirectory,
getRepositoryID,
getURL,
getURLDontThrow,
hasChildren,
hasNameChanged,
isChildOf,
isDescendantOf,
isDescendantOf,
isDirectory,
isInDefaultRepository,
isInSystemRepository,
remove,
removeChildren,
setID,
setID,
setLastModified,
setName,
setRepositoryID,
update |
Methods implemented from interface com.sssw.fw.api.EbiSecurableElement |
getAcl,
getObjectID,
isUserAuthorized,
removeAcl,
setAcl |
Methods implemented from interface com.sssw.cm.api.EbiCmElement |
fromXML,
toXML,
validateOperation |
Methods implemented from interface java.lang.Comparable |
compareTo |
Methods implemented from interface com.sssw.fw.api.EbiFrameworkElement |
getElementUUID,
getLastModified,
getLastModifiedBy,
isEqualTo,
isReadOnly,
resetReadOnly,
setLastModified,
setLastModifiedBy,
setReadOnly |
Field Detail |
public static final String EL_DOC_FOLDER
EbiElement.getType()
public static final String READ
public static final String WRITE
public static final String PROTECT
public static final String LIST
Method Detail |
public String getCreator()
public Timestamp getDateCreated()
public Timestamp getDateLastModified()
public String getModifier()
public int getSize()
EbiDocFolder.getFolderSize()
public long getFolderSize()
public void setCreator(String userID)
userID
- the ID of the Folder's creatorpublic void setDateCreated(Timestamp created)
created
- the date/time the Folder was createdpublic void setSize(int size)
size
- the Folder sizepublic void setFolderSize(long size)
size
- the Folder sizepublic EbiDocFolder getParentFolder(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic EbiDocFolder move(EbiContext context, EbiDocFolder destFolder, boolean withFolderSecurity, boolean overwrite, int docParts) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- contextdestFolder
- the destination FolderwithFolderSecurity
- if true, preserves any ACL set on this Folderoverwrite
- if true, overwrites any existing Folder with the same
name in the destinationdocParts
- specifies which constituent parts of Documents to move
over, as Documents from this Folder and any Subfolders are movedpublic EbiDocFolder copy(EbiContext context, EbiDocFolder destFolder, boolean copyFolderSecurity, boolean copySubfolders, boolean copyDocuments, boolean overwrite, int docParts) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- contextdestFolder
- the destination FoldercopyFolderSecurity
- if true, copy the ACL of this FoldercopySubfolders
- if true, copy this Folder's SubfolderscopyDocuments
- if true, copy any Documents contained in the Folder
as well as in any descendant folders, if copySubfolders
is
trueoverwrite
- if true, overwrite any existing Folder with the same
name in the destinationdocParts
- if copyDocuments
is true, specifies which
constituent parts of the Documents to copy, see EbiDocumentEbiDocFolder
,
EbiDocument
public EbiDocument addDocument(EbiContext context, EbiAddDocumentParams params, boolean overwrite) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- contextparams
- the 'add document' parameters objectoverwrite
- if true, any existing Document with the same name is
overwrittenEbiDocument
,
EbiAddDocumentParams
public EbiDocFolder addSubfolder(EbiContext context, String name, int type, String description, Acl acl, boolean overwrite) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- contextname
- the name of the Subfolder to addtype
- the Directory type of the new Subfolderdescription
- the description of the new Subfolderacl
- the Access Control List for the new Subfolder; if null, then
the ACL of the parent Folder is inheritedoverwrite
- if true, then any existing Subfolder with the same name
is overwrittenpublic EbiDocFolder getSubfolder(EbiContext context, String relativePath) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
Example:
EbiDocFolder folder = cmgr.lookupDirectoryEntry( context, "News", EbiDocFolder.EL_DOC_FOLDER); // This will look up the 'News/Sports/Baseball' folder EbiDocFolder subFolder = folder.getSubfolder(context, "Sports/Baseball");
context
- contextrelativePath
- the path to the Subfolder, relative to this Folderpublic boolean removeSubfolder(EbiContext context, String relativePath) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- contextrelativePath
- the relative path to the Subfolder to be removed
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |