org.apache.lucene.gdata.data
Enum GDataAccount.AccountRole

java.lang.Object
  extended by java.lang.Enum<GDataAccount.AccountRole>
      extended by org.apache.lucene.gdata.data.GDataAccount.AccountRole
All Implemented Interfaces:
Serializable, Comparable<GDataAccount.AccountRole>
Enclosing class:
GDataAccount

public static enum GDataAccount.AccountRole
extends Enum<GDataAccount.AccountRole>

This enum respesents all account roles an account can have.

Author:
Simon Willnauer

Enum Constant Summary
ENTRYAMINISTRATOR
          Can create / alter entries
FEEDAMINISTRATOR
          Can create / alter feeds
USER
          can create / alter his own feed entries
USERADMINISTRATOR
          Can create / alter user
 
Method Summary
static GDataAccount.AccountRole valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GDataAccount.AccountRole[] 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

USERADMINISTRATOR

public static final GDataAccount.AccountRole USERADMINISTRATOR
Can create / alter user


FEEDAMINISTRATOR

public static final GDataAccount.AccountRole FEEDAMINISTRATOR
Can create / alter feeds


ENTRYAMINISTRATOR

public static final GDataAccount.AccountRole ENTRYAMINISTRATOR
Can create / alter entries


USER

public static final GDataAccount.AccountRole USER
can create / alter his own feed entries

Method Detail

values

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

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

valueOf

public static GDataAccount.AccountRole 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


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.