|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.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(java.lang.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 items. |
boolean |
getCanCreateSubFolders()
* Gets a value indicating whether the user can create sub-folders. |
PermissionScope |
getDeleteItems()
* Gets a value indicating if/how the user can delete existing items. |
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 items. |
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 items access permission. |
UserId |
getUserId()
* Gets the Id of the user the permission applies to. |
protected void |
loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
java.lang.String xmlElementName)
Loads from XML. |
void |
setCanCreateItems(boolean value)
Sets the can create items. |
void |
setCanCreateSubFolders(boolean value)
Sets the can create sub folders. |
void |
setDeleteItems(PermissionScope value)
Sets the delete items. |
void |
setEditItems(PermissionScope value)
Sets the edits the items. |
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 items. |
void |
setUserId(UserId value)
Sets the user id. |
protected boolean |
tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Tries to read element from XML. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
boolean isCalendarFolder)
* Writes elements to XML. |
protected void |
writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
java.lang.String xmlElementName,
boolean isCalendarFolder)
* Writes to XML. |
Methods inherited from class microsoft.exchange.webservices.data.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 java.lang.Exception
userId
- the user idpermissionLevel
- the permission level
java.lang.Exception
- the exceptionpublic FolderPermission(java.lang.String primarySmtpAddress, FolderPermissionLevel permissionLevel)
primarySmtpAddress
- the primary smtp addresspermissionLevel
- the permission levelpublic FolderPermission(StandardUser standardUser, FolderPermissionLevel permissionLevel)
standardUser
- the standard userpermissionLevel
- the permission levelMethod Detail |
---|
public UserId getUserId()
public void setUserId(UserId value)
value
- the new user idpublic void complexPropertyChanged(ComplexProperty complexProperty)
complexProperty
- the complex propertypublic boolean getCanCreateItems()
public void setCanCreateItems(boolean value)
value
- the new can create itemspublic boolean getCanCreateSubFolders()
public void setCanCreateSubFolders(boolean value)
value
- the new can create sub folderspublic 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 itemspublic PermissionScope getDeleteItems()
public void setDeleteItems(PermissionScope value)
value
- the new delete itemspublic FolderPermissionReadAccess getReadItems()
public void setReadItems(FolderPermissionReadAccess value)
value
- the new read itemspublic FolderPermissionLevel getPermissionLevel()
public void setPermissionLevel(FolderPermissionLevel value) throws ServiceLocalException
value
- the new permission level
ServiceLocalException
- the service local exceptionpublic FolderPermissionLevel getDisplayPermissionLevel()
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the reader
java.lang.Exception
- the exceptionprotected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader, microsoft.exchange.webservices.data.XmlNamespace xmlNamespace, java.lang.String xmlElementName) throws java.lang.Exception
loadFromXml
in class ComplexProperty
reader
- the readerxmlNamespace
- the xml namespacexmlElementName
- the xml element name
java.lang.Exception
- the exceptionprotected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, boolean isCalendarFolder) throws java.lang.Exception
writer
- the writerisCalendarFolder
- the is calendar folder
java.lang.Exception
- the exceptionprotected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, java.lang.String xmlElementName, boolean isCalendarFolder) throws java.lang.Exception
writer
- the writerxmlElementName
- the xml element nameisCalendarFolder
- the is calendar folder
java.lang.Exception
- the exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |