caltool.schedule
Enum Security

java.lang.Object
  extended by java.lang.Enum<Security>
      extended by caltool.schedule.Security
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Security>

public enum Security
extends java.lang.Enum<Security>

Security is one of four possible levels: Public, PublicTitle, Confidential, or Private. The levels specify the degree of visibility a scheduled item has to other users. For an appointment, task, or event, "other users" are defined as all users other than the user on whose calendar the scheduled item appears. For a meeting, "other users" are all users not on the Attendees list of the meeting. Public security means other users can see the scheduled item and all the information about the item. PublicTitle security means other users can see the title of the scheduled item but none of the other information about the item. Confidential security means other users can only see that a user is unavailable for the time period of a scheduled item; no other information about the scheduled item is visible. Since confidential security applies to a specific time period, it is meaningful only for appointments and meetings, not for tasks or events; tasks and events do not have specific time components. Private security means other users see no information at all about a scheduled item, not even that the item is scheduled. Note that private security hides a scheduled item from the ScheduleMeeting operation, q.v., so that a meeting may be scheduled at the same time as a private appointment. It is up to the user to handle this situation by accepting or refusing the scheduled meeting. Given the nature of private security, it does not apply to meetings. I.e., only appointments can have private security.


Enum Constant Summary
Confidential
          Confidential security means other users can only see that a user is unavailable for the time period of a scheduled item; no other information about the scheduled item is visible.
Private
          Private security means other users see no information at all about a scheduled item, not even that the item is scheduled.
Public
          Public security means other users can see the scheduled item and all the information about the item.
PublicTitle
          PublicTitle security means other users can see the title of the scheduled item but none of the other information about the item.
 
Method Summary
static Security valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Security[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Public

public static final Security Public
Public security means other users can see the scheduled item and all the information about the item.


PublicTitle

public static final Security PublicTitle
PublicTitle security means other users can see the title of the scheduled item but none of the other information about the item.


Confidential

public static final Security Confidential
Confidential security means other users can only see that a user is unavailable for the time period of a scheduled item; no other information about the scheduled item is visible. Since confidential security applies to a specific time period, it is meaningful only for appointments and meetings, not for tasks or events; tasks and events do not have specific time components.


Private

public static final Security Private
Private security means other users see no information at all about a scheduled item, not even that the item is scheduled. Note that private security hides a scheduled item from the ScheduleMeeting operation, q.v., so that a meeting may be scheduled at the same time as a private appointment. It is up to the user to handle this situation by accepting or refusing the scheduled meeting. Given the nature of private security, it does not apply to meetings. I.e., only appointments can have private security.

Method Detail

values

public static final Security[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Security c : Security.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Security valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name