caltool.schedule
Enum SimpleSecurity

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

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

Simple security has only two levels -- public or private. It applies to tasks and events. Cf. Security .


Enum Constant Summary
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.
 
Method Summary
static SimpleSecurity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SimpleSecurity[] 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 SimpleSecurity Public
Public security means other users can see the scheduled item and all the information about the item.


Private

public static final SimpleSecurity 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 SimpleSecurity[] 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(SimpleSecurity c : SimpleSecurity.values())
        System.out.println(c);

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

valueOf

public static SimpleSecurity 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