public final enum

UserAccountRoles

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ vars.UserAccountRoles

Class Overview

Created by IntelliJ IDEA. User: brian Date: Aug 19, 2009 Time: 2:56:30 PM To change this template use File | Settings | File Templates.

Summary

Enum Values
UserAccountRoles  ADMINISTRATOR   
UserAccountRoles  MAINTENANCE   
UserAccountRoles  READONLY   
Public Methods
static UserAccountRoles getRole(String roleName)
Return the role that corresponds to 'roleName'.
String getRoleName()
String toString()
static UserAccountRoles valueOf(String name)
final static UserAccountRoles[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final UserAccountRoles ADMINISTRATOR

public static final UserAccountRoles MAINTENANCE

public static final UserAccountRoles READONLY

Public Methods

public static UserAccountRoles getRole (String roleName)

Return the role that corresponds to 'roleName'. Useful for matching the value that's stored in the database to the correct role.

Parameters
roleName The string name of the role (Admin, Maint or ReadOnly). The serach is case insensitive and will match using the roleName or long name of the role
Returns
  • The matching UserAccountRole or null of the string provided doens't match any of the roles

public String getRoleName ()

public String toString ()

public static UserAccountRoles valueOf (String name)

public static final UserAccountRoles[] values ()