public class CalendarPermission
extends java.lang.Object
| Constructor and Description |
|---|
CalendarPermission()
Initializes a new instance of the CalendarPermission class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateItems()
Gets whether a user has permission to create items in a folder.
|
boolean |
canCreateSubFolders()
Gets whether a user has permission to create subfolders in a folder.
|
PermissionAction |
getDeleteItems()
Gets whether a user has permission to delete items in a folder.
|
PermissionAction |
getEditItems()
Gets whether a user has permission to edit items in a folder.
|
CalendarPermissionLevel |
getLevel()
Gets the permission level that a user has on a Calendar folder.
|
CalendarPermissionReadAccess |
getReadItems()
Gets whether a user has permission to read items within a calendar folder.
|
UserId |
getUserId()
Gets a delegate user or a user who has folder access permissions.
|
boolean |
isFolderContact()
Gets whether a user is a contact for a folder.
|
boolean |
isFolderOwner()
Gets whether a user is the owner of a folder.
|
boolean |
isFolderVisible()
Gets whether a user can view a folder.
|
void |
setCanCreateItems(boolean canCreateItems)
Sets whether a user has permission to create items in a folder.
|
void |
setCanCreateSubFolders(boolean canCreateSubFolders)
Sets whether a user has permission to create subfolders in a folder.
|
void |
setDeleteItems(PermissionAction deleteItems)
Sets whether a user has permission to delete items in a folder.
|
void |
setEditItems(PermissionAction editItems)
Sets whether a user has permission to edit items in a folder.
|
void |
setFolderContact(boolean isFolderContact)
Sets whether a user is a contact for a folder.
|
void |
setFolderOwner(boolean isFolderOwner)
Sets whether a user is the owner of a folder.
|
void |
setFolderVisible(boolean isFolderVisible)
Sets whether a user can view a folder.
|
void |
setLevel(CalendarPermissionLevel level)
Sets the permission level that a user has on a Calendar folder.
|
void |
setReadItems(CalendarPermissionReadAccess readItems)
Sets whether a user has permission to read items within a calendar folder.
|
void |
setUserId(UserId userId)
Sets a delegate user or a user who has folder access permissions.
|
java.lang.String |
toString()
Converts the value of the current CalendarPermission object to its equivalent string representation.
|
public CalendarPermission()
public java.lang.String toString()
toString in class java.lang.Objectpublic UserId getUserId()
public void setUserId(UserId userId)
userId - the new user idpublic boolean canCreateItems()
public void setCanCreateItems(boolean canCreateItems)
canCreateItems - the new can create itemspublic boolean canCreateSubFolders()
public void setCanCreateSubFolders(boolean canCreateSubFolders)
canCreateSubFolders - the new can create sub folderspublic boolean isFolderOwner()
public void setFolderOwner(boolean isFolderOwner)
isFolderOwner - the new folder ownerpublic boolean isFolderVisible()
public void setFolderVisible(boolean isFolderVisible)
isFolderVisible - the new folder visiblepublic boolean isFolderContact()
public void setFolderContact(boolean isFolderContact)
isFolderContact - the new folder contactpublic PermissionAction getEditItems()
public void setEditItems(PermissionAction editItems)
editItems - the new edits the itemspublic PermissionAction getDeleteItems()
public void setDeleteItems(PermissionAction deleteItems)
deleteItems - the new delete itemspublic CalendarPermissionReadAccess getReadItems()
public void setReadItems(CalendarPermissionReadAccess readItems)
readItems - the new read itemspublic CalendarPermissionLevel getLevel()
public void setLevel(CalendarPermissionLevel level)
level - the new level