|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.property.complex.ComplexProperty
microsoft.exchange.webservices.data.property.complex.FolderPermission
public final class FolderPermission
Represents a permission on a folder.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderPermission()
public FolderPermission(UserId userId,
FolderPermissionLevel permissionLevel)
throws Exception
userId - the user idpermissionLevel - the permission level
Exception - the exception
public FolderPermission(String primarySmtpAddress,
FolderPermissionLevel permissionLevel)
primarySmtpAddress - the primary smtp addresspermissionLevel - the permission level
public FolderPermission(StandardUser standardUser,
FolderPermissionLevel permissionLevel)
standardUser - the standard userpermissionLevel - the permission level| Method Detail |
|---|
public UserId getUserId()
public void setUserId(UserId value)
value - the new user idpublic void complexPropertyChanged(ComplexProperty complexProperty)
IComplexPropertyChangedDelegate
complexPropertyChanged in interface IComplexPropertyChangedDelegatecomplexProperty - 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 level
ServiceLocalException - the service local exceptionpublic FolderPermissionLevel getDisplayPermissionLevel()
public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXml in class ComplexPropertyreader - the reader
Exception - the exception
public void loadFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
throws Exception
loadFromXml in class ComplexPropertyreader - the readerxmlNamespace - the xml namespacexmlElementName - the xml element name
Exception - the exception
protected void writeElementsToXml(EwsServiceXmlWriter writer,
boolean isCalendarFolder)
throws Exception
writer - the writerisCalendarFolder - the is calendar folder
Exception - the exception
protected void writeToXml(EwsServiceXmlWriter writer,
String xmlElementName,
boolean isCalendarFolder)
throws Exception
writer - the writerxmlElementName - the xml element nameisCalendarFolder - the is calendar folder
Exception - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||