public class UserConfiguration extends Object
Constructor and Description |
---|
UserConfiguration(ExchangeService service)
Initializes a new instance of
|
UserConfiguration(ExchangeService service,
EnumSet<UserConfigurationProperties> requestedProperties)
Initializes a new instance of
|
Modifier and Type | Method and Description |
---|---|
static UserConfiguration |
bind(ExchangeService service,
String name,
FolderId parentFolderId,
UserConfigurationProperties properties)
Binds to an existing user configuration and loads the specified
property.
|
static UserConfiguration |
bind(ExchangeService service,
String name,
WellKnownFolderName parentFolderName,
UserConfigurationProperties properties)
Binds to an existing user configuration and loads the specified
property.
|
void |
delete()
Deletes the user configuration.
|
byte[] |
getBinaryData()
Gets the binary data of the user configuration.
|
UserConfigurationDictionary |
getDictionary()
Gets the dictionary of the user configuration.
|
boolean |
getIsDirty()
Gets a value indicating whether this user configuration has been
modified.
|
ItemId |
getItemId()
Gets the Id of the user configuration.
|
String |
getName()
Gets the name of the user configuration.
|
FolderId |
getParentFolderId()
Gets the Id of the folder containing the user configuration.
|
byte[] |
getXmlData()
Gets the xml data of the user configuration.
|
void |
load(UserConfigurationProperties properties)
Loads the specified property on the user configuration.
|
void |
loadFromXml(EwsServiceXmlReader reader)
Loads from XML.
|
void |
save(String name,
FolderId parentFolderId)
Saves the user configuration.
|
void |
save(String name,
WellKnownFolderName parentFolderName)
Saves the user configuration.
|
void |
setBinaryData(byte[] value)
Sets the binary data.
|
void |
setName(String value)
Sets the name.
|
void |
setParentFolderId(FolderId value)
Sets the parent folder id.
|
void |
setXmlData(byte[] value)
Sets the xml data.
|
void |
update()
Updates the user configuration by applying local changes to the Exchange
server.
|
void |
writeToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName)
Writes to XML.
|
static void |
writeUserConfigurationNameToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String name,
FolderId parentFolderId)
Writes to Xml.
|
public UserConfiguration(ExchangeService service) throws Exception
service
- The service to which the user configuration is bound.Exception
- the exceptionpublic UserConfiguration(ExchangeService service, EnumSet<UserConfigurationProperties> requestedProperties) throws Exception
service
- The service to which the user configuration is bound.requestedProperties
- The property requested for this user configuration.Exception
- the exceptionpublic static void writeUserConfigurationNameToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String name, FolderId parentFolderId) throws Exception
writer
- The writer.xmlNamespace
- The XML namespace.name
- The user configuration name.parentFolderId
- The Id of the folder containing the user configuration.Exception
- the exceptionpublic FolderId getParentFolderId()
public void setParentFolderId(FolderId value)
value
- the new parent folder idpublic UserConfigurationDictionary getDictionary()
public byte[] getXmlData() throws PropertyException
PropertyException
- the property exceptionpublic void setXmlData(byte[] value)
value
- the new xml datapublic byte[] getBinaryData() throws PropertyException
PropertyException
- the property exceptionpublic void setBinaryData(byte[] value)
value
- the new binary datapublic boolean getIsDirty()
public static UserConfiguration bind(ExchangeService service, String name, FolderId parentFolderId, UserConfigurationProperties properties) throws IndexOutOfBoundsException, Exception
service
- The service to which the user configuration is bound.name
- The name of the user configuration.parentFolderId
- The Id of the folder containing the user configuration.properties
- The property to load.IndexOutOfBoundsException
- the index out of bounds exceptionException
- the exceptionpublic static UserConfiguration bind(ExchangeService service, String name, WellKnownFolderName parentFolderName, UserConfigurationProperties properties) throws IndexOutOfBoundsException, Exception
service
- The service to which the user configuration is bound.name
- The name of the user configuration.parentFolderName
- The name of the folder containing the user configuration.properties
- The property to load.IndexOutOfBoundsException
- the index out of bounds exceptionException
- the exceptionpublic void save(String name, FolderId parentFolderId) throws Exception
name
- The name of the user configuration.parentFolderId
- The Id of the folder in which to save the user configuration.Exception
- the exceptionpublic void save(String name, WellKnownFolderName parentFolderName) throws Exception
name
- The name of the user configuration.parentFolderName
- The name of the folder in which to save the user
configuration.Exception
- the exceptionpublic void update() throws Exception
Exception
- the exceptionpublic void delete() throws Exception
Exception
- the exceptionpublic void load(UserConfigurationProperties properties) throws Exception
properties
- The property to load.Exception
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
writer
- The writer.xmlNamespace
- The XML namespace.xmlElementName
- Name of the XML element.Exception
- the exceptionpublic void loadFromXml(EwsServiceXmlReader reader) throws Exception
reader
- The reader.Exception
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.