public final class FolderPermission extends ComplexProperty implements IComplexPropertyChangedDelegate
Constructor and Description |
---|
FolderPermission()
Initializes a new instance of the FolderPermission class.
|
FolderPermission(StandardUser standardUser,
FolderPermissionLevel permissionLevel)
Initializes a new instance of the FolderPermission class.
|
FolderPermission(String primarySmtpAddress,
FolderPermissionLevel permissionLevel)
Initializes a new instance of the FolderPermission class.
|
FolderPermission(UserId userId,
FolderPermissionLevel permissionLevel)
Initializes a new instance of the FolderPermission class.
|
Modifier and Type | Method and Description |
---|---|
void |
complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed.
|
boolean |
getCanCreateItems()
Gets a value indicating whether the user can create new item.
|
boolean |
getCanCreateSubFolders()
Gets a value indicating whether the user can create
sub-folder.
|
PermissionScope |
getDeleteItems()
Gets a value indicating if/how the user can delete existing
item.
|
FolderPermissionLevel |
getDisplayPermissionLevel()
Gets the permission level that Outlook would display for this folder
permission.
|
PermissionScope |
getEditItems()
Gets a value indicating if/how the user can edit existing
item.
|
boolean |
getIsFolderContact()
Gets a value indicating whether the user is a contact for the
folder.
|
boolean |
getIsFolderOwner()
Gets a value indicating whether the user owns the folder.
|
boolean |
getIsFolderVisible()
Gets a value indicating whether the folder is visible to the
user.
|
FolderPermissionLevel |
getPermissionLevel()
Gets the permission level.
|
FolderPermissionReadAccess |
getReadItems()
Gets the read item access permission.
|
UserId |
getUserId()
Gets the Id of the user the permission applies to.
|
void |
loadFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
Loads from XML.
|
void |
setCanCreateItems(boolean value)
Sets the can create item.
|
void |
setCanCreateSubFolders(boolean value)
Sets the can create sub folder.
|
void |
setDeleteItems(PermissionScope value)
Sets the delete item.
|
void |
setEditItems(PermissionScope value)
Sets the edits the item.
|
void |
setIsFolderContact(boolean value)
Sets the checks if is folder contact.
|
void |
setIsFolderOwner(boolean value)
Sets the checks if is folder owner.
|
void |
setIsFolderVisible(boolean value)
Sets the checks if is folder visible.
|
void |
setPermissionLevel(FolderPermissionLevel value)
Sets the permission level.
|
void |
setReadItems(FolderPermissionReadAccess value)
Sets the read item.
|
void |
setUserId(UserId value)
Sets the user id.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer,
boolean isCalendarFolder)
Writes elements to XML.
|
protected void |
writeToXml(EwsServiceXmlWriter writer,
String xmlElementName,
boolean isCalendarFolder)
Writes to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
public FolderPermission()
public FolderPermission(UserId userId, FolderPermissionLevel permissionLevel) throws Exception
userId
- the user idpermissionLevel
- the permission levelException
- the exceptionpublic FolderPermission(String primarySmtpAddress, FolderPermissionLevel permissionLevel)
primarySmtpAddress
- the primary smtp addresspermissionLevel
- the permission levelpublic FolderPermission(StandardUser standardUser, FolderPermissionLevel permissionLevel)
standardUser
- the standard userpermissionLevel
- the permission levelpublic UserId getUserId()
public void complexPropertyChanged(ComplexProperty complexProperty)
IComplexPropertyChangedDelegate
complexPropertyChanged
in interface IComplexPropertyChangedDelegate
complexProperty
- the complex propertypublic boolean getCanCreateItems()
public void setCanCreateItems(boolean value)
value
- the new can create itempublic boolean getCanCreateSubFolders()
public void setCanCreateSubFolders(boolean value)
value
- the new can create sub folderpublic boolean getIsFolderOwner()
public void setIsFolderOwner(boolean value)
value
- the new checks if is folder ownerpublic boolean getIsFolderVisible()
public void setIsFolderVisible(boolean value)
value
- the new checks if is folder visiblepublic boolean getIsFolderContact()
public void setIsFolderContact(boolean value)
value
- the new checks if is folder contactpublic PermissionScope getEditItems()
public void setEditItems(PermissionScope value)
value
- the new edits the itempublic PermissionScope getDeleteItems()
public void setDeleteItems(PermissionScope value)
value
- the new delete itempublic FolderPermissionReadAccess getReadItems()
public void setReadItems(FolderPermissionReadAccess value)
value
- the new read itempublic FolderPermissionLevel getPermissionLevel()
public void setPermissionLevel(FolderPermissionLevel value) throws ServiceLocalException
value
- the new permission levelServiceLocalException
- the service local exceptionpublic FolderPermissionLevel getDisplayPermissionLevel()
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void loadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
loadFromXml
in class ComplexProperty
reader
- the readerxmlNamespace
- the xml namespacexmlElementName
- the xml element nameException
- the exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer, boolean isCalendarFolder) throws Exception
writer
- the writerisCalendarFolder
- the is calendar folderException
- the exceptionprotected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName, boolean isCalendarFolder) throws Exception
writer
- the writerxmlElementName
- the xml element nameisCalendarFolder
- the is calendar folderException
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.