|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimx.nuggets.wcap.AccessControlEntry
public class AccessControlEntry
The data object that encapsulate the data of Access Control Entry. This object is used by CalendarProperty in the getACL() and setACL(). (ACL = Access Control List)
The Access Control Entry is not described in any standard for Internet Calendaring. It is a pure iPlanet idea. For more details, please refer to the Programming Guide and Administration Guide of iPlanet Calendar Server.
An Access Control Entry is composed of the following fields.
Constant Name | Original Value | User Type |
---|---|---|
WHO_ALL_USERS | "@" | All users |
WHO_PRIMARY | "@@p" | Primary owners of a calendar |
WHO_OWNERS | "@@o" | Owners of a calendar |
WHO_NON_OWNERS | "@@n" | Non-owners of a calendar |
By default, primary owners are the people who create the calendar or the people who has the write to modify and access all events/todos and properties of the calendar. Owners can only modify the events and todos, but not the property. Non-owners have no access at all. However, this type of default setting can be altered easily by the
Constant Name | Original Value | Description |
---|---|---|
FLAG_FOR_ALL | a | the ACE applies to all components and properties within the current calendar. |
FLAG_FOR_COMPONENTS | c | the ACE applies to the components only. |
FLAG_FOR_PROPERTIES | p | the ACE applies to the calendar properties only. |
Constant Name | Original Value | iPlanet Description |
---|---|---|
HOW_ON_BEHALF_CANCEL | c | Grants the user act-on-behalf-of cancel access. With cancel access, a user has the right to cancel components to which attendees have been invited on behalf of the calendar's primary owner. |
HOW_ON_BEHALF_REPLY | e | Grants the user act-on-behalf-of reply access. This grants a user the rights to accept or decline invitations on behalf of the calendar's primary owner. |
HOW_ON_BEHALF_INVITE | i | Grants the user act-on-behalf-of invite access. This grants a user the right to create and modify components in which other attendees have been invited on behalf of the calendar's primary owner |
HOW_DELETE | d | Grants the user delete access |
HOW_FREE_BUSY | f | Grants the user the right to view the calendar's free/busy time slot. |
HOW_READ | r | Grants the user read access. |
HOW_SCHEDULE | s | Grants the user schedule access. This means that request can be made, replies will be accepted and other scheduling interactions will be honoured. |
HOW_WRITE | w | Grants the user write access. This includes adding new items, deleting items, and modifying existing items. |
String howStr = "" // force String concatenation + AccessControlEntry.HOW_READ // read access privilege + AccessControlEntry.HOW_WRITE // write access privilege + AccessControlEntry.HOW_DELETE; // delete access privilege AccessControlEntry ace = new AccessControlEntry( "testuser", FLAG_FOR_ALL, howStr, GRANT
Field Summary | |
---|---|
static char |
FLAG_FOR_ALL
|
static char |
FLAG_FOR_COMPONENTS
|
static char |
FLAG_FOR_PROPERTIES
|
static char |
HOW_DELETE
|
static char |
HOW_FREE_BUSY
|
static char |
HOW_ON_BEHALF_CANCEL
|
static char |
HOW_ON_BEHALF_INVITE
|
static char |
HOW_ON_BEHALF_REPLY
|
static char |
HOW_READ
|
static char |
HOW_SCHEDULE
|
static char |
HOW_WRITE
|
static java.lang.String |
WHO_ALL_USERS
|
static java.lang.String |
WHO_NON_OWNERS
|
static java.lang.String |
WHO_OWNERS
|
static java.lang.String |
WHO_PRIMARY
|
Constructor Summary | |
---|---|
protected |
AccessControlEntry(java.lang.String entryStr)
For internal use. |
|
AccessControlEntry(java.lang.String who,
char flag,
java.lang.String how,
boolean grant)
Default constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object inObj)
Override the default java.lang.Object's equal command. |
boolean |
getGrant()
Get whether this ACE grant or deny the access privilege. |
java.lang.String |
getHow()
Get the access mechanism to be controlled by this ACE. |
char |
getScopeFlag()
Get the scope of this access control entry. |
java.lang.String |
getWho()
Get who is this ACE applying to. |
boolean |
isDelete()
Check whether the how string contains the entry for delete access. |
boolean |
isFreeBusy()
Check whether the how string contains the entry for free-busy access. |
boolean |
isOnBehalfCancel()
Check whether the how string contains the entry for "act-on-behalf-of" cancel access. |
boolean |
isOnBehalfInvite()
Check whether the how string contains the entry for "act-on-behalf-of" invite access. |
boolean |
isOnBehalfReply()
Check whether the how string contains the entry for "act-on-behalf-of" reply access. |
boolean |
isRead()
Check whether the how string contains the entry for read access. |
boolean |
isSchedule()
Check whether the how string contains the entry for schedule access. |
boolean |
isWrite()
Check whether the how string contains the entry for write access. |
void |
setGrant(boolean grant)
Set whether this ACE grant or deny the access privilege. |
void |
setHow(java.lang.String how)
Set the access mechanism to be controlled by this ACE. |
void |
setScopeFlag(char flag)
Set the scope of this access control entry would affect. |
void |
setWho(java.lang.String who)
Set who is this ACE applying to. |
java.lang.String |
toString()
Convert the component into a string that is used for constructing a WCAP query. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WHO_ALL_USERS
public static final java.lang.String WHO_PRIMARY
public static final java.lang.String WHO_OWNERS
public static final java.lang.String WHO_NON_OWNERS
public static final char FLAG_FOR_ALL
public static final char FLAG_FOR_COMPONENTS
public static final char FLAG_FOR_PROPERTIES
public static final char HOW_ON_BEHALF_CANCEL
public static final char HOW_ON_BEHALF_REPLY
public static final char HOW_ON_BEHALF_INVITE
public static final char HOW_DELETE
public static final char HOW_FREE_BUSY
public static final char HOW_READ
public static final char HOW_SCHEDULE
public static final char HOW_WRITE
Constructor Detail |
---|
public AccessControlEntry(java.lang.String who, char flag, java.lang.String how, boolean grant)
protected AccessControlEntry(java.lang.String entryStr)
Method Detail |
---|
public java.lang.String getWho()
The syntax of the field string is described in Detail of "Who" Field of the class description.
public void setWho(java.lang.String who)
The syntax of the field string is described in Detail of "Who" Field of the class description.
public char getScopeFlag()
The syntax of the field string is described in Detail of "Flag" Field of the class description.
public void setScopeFlag(char flag)
The syntax of the field string is described in Detail of "Flag" Field of the class description.
public java.lang.String getHow()
The syntax of the field string is described in Detail of "How" Field of the class description.
public void setHow(java.lang.String how)
The syntax of the field string is described in Detail of "How" Field of the class description.
public boolean getGrant()
The syntax of the field string is described in Detail of "Grant" Field of the class description.
public void setGrant(boolean grant)
The syntax of the field string is described in Detail of "Grant" Field of the class description.
grant
- true if the privileged is granted.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object inObj)
equals
in class java.lang.Object
public boolean isOnBehalfCancel()
public boolean isOnBehalfReply()
public boolean isOnBehalfInvite()
public boolean isDelete()
public boolean isFreeBusy()
public boolean isRead()
public boolean isSchedule()
public boolean isWrite()
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.