|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface represents an item within Exchange Store. Specific WebDAV properties are set by the Exchnage store, and are read-only. The following is a list of properties that are set by the Exchange store:
| Exchange Store Property | Java Enumeration | Java Methods |
DAV:comment |
DavProperty.COMMENT |
getComment()setComment(String) |
DAV:contentclass |
DavProperty.CONTENT_CLASS |
getContentClass()setContentClass(ContentClass) |
DAV:creationdate |
DavProperty.CREATION_DATE |
getCreationDate() |
DAV:displayname |
DavProperty.DISPLAY_NAME |
getDisplayName() |
DAV:getlastmodified |
DavProperty.GET_LAST_MODIFIED |
getDateLastModified() |
DAV:href |
DavProperty.HREF |
getHRef() |
DAV:isfolder |
DavProperty.IS_FOLDER |
isFolder() |
DAV:ishidden |
DavProperty.IS_HIDDEN |
isHidden()setHidden(boolean) |
DAV:isreadonly |
DavProperty.IS_READONLY |
isReadOnly()setReadOnly(boolean) |
DAV:isroot |
DavProperty.IS_ROOT |
isRoot() |
http://schemas.microsoft.com/exchange/permanenturl |
ExchangeProperty.PERMANENT_URL |
getPermanentURL() |
DAV:uid |
DavProperty.UID |
getUID() |
| Method Summary | |
IItem |
copy(Folder targetFolder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverCopyTo(String, boolean) |
void |
delete()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverDelete() |
java.lang.String |
getComment()
Gets the comment for this item. |
java.lang.String |
getContentClass()
Gets the content class of this item. |
java.util.Date |
getCreationDate()
Gets the date this item was created. |
java.util.Date |
getDateLastModified()
Gets the date this item was last modified. |
java.lang.String |
getDisplayName()
Gets the name that will be shown to the user in order to represent the resource. |
java.lang.String |
getFile()
Gets the filename of this item. |
java.lang.String |
getHRef()
Gets the absolute URL for this item. |
UniqueID |
getID()
Gets the globally unique identifier (GUID or ID) for this item. |
Folder |
getParentFolder()
Gets the parent folder for this item. |
java.lang.String |
getPermanentURL()
Gets a permanent URL that can always be used to access this item, even if the URL to the item changed by renaming or moving it. |
int |
getSize()
Gets the size of this item (in bytes). |
java.lang.String |
getType()
Gets the type of this item. |
java.lang.String |
getUID()
Gets the unique identifier (UID) for this item. |
boolean |
isFolder()
Gets whether this item is a folder. |
boolean |
isHidden()
Gets whether this item is hidden. |
boolean |
isReadOnly()
Gets whether this item can be modified or deleted. |
boolean |
isRoot()
Gets whether this item is a root folder. |
IItem |
move(Folder targetFolder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverMoveTo(String, boolean) |
void |
serverCopyTo(java.lang.String sDestinationPath,
boolean bServerRefresh)
Request the server to copy the item to the folder specifed by the given path. |
void |
serverDelete()
Requests the server to delete the item (the item is removed permanently). |
void |
serverMoveTo(java.lang.String sDestinationPath,
boolean bServerRefresh)
Request the server to move the item to the folder specifed by the given path. |
void |
serverUpdate(boolean bServerRefresh)
Requests the server to update the item of any changed properties. |
void |
setComment(java.lang.String sComment)
Sets the comment for this item. |
void |
setContentClass(ContentClass contentClass)
Sets the content class of this item. |
void |
setHidden(boolean bHidden)
Sets whether to hide the item. |
void |
setReadOnly(boolean bReadOnly)
Sets whether this item can be modified or deleted. |
void |
setType(IOutlookType type)
Sets the type of this item. |
void |
setType(java.lang.String sType)
Sets the type of this item. |
void |
update(boolean bServerRefresh)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverUpdate(boolean) |
| Method Detail |
public java.util.Date getDateLastModified()
DavProperty.GET_LAST_MODIFIEDpublic boolean isFolder()
true if the item is a folder.DavProperty.IS_FOLDERpublic boolean isHidden()
true if the item is hidden.DavProperty.IS_HIDDENpublic void setHidden(boolean bHidden)
true to hide the item; true otherwise.DavProperty.IS_HIDDENpublic java.lang.String getContentClass()
ExchangeRuntimeException - if this object has been released and can
no longer be used.DavProperty.CONTENT_CLASSpublic void setContentClass(ContentClass contentClass)
contentClass - the content class of the item.ExchangeRuntimeException - if this object has been released and can
no longer be used.DavProperty.CONTENT_CLASSpublic java.lang.String getFile()
ExchangeRuntimeException - if this object has been released and can
no longer be used
public Folder getParentFolder()
throws ExchangeException
ExchangeRuntimeException - if this object has been released and can
no longer be usedpublic java.lang.String getComment()
ExchangeRuntimeException - if this object has been released and can no longer be usedDavProperty.COMMENTpublic void setComment(java.lang.String sComment)
sComment - the comment for this itemExchangeRuntimeException - if this object has been released and can no longer be usedDavProperty.COMMENTpublic java.util.Date getCreationDate()
ExchangeRuntimeException - if this object has been released and can
no longer be usedDavProperty.CREATION_DATEpublic java.lang.String getDisplayName()
ExchangeRuntimeException - if this object has been released and can no longer be usedDavProperty.DISPLAY_NAMEpublic java.lang.String getHRef()
ExchangeRuntimeException - if this object has been released and can no longer be usedDavProperty.HREFpublic UniqueID getID()
ExchangeRuntimeException - if this object has been released and can no longer be usedpublic boolean isReadOnly()
true if item cannot be modified of deleted; false otherwiseDavProperty.IS_READONLYpublic void setReadOnly(boolean bReadOnly)
bReadOnly - true if item cannot be modified of deleted; false otherwise.DavProperty.IS_READONLYpublic boolean isRoot()
true if item is a root folder; false otherwiseExchangeRuntimeException - if this object has been released and can no longer be usedDavProperty.IS_ROOTpublic java.lang.String getPermanentURL()
The flat URL Name is of the form:
http://machine/vroot/-FlatUrlSpace-/textized-fid-of-folder/textized-mid-of-message (for messages), and
http://machine/vroot/-FlatUrlSpace-/textized-fid-of-folder (for folders)
- where the FID (ID for a folder) and MID (ID for a message) are in long format
(GUID + ID). They are unique on a server.
- There is a "-" between the GUID and the ID.
This field is read-only.
ExchangeRuntimeException - if this object has been released and can no longer be usedExchangeProperty.PERMANENT_URLpublic java.lang.String getUID()
Note: the unique identifier may contain characters that need
to be URL encoded prior to passing in a URL string. For example,
the '+' plus sign. In these cases, you might need to use java.net.URLEncoder.encode(String)
to encode the UID.
ExchangeRuntimeException - if this object has been released and can
no longer be usedDavProperty.UIDpublic int getSize()
ExchangeRuntimeException - if this object has been released and can no longer be usedpublic java.lang.String getType()
OutlookMessageType and OutlookFolderType for a partial
list of types.ExchangeRuntimeException - if this object has been released and can no longer be used.ExchangeProperty.OUTLOOK_MESSAGE_CLASS,
ExchangeProperty.OUTLOOK_FOLDER_CLASSpublic void setType(IOutlookType type)
OutlookMessageType and OutlookFolderType for a partial
list of types.type - the type of the item.ExchangeRuntimeException - if this object has been released and can no longer be used.ExchangeProperty.OUTLOOK_MESSAGE_CLASS,
ExchangeProperty.OUTLOOK_FOLDER_CLASSpublic void setType(java.lang.String sType)
OutlookMessageType and OutlookFolderType for a partial
list of types.sType - the type of the item.ExchangeRuntimeException - if this object has been released and can no longer be used.ExchangeProperty.OUTLOOK_MESSAGE_CLASS,
ExchangeProperty.OUTLOOK_FOLDER_CLASS
public void update(boolean bServerRefresh)
throws ExchangeException
serverUpdate(boolean)
Calling this method requesting a refresh (bServerRefresh = true)
causes a lookup to the Exchange store to retrieve the most current properties
(including those set by the Exchange store).
bServerRefresh - true to request a refresh performed
by the Exchange store; false otherwiseExchangeException - if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can no longer be used
public void serverUpdate(boolean bServerRefresh)
throws ExchangeException
If the item does not exist in the Exchange store, it is created, else the existing item is updated.
bServerRefresh - true requests the server to refresh
the propertiesExchangeException - if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can no longer be used
public void delete()
throws ExchangeException
serverDelete()
ExchangeException - if a problem occurred while connecting to or
interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can
no longer be used
public void serverDelete()
throws ExchangeException
ExchangeException - if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can no longer be used
public IItem move(Folder targetFolder)
throws ExchangeException
serverMoveTo(String, boolean)
Items$WebdavMessage$ItemListIterator.move()
instead). The iterator will throw a ConcurrentModificationException.targetFolder - the folder to move item toExchangeException - if a problem occurred while connecting to or
interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can
no longer be used
public void serverMoveTo(java.lang.String sDestinationPath,
boolean bServerRefresh)
throws ExchangeException
If the parameter bServerRefresh is set to true, this method
will make a request to Exchange store to refresh it propeties.
sDestinationPath - the destination path to move tobServerRefresh - true requests the server to refresh
the propertiesExchangeException - if a problem occurred while interacting with Exchange ServerExchangeRuntimeException - if this object has been released and can
no longer be used
public IItem copy(Folder targetFolder)
throws ExchangeException
serverCopyTo(String, boolean)
targetFolder - the folder to move item toExchangeException - if a problem occurred while connecting to or
interaction with Exchange ServerExchangeRuntimeException - if this object has been released and can
no longer be used
public void serverCopyTo(java.lang.String sDestinationPath,
boolean bServerRefresh)
throws ExchangeException
If the parameter bServerRefresh is set to true, this method
will make a request to Exchange store to refresh it propeties.
sDestinationPath - the destination path to copy tobServerRefresh - true requests the server to refresh
the propertiesExchangeException - if a problem occurred while interacting with Exchange ServerExchangeRuntimeException - if this object has been released and can
no longer be used
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||