|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.domino.AbstractItem
com.compoze.domino.Folder
public class Folder
This class is an Domino folder. Folder instances are obtained
from the Folders
. Methods that access properites on the
class require that the properties were loaded beforehand, when the folder
was initially retrieved. Any methods in this class that begin
with the string server
make a query to the server, and require
that the PropertyKey.FOLDER_ID
property be loaded beforehand.
Any additional property requirements are indicated on each individual method.
Field Summary | |
---|---|
static PropertyKey[] |
ALL_PROPS
Contains an array of all of the properties available on a folder. |
Fields inherited from class com.compoze.domino.AbstractItem |
---|
m_props, m_session |
Method Summary | |
---|---|
java.lang.String |
getAbsoluteName()
Gets the absolute name of the folder (including its full path relative to the top of the information store). |
int |
getDepth()
Gets the depth. |
FolderType |
getFolderType()
Gets the folder type. |
java.lang.String |
getID()
Gets the ID of the folder. |
int |
getMemoCount()
Gets the number of memos. |
java.lang.String |
getName()
Gets the folder name. |
java.lang.String |
getParentFolderID()
Gets the parent folder ID. |
int |
getSubFolderCount()
Gets the number of subfolders. |
int |
getUnreadMemoCount()
Gets the number of unread memos. |
boolean |
hasSubFolders()
Checks if a folder has subfolders. |
boolean |
holdFolders()
Checks if this folder can hold sub-folders. |
boolean |
holdMemos()
Checks if this folder can hold memos. |
void |
serverCopyTo(java.lang.String sTargetFolderID,
java.lang.String sNewName)
Hits the server to copy the folder to another folder. |
Folder |
serverCreateFolder(java.lang.String sName,
PropertyKey[] keys)
Hits the server to add a folder below the current folder. |
void |
serverDelete()
Hits the server to delete the folder. |
int |
serverGetMemoCount()
Deprecated. As of 3.6.25, replaced by getMemoCount() and property
PropertyKey.FOLDER_MEMO_COUNT |
Memo[] |
serverGetMemos(int iStartIndex,
int iEndIndex,
PropertyKey[] keys,
SortProperty sortProp)
Queries the server to get memos from the server between the specified iStartIndex and iEndIndex
starting at 0. |
Folder[] |
serverGetSubFolders(int iDepth,
PropertyKey[] keys)
Gets the subfolders. |
void |
serverMoveTo(java.lang.String sFolderID)
Hits the server to move the folder to another folder. |
void |
serverUpdate()
Hits the server to update any changed properties. |
void |
setName(java.lang.String sName)
Sets the folder name. |
java.lang.String |
toString()
Returns the string representation of the folder. |
Methods inherited from class com.compoze.domino.AbstractItem |
---|
get, getBoolean, getDate, getDateArray, getDouble, getInt, getPropertyKeys, getString, getStringArray, getUpdatedPropertyValues, set, setBoolean, setDate, setDouble, setInt, setString, setStringArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PropertyKey[] ALL_PROPS
Method Detail |
---|
public void serverUpdate() throws DominoException
FolderAlreadyExistsException
is thrown.
serverUpdate
in class AbstractItem
DominoException
FolderAlreadyExistsException
public void serverDelete() throws DominoException
DominoException
if you attempt to delete one of these folder types:
FolderType.INBOX
FolderType.TRASH
FolderType.DRAFTS
FolderType.SENT
DominoException
PropertyKey.FOLDER_TYPE
public void serverCopyTo(java.lang.String sTargetFolderID, java.lang.String sNewName) throws DominoException
sTargetFolderID
- the ID of the target foldersNewName
- the name for the new folder (or null
to keep the same name) (may not include '\' characters)
DominoException
public void serverMoveTo(java.lang.String sFolderID) throws DominoException
FolderType.INBOX
FolderType.TRASH
FolderType.DRAFTS
FolderType.SENT
If an attempt is made to move this folder
to a location where a folder already exists with the
same name,
a FolderAlreadyExistsException
is thrown.
Note: The target folder must be able to hold sub-folders.
sFolderID
- the ID of the target folder
DominoException
FolderType
,
holdFolders()
public Folder serverCreateFolder(java.lang.String sName, PropertyKey[] keys) throws DominoException
sName
- the name of the new folder (use '\' characters to create a folder hierarchy)keys
- the properties to bring back from the new folder or null
to not retrieve the newly created folder
DominoException
PropertyKey.FOLDER_TYPE
,
holdFolders()
public java.lang.String getID() throws DominoException
DominoException
PropertyKey.FOLDER_ID
public boolean holdFolders() throws DominoException
FolderType.INBOX
FolderType.TRASH
FolderType.DRAFTS
FolderType.SENT
true
if this folder can hold sub-folders; false
otherwise
DominoException
PropertyKey.FOLDER_TYPE
public boolean holdMemos() throws DominoException
FolderType.DRAFTS
FolderType.SENT
true
if this folder can hold memos; false
otherwise
DominoException
PropertyKey.FOLDER_TYPE
public java.lang.String getName() throws DominoException
DominoException
PropertyKey.FOLDER_NAME
public void setName(java.lang.String sName) throws DominoException
sName
- the folder name (may not be null
)
DominoException
PropertyKey.FOLDER_NAME
public java.lang.String getAbsoluteName() throws DominoException
DominoException
PropertyKey.FOLDER_ABSOLUTE_NAME
public int getSubFolderCount() throws DominoException
DominoException
PropertyKey.FOLDER_SUBFOLDER_COUNT
public Folder[] serverGetSubFolders(int iDepth, PropertyKey[] keys) throws DominoException
iDepth
- the depth of folders to retrieve (N for depth of N, -1 for infinite depth)keys
- the properties to bring back from the new folder or null
to not retrieve the newly created folder
DominoException
public int getDepth() throws DominoException
DominoException
PropertyKey.FOLDER_DEPTH
public FolderType getFolderType() throws DominoException
DominoException
PropertyKey.FOLDER_TYPE
public boolean hasSubFolders() throws DominoException
true
if the folder has subfolders
DominoException
PropertyKey.FOLDER_HAS_SUBFOLDERS
public int serverGetMemoCount() throws DominoException
getMemoCount()
and property
PropertyKey.FOLDER_MEMO_COUNT
DominoException
public Memo[] serverGetMemos(int iStartIndex, int iEndIndex, PropertyKey[] keys, SortProperty sortProp) throws DominoException
iStartIndex
and iEndIndex
starting at 0.
iStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for allkeys
- the properties to bring back from the memosortProp
- the property to sort by or null
for default sorting
DominoException
public int getUnreadMemoCount() throws DominoException
DominoException
PropertyKey.FOLDER_MEMO_UNREAD_COUNT
public int getMemoCount() throws DominoException
DominoException
PropertyKey.FOLDER_MEMO_COUNT
public java.lang.String getParentFolderID() throws DominoException
null
if parent is root folder
DominoException
PropertyKey.FOLDER_PARENT_FOLDER_ID
public java.lang.String toString()
toString
in class java.lang.Object
PropertyKey.FOLDER_NAME
,
PropertyKey.FOLDER_ID
,
PropertyKey.FOLDER_ABSOLUTE_NAME
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |