|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.misc.UserConfiguration
public class UserConfiguration
Represents an object that can be used to store user-defined configuration settings.
| Constructor Summary | |
|---|---|
UserConfiguration(ExchangeService service)
Initializes a new instance of |
|
UserConfiguration(ExchangeService service,
EnumSet<UserConfigurationProperties> requestedProperties)
Initializes a new instance of |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserConfiguration(ExchangeService service)
throws Exception
service - The service to which the user configuration is bound.
Exception - the exception
public 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 exception| Method Detail |
|---|
public 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 String getName()
public void setName(String value)
value - the new namepublic FolderId getParentFolderId()
public void setParentFolderId(FolderId value)
value - the new parent folder idpublic ItemId getItemId()
public UserConfigurationDictionary getDictionary()
public byte[] getXmlData()
throws PropertyException
PropertyException - the property exceptionpublic void setXmlData(byte[] value)
value - the new xml data
public 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 exception
Exception - the exception
public 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 exception
Exception - the exception
public 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 exception
public 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 exception
public void update()
throws Exception
Exception - the exception
public void delete()
throws Exception
Exception - the exception
public void load(UserConfigurationProperties properties)
throws Exception
properties - The property to load.
Exception - the exception
public 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 exception
public void loadFromXml(EwsServiceXmlReader reader)
throws Exception
reader - The reader.
Exception - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||