|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EntityEnum>
org.jasig.portal.portlets.groupselector.EntityEnum
public enum EntityEnum
EntityEnum represents an enumeration of known uPortal entity types. This class was designed specifically for use with the JsonEntityBean entity wrapper and for simplified channel and group browsing.
| Enum Constant Summary | |
|---|---|
CATEGORY
|
|
CHANNEL
|
|
GROUP
|
|
PERSON
|
|
| Method Summary | |
|---|---|
Class<?> |
getClazz()
Get the Class associated with this entity type. |
static EntityEnum |
getEntityEnum(String type)
Get an EntityEnum for a String type representation. |
boolean |
isGroup()
Determine if this entity type is a group type. |
String |
toString()
|
static EntityEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EntityEnum[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EntityEnum CHANNEL
public static final EntityEnum CATEGORY
public static final EntityEnum PERSON
public static final EntityEnum GROUP
| Method Detail |
|---|
public static EntityEnum[] values()
for (EntityEnum c : EntityEnum.values()) System.out.println(c);
public static EntityEnum valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static EntityEnum getEntityEnum(String type)
type -
public Class<?> getClazz()
public boolean isGroup()
public String toString()
toString in class Enum<EntityEnum>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||