Class UserConfiguration


  • public class UserConfiguration
    extends Object
    Represents an object that can be used to store user-defined configuration settings.
    • Method Detail

      • getName

        public String getName()
        Gets the name of the user configuration.
        Returns:
        the name
      • setName

        public void setName​(String value)
        Sets the name.
        Parameters:
        value - the new name
      • getParentFolderId

        public FolderId getParentFolderId()
        Gets the Id of the folder containing the user configuration.
        Returns:
        the parent folder id
      • setParentFolderId

        public void setParentFolderId​(FolderId value)
        Sets the parent folder id.
        Parameters:
        value - the new parent folder id
      • getItemId

        public ItemId getItemId()
        Gets the Id of the user configuration.
        Returns:
        the item id
      • setXmlData

        public void setXmlData​(byte[] value)
        Sets the xml data.
        Parameters:
        value - the new xml data
      • setBinaryData

        public void setBinaryData​(byte[] value)
        Sets the binary data.
        Parameters:
        value - the new binary data
      • getIsDirty

        public boolean getIsDirty()
        Gets a value indicating whether this user configuration has been modified.
        Returns:
        the checks if is dirty
      • save

        public void save​(String name,
                         FolderId parentFolderId)
                  throws Exception
        Saves the user configuration. Calling this method results in a call to EWS.
        Parameters:
        name - The name of the user configuration.
        parentFolderId - The Id of the folder in which to save the user configuration.
        Throws:
        Exception - the exception
      • save

        public void save​(String name,
                         WellKnownFolderName parentFolderName)
                  throws Exception
        Saves the user configuration. Calling this method results in a call to EWS.
        Parameters:
        name - The name of the user configuration.
        parentFolderName - The name of the folder in which to save the user configuration.
        Throws:
        Exception - the exception
      • update

        public void update()
                    throws Exception
        Updates the user configuration by applying local changes to the Exchange server. Calling this method results in a call to EWS
        Throws:
        Exception - the exception
      • delete

        public void delete()
                    throws Exception
        Deletes the user configuration. Calling this method results in a call to EWS.
        Throws:
        Exception - the exception
      • load

        public void load​(UserConfigurationProperties properties)
                  throws Exception
        Loads the specified property on the user configuration. Calling this method results in a call to EWS.
        Parameters:
        properties - The property to load.
        Throws:
        Exception - the exception