public final class FolderPermissionCollection extends ComplexPropertyCollection<FolderPermission>
| Constructor and Description |
|---|
FolderPermissionCollection(Folder owner)
Initializes a new instance of the FolderPermissionCollection class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(FolderPermission permission)
Adds a permission to the collection.
|
void |
addFolderRange(Iterator<FolderPermission> permissions)
Adds the specified permissions to the collection.
|
void |
clear()
Clears this collection.
|
protected FolderPermission |
createComplexProperty(String xmlElementName)
Creates the complex property.
|
protected String |
getCollectionItemXmlElementName(FolderPermission complexProperty)
Gets the name of the collection item XML element.
|
Collection<String> |
getUnknownEntries()
Gets a list of unknown user Ids in the collection.
|
void |
loadFromXml(EwsServiceXmlReader reader,
String localElementName)
Loads from XML.
|
boolean |
remove(FolderPermission permission)
Removes a permission from the collection.
|
void |
removeAt(int index)
Removes a permission from the collection.
|
void |
validate()
Validates this instance.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the elements to XML.
|
clearChangeLog, complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, removeFromChangeLog, shouldWriteToXml, updateFromXml, writeDeleteUpdateToXml, writeSetUpdateToXml, writeToXmladdOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, writeAttributesToXml, writeToXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FolderPermissionCollection(Folder owner)
owner - the ownerprotected String getCollectionItemXmlElementName(FolderPermission complexProperty)
getCollectionItemXmlElementName in class ComplexPropertyCollection<FolderPermission>complexProperty - the complex propertypublic void loadFromXml(EwsServiceXmlReader reader, String localElementName) throws Exception
loadFromXml in class ComplexPropertyCollection<FolderPermission>reader - the readerlocalElementName - the local element nameException - the exceptionpublic void validate()
validate in interface ISelfValidatevalidate in class ComplexPropertypublic void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml in class ComplexPropertyCollection<FolderPermission>writer - the writerException - the exceptionprotected FolderPermission createComplexProperty(String xmlElementName)
createComplexProperty in class ComplexPropertyCollection<FolderPermission>xmlElementName - the xml element namepublic void add(FolderPermission permission)
permission - the permissionpublic void addFolderRange(Iterator<FolderPermission> permissions) throws Exception
permissions - the permissionsException - the exceptionpublic void clear()
public boolean remove(FolderPermission permission)
permission - the permissionpublic void removeAt(int index)
index - the indexpublic Collection<String> getUnknownEntries()
Copyright © 2012–2015 Microsoft. All rights reserved.