org.chorem.pollen.services.impl
Enum SecurityService.AccountIdRole

java.lang.Object
  extended by java.lang.Enum<SecurityService.AccountIdRole>
      extended by org.chorem.pollen.services.impl.SecurityService.AccountIdRole
All Implemented Interfaces:
Serializable, Comparable<SecurityService.AccountIdRole>
Enclosing class:
SecurityService

public static enum SecurityService.AccountIdRole
extends Enum<SecurityService.AccountIdRole>

To define meaning of a accountId.

Since:
1.4
Author:
tchemit

Enum Constant Summary
CREATOR
          Creator of the poll.
RESTRICTED_VOTER
          A user that was invited to a restricted poll.
UNDEFINED
          When accountId does not exists for a poll.
VOTER
          A user that has voted on a poll.
 
Method Summary
static SecurityService.AccountIdRole valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecurityService.AccountIdRole[] 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

CREATOR

public static final SecurityService.AccountIdRole CREATOR
Creator of the poll.

This role can access to everything, but can not vote.


VOTER

public static final SecurityService.AccountIdRole VOTER
A user that has voted on a poll.


RESTRICTED_VOTER

public static final SecurityService.AccountIdRole RESTRICTED_VOTER
A user that was invited to a restricted poll.

It might have alreay voted or not.


UNDEFINED

public static final SecurityService.AccountIdRole UNDEFINED
When accountId does not exists for a poll.

Method Detail

values

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

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

valueOf

public static SecurityService.AccountIdRole 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 © 2009-2012 CodeLutin. All Rights Reserved.