microsoft.exchange.webservices.data
Class DelegatePermissions

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.DelegatePermissions

public final class DelegatePermissions
extends ComplexProperty

Represents the permissions of a delegate user.


Constructor Summary
protected DelegatePermissions()
          * Initializes a new instance of the class.
 
Method Summary
 DelegateFolderPermissionLevel getCalendarFolderPermissionLevel()
          * Gets the delegate user's permission on the principal's calendar.
 DelegateFolderPermissionLevel getContactsFolderPermissionLevel()
          * Gets the delegate user's permission on the principal's contacts folder.
 DelegateFolderPermissionLevel getInboxFolderPermissionLevel()
          * Gets the delegate user's permission on the principal's inbox.
 DelegateFolderPermissionLevel getJournalFolderPermissionLevel()
          * Gets the delegate user's permission on the principal's journal folder.
 DelegateFolderPermissionLevel getNotesFolderPermissionLevel()
          * Gets the delegate user's permission on the principal's notes folder.
 DelegateFolderPermissionLevel getTasksFolderPermissionLevel()
          * Gets the delegate user's permission on the principal's tasks folder.
protected  void reset()
          Reset.
 void setCalendarFolderPermissionLevel(DelegateFolderPermissionLevel value)
          * sets the delegate user's permission on the principal's calendar.
 void setContactsFolderPermissionLevel(DelegateFolderPermissionLevel value)
          Sets the contacts folder permission level.
 void setInboxFolderPermissionLevel(DelegateFolderPermissionLevel value)
          Sets the inbox folder permission level.
 void setJournalFolderPermissionLevel(DelegateFolderPermissionLevel value)
          Sets the journal folder permission level.
 void setNotesFolderPermissionLevel(DelegateFolderPermissionLevel value)
          Sets the notes folder permission level.
 void setTasksFolderPermissionLevel(DelegateFolderPermissionLevel value)
          Sets the tasks folder permission level.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          * Tries to read element from XML.
protected  void validateAddDelegate()
          Validates this instance for AddDelegate.
protected  void validateUpdateDelegate()
          Validates this instance for UpdateDelegate.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          * Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatePermissions

protected DelegatePermissions()
* Initializes a new instance of the class.

Method Detail

getCalendarFolderPermissionLevel

public DelegateFolderPermissionLevel getCalendarFolderPermissionLevel()
* Gets the delegate user's permission on the principal's calendar.

Returns:
the calendar folder permission level

setCalendarFolderPermissionLevel

public void setCalendarFolderPermissionLevel(DelegateFolderPermissionLevel value)
* sets the delegate user's permission on the principal's calendar.

Parameters:
value - the new calendar folder permission level

getTasksFolderPermissionLevel

public DelegateFolderPermissionLevel getTasksFolderPermissionLevel()
* Gets the delegate user's permission on the principal's tasks folder.

Returns:
the tasks folder permission level

setTasksFolderPermissionLevel

public void setTasksFolderPermissionLevel(DelegateFolderPermissionLevel value)
Sets the tasks folder permission level.

Parameters:
value - the new tasks folder permission level

getInboxFolderPermissionLevel

public DelegateFolderPermissionLevel getInboxFolderPermissionLevel()
* Gets the delegate user's permission on the principal's inbox.

Returns:
the inbox folder permission level

setInboxFolderPermissionLevel

public void setInboxFolderPermissionLevel(DelegateFolderPermissionLevel value)
Sets the inbox folder permission level.

Parameters:
value - the new inbox folder permission level

getContactsFolderPermissionLevel

public DelegateFolderPermissionLevel getContactsFolderPermissionLevel()
* Gets the delegate user's permission on the principal's contacts folder.

Returns:
the contacts folder permission level

setContactsFolderPermissionLevel

public void setContactsFolderPermissionLevel(DelegateFolderPermissionLevel value)
Sets the contacts folder permission level.

Parameters:
value - the new contacts folder permission level

getNotesFolderPermissionLevel

public DelegateFolderPermissionLevel getNotesFolderPermissionLevel()
* Gets the delegate user's permission on the principal's notes folder.

Returns:
the notes folder permission level

setNotesFolderPermissionLevel

public void setNotesFolderPermissionLevel(DelegateFolderPermissionLevel value)
Sets the notes folder permission level.

Parameters:
value - the new notes folder permission level

getJournalFolderPermissionLevel

public DelegateFolderPermissionLevel getJournalFolderPermissionLevel()
* Gets the delegate user's permission on the principal's journal folder.

Returns:
the journal folder permission level

setJournalFolderPermissionLevel

public void setJournalFolderPermissionLevel(DelegateFolderPermissionLevel value)
Sets the journal folder permission level.

Parameters:
value - the new journal folder permission level

reset

protected void reset()
Reset.


tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
* Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
Returns true if element was read.
Throws:
java.lang.Exception - the exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws java.lang.Exception
* Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
java.lang.Exception - the exception

validateAddDelegate

protected void validateAddDelegate()
                            throws ServiceValidationException
Validates this instance for AddDelegate.

Throws:
ServiceValidationException

validateUpdateDelegate

protected void validateUpdateDelegate()
                               throws ServiceValidationException
Validates this instance for UpdateDelegate.

Throws:
ServiceValidationException