|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ServiceObject
microsoft.exchange.webservices.data.Folder
public class Folder
Represents a generic folder.
| Constructor Summary | |
|---|---|
Folder(ExchangeService service)
Initializes an unsaved local instance of |
|
| Method Summary | |
|---|---|
static Folder |
bind(ExchangeService service,
FolderId id)
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties. |
static Folder |
bind(ExchangeService service,
FolderId id,
PropertySet propertySet)
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties. |
static Folder |
bind(ExchangeService service,
WellKnownFolderName name)
* Binds to an existing folder, whatever its actual type is, and loads the specified set of properties. |
static Folder |
bind(ExchangeService service,
WellKnownFolderName name,
PropertySet propertySet)
Binds to an existing folder, whatever its actual type is, and loads the specified set of properties. |
Folder |
copy(FolderId destinationFolderId)
Copies this folder into a specific folder. |
Folder |
copy(WellKnownFolderName destinationFolderName)
Copies this folder into the specified folder. |
void |
delete(DeleteMode deleteMode)
Deletes the folder. |
void |
empty(DeleteMode deletemode,
boolean deleteSubFolders)
Empties the folder. |
FindFoldersResults |
findFolders(FolderView view)
Obtains a list of folders by searching the sub-folders of this folder. |
FindFoldersResults |
findFolders(SearchFilter searchFilter,
FolderView view)
Obtains a list of folders by searching the sub-folders of this folder. |
FindItemsResults<Item> |
findItems(ItemView view)
Find items. |
GroupedFindItemsResults<Item> |
findItems(ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of this folder. |
FindItemsResults<Item> |
findItems(SearchFilter searchFilter,
ItemView view)
Find items. |
GroupedFindItemsResults<Item> |
findItems(SearchFilter searchFilter,
ItemView view,
Grouping groupBy)
Find items. |
FindItemsResults<Item> |
findItems(String queryString,
ItemView view)
Find items. |
GroupedFindItemsResults<Item> |
findItems(String queryString,
ItemView view,
Grouping groupBy)
Find items. |
protected String |
getChangeXmlElementName()
Gets the name of the change XML element. |
int |
getChildFolderCount()
Gets the number of child folders this folder has. |
protected String |
getDeleteFieldXmlElementName()
Gets the name of the delete field XML element. |
String |
getDisplayName()
Gets the display name of the folder. |
EnumSet<EffectiveRights> |
getEffectiveRights()
Gets a value indicating the effective rights the current authenticated user has on the folder. |
protected ExtendedPropertyCollection |
getExtendedProperties()
True if property was removed. |
ExtendedPropertyCollection |
getExtendedPropertiesForService()
Gets a list of extended properties associated with the folder. |
String |
getFolderClass()
Gets the custom class name of this folder. |
FolderId |
getId()
Gets the Id of the folder. |
protected PropertyDefinition |
getIdPropertyDefinition()
Get the property definition for the Id property. |
ManagedFolderInformation |
getManagedFolderInformation()
Gets the Email Lifecycle Management (ELC) information associated with the folder. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
FolderId |
getParentFolderId()
Gets the Id of this folder's parent folder. |
FolderPermissionCollection |
getPermissions()
Gets a list of permissions for the folder. |
protected ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object. |
protected String |
getSetFieldXmlElementName()
Gets the name of the set field XML element. |
int |
getTotalCount()
Gets the total number of items contained in the folder. |
int |
getUnreadCount()
Gets the number of unread items in the folder. |
protected void |
internalDelete(DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
Deletes the object. |
protected void |
internalLoad(PropertySet propertySet)
Loads the specified set of properties on the object. |
Folder |
move(FolderId destinationFolderId)
Moves this folder to a specific folder. |
Folder |
move(WellKnownFolderName destinationFolderName)
Moves this folder to a specific folder. |
boolean |
removeExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition)
Removes an extended property. |
void |
save(FolderId parentFolderId)
Saves this folder in a specific folder. |
void |
save(WellKnownFolderName parentFolderName)
Saves this folder in a specific folder. |
void |
setDisplayName(String value)
Sets the display name of the folder. |
void |
setExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition,
Object value)
Sets the extended property. |
void |
setFolderClass(String value)
Sets the custom class name of this folder. |
void |
update()
Applies the local changes that have been made to this folder. |
protected void |
validate()
Validates this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Folder(ExchangeService service)
throws Exception
service - EWS service to which this object belongs.
Exception - the exception| Method Detail |
|---|
public static Folder bind(ExchangeService service,
FolderId id,
PropertySet propertySet)
throws Exception
service - The service to use to bind to the folder.id - The Id of the folder to bind to.propertySet - The set of properties to load.
Exception - the exception
public static Folder bind(ExchangeService service,
FolderId id)
throws Exception
service - , The service to use to bind to the folder.id - , The Id of the folder to bind to.
Exception - the exception
public static Folder bind(ExchangeService service,
WellKnownFolderName name,
PropertySet propertySet)
throws Exception
service - The service to use to bind to the folder.name - The name of the folder to bind to.propertySet - The set of properties to load.
Exception - the exception
public static Folder bind(ExchangeService service,
WellKnownFolderName name)
throws Exception
service - The service to use to bind to the folder.name - The name of the folder to bind to.
Exception - the exception
protected void validate()
throws Exception
validate in class ServiceObjectException - the exceptionprotected ServiceObjectSchema getSchema()
getSchema in class ServiceObjectprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion in class ServiceObjectprotected String getChangeXmlElementName()
getChangeXmlElementName in class ServiceObjectprotected String getSetFieldXmlElementName()
getSetFieldXmlElementName in class ServiceObjectprotected String getDeleteFieldXmlElementName()
getDeleteFieldXmlElementName in class ServiceObject
protected void internalLoad(PropertySet propertySet)
throws Exception
internalLoad in class ServiceObjectpropertySet - The properties to load.
Exception - the exception
protected void internalDelete(DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
throws Exception
internalDelete in class ServiceObjectdeleteMode - the delete modesendCancellationsMode - Indicates whether meeting cancellation messages should be
sent.affectedTaskOccurrences - Indicate which occurrence of a recurring task should be
deleted.
Exception - the exception
public void delete(DeleteMode deleteMode)
throws Exception
deleteMode - the delete mode
Exception - the exception
public void empty(DeleteMode deletemode,
boolean deleteSubFolders)
throws Exception
deletemode - the delete mode
deleteSubFolders - Indicates whether sub-folders should also be deleted.
Exception
public void save(FolderId parentFolderId)
throws Exception
parentFolderId - The Id of the folder in which to save this folder.
Exception - the exception
public void save(WellKnownFolderName parentFolderName)
throws Exception
parentFolderName - The name of the folder in which to save this folder.
Exception - the exception
public void update()
throws Exception
Exception - the exception
public Folder copy(FolderId destinationFolderId)
throws Exception
destinationFolderId - The Id of the folder in which to copy this folder.
Exception - the exception
public Folder copy(WellKnownFolderName destinationFolderName)
throws Exception
destinationFolderName - The name of the folder in which to copy this folder.
Exception - the exception
public Folder move(FolderId destinationFolderId)
throws Exception
destinationFolderId - The Id of the folder in which to move this folder.
Exception - the exception
public Folder move(WellKnownFolderName destinationFolderName)
throws Exception
destinationFolderName - The name of the folder in which to move this folder.
Exception - the exception
public FindItemsResults<Item> findItems(SearchFilter searchFilter,
ItemView view)
throws Exception
searchFilter - The search filter. Available search filter classes include
SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionview - The view controlling the number of items returned.
Exception - the exception
public FindItemsResults<Item> findItems(String queryString,
ItemView view)
throws Exception
queryString - query string to be used for indexed searchview - The view controlling the number of items returned.
Exception - the exception
public FindItemsResults<Item> findItems(ItemView view)
throws Exception
view - The view controlling the number of items returned.
Exception - the exception
public GroupedFindItemsResults<Item> findItems(SearchFilter searchFilter,
ItemView view,
Grouping groupBy)
throws Exception
searchFilter - The search filter. Available search filter classes include
SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionview - The view controlling the number of items returned.groupBy - The group by.
Exception - the exception
public GroupedFindItemsResults<Item> findItems(String queryString,
ItemView view,
Grouping groupBy)
throws Exception
queryString - query string to be used for indexed searchview - The view controlling the number of items returned.groupBy - The group by.
Exception - the exception
public FindFoldersResults findFolders(FolderView view)
throws Exception
view - The view controlling the number of folders returned.
Exception - the exception
public FindFoldersResults findFolders(SearchFilter searchFilter,
FolderView view)
throws Exception
searchFilter - The search filter. Available search filter classes include
SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionview - The view controlling the number of folders returned.
Exception - the exception
public GroupedFindItemsResults<Item> findItems(ItemView view,
Grouping groupBy)
throws Exception
view - The view controlling the number of folders returned.groupBy - The grouping criteria.
Exception - the exceptionprotected PropertyDefinition getIdPropertyDefinition()
getIdPropertyDefinition in class ServiceObject
public void setExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition,
Object value)
throws Exception
extendedPropertyDefinition - The extended property definition.value - The value.
Exception - the exception
public boolean removeExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition)
throws Exception
extendedPropertyDefinition - The extended property definition.
Exception - the exception
protected ExtendedPropertyCollection getExtendedProperties()
throws Exception
getExtendedProperties in class ServiceObjectException - the exceptionpublic FolderId getId()
getId in class ServiceObject
public FolderId getParentFolderId()
throws ServiceLocalException
ServiceLocalException - the service local exception
public int getChildFolderCount()
throws NumberFormatException,
ServiceLocalException
NumberFormatException - the number format exception
ServiceLocalException - the service local exception
public String getDisplayName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setDisplayName(String value)
throws Exception
value - Name of the folder
Exception - the exception
public String getFolderClass()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setFolderClass(String value)
throws Exception
value - name of the folder
Exception - the exception
public int getTotalCount()
throws NumberFormatException,
ServiceLocalException
NumberFormatException - the number format exception
ServiceLocalException - the service local exception
public ExtendedPropertyCollection getExtendedPropertiesForService()
throws ServiceLocalException
ServiceLocalException - the service local exception
public ManagedFolderInformation getManagedFolderInformation()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EnumSet<EffectiveRights> getEffectiveRights()
throws ServiceLocalException
ServiceLocalException - the service local exception
public FolderPermissionCollection getPermissions()
throws ServiceLocalException
ServiceLocalException - the service local exception
public int getUnreadCount()
throws NumberFormatException,
ServiceLocalException
NumberFormatException - the number format exception
ServiceLocalException - the service local exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||