org.glassfish.cafe.api
Enum RuleSetType

java.lang.Object
  extended by java.lang.Enum<RuleSetType>
      extended by org.glassfish.cafe.api.RuleSetType
All Implemented Interfaces:
Serializable, Comparable<RuleSetType>

public enum RuleSetType
extends Enum<RuleSetType>

Indicates the type of rule set. It is a subset of the rules that can be accomplished with the OMA and RCS templates,

  • RCSRCS template with all the rules and shared lists this entails. Rules are similar to the OMA whitelist template, but anonymous users have access to the (RCS) services
  • OMA_WHITELISTOMA blacklist template with all the rules and shared lists this entails. By default users are allowed to see all information unless explicitly blocked. Anonymous users are blocked.
  • OMA_BLACKLISTOMA whitelist template with all the rules and shared lists this entails. By default watchers have to be confirmed; i.e., either granted (put on the oma_granted_contacts list) or blocked (put on the oma_blocked_contacts list. Anonymous users are blocked.
  • OMA_WHITELIST_POLITEPolite version of the OMA_WHITELIST, where blocked users and anonymous users are polite blocked.
  • OMA_BLACKLIST_POLITEPolite version of the OMA_BLACKLIST, where blocked users and anonymous users are polite blocked.
  • RCS_POLITEPolite version of the RCS.


    Enum Constant Summary
    OMA_BLACKLIST
               
    OMA_BLACKLIST_POLITE
               
    OMA_WHITELIST
               
    OMA_WHITELIST_POLITE
               
    RCS
               
    RCS_POLITE
               
     
    Method Summary
    static RuleSetType valueOf(String name)
              Returns the enum constant of this type with the specified name.
    static RuleSetType[] values()
              Returns an array containing the constants of this enum type, in the order they are declared.
     
    Methods inherited from class java.lang.Enum
    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
     
    Methods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, wait
     

    Enum Constant Detail

    RCS

    public static final RuleSetType RCS

    RCS_POLITE

    public static final RuleSetType RCS_POLITE

    OMA_WHITELIST

    public static final RuleSetType OMA_WHITELIST

    OMA_WHITELIST_POLITE

    public static final RuleSetType OMA_WHITELIST_POLITE

    OMA_BLACKLIST

    public static final RuleSetType OMA_BLACKLIST

    OMA_BLACKLIST_POLITE

    public static final RuleSetType OMA_BLACKLIST_POLITE
    Method Detail

    values

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

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

    valueOf

    public static RuleSetType valueOf(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:
    IllegalArgumentException - if this enum type has no constant with the specified name
    NullPointerException - if the argument is null


    Copyright © 2010. All Rights Reserved.