public enum UserRole extends Enum<UserRole>
User: slix, Date: 27.04.2014 13:51
Enum Constant and Description |
---|
ROLE_HYPER_ADMIN
Can do anything.
|
ROLE_SELLER_ADMIN
Edit data of his seller, including company name, products, categories, taxes etc.
|
ROLE_SOFTWARE_VENDOR_ADMIN
Edit seller and seller data, who have at least one activation for his software vendor.
|
ROLE_TREASURER
Run only PosPlusController#kd.
|
Modifier and Type | Method and Description |
---|---|
static UserRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserRole ROLE_HYPER_ADMIN
public static final UserRole ROLE_SOFTWARE_VENDOR_ADMIN
public static final UserRole ROLE_SELLER_ADMIN
public static final UserRole ROLE_TREASURER
public static UserRole[] values()
for (UserRole c : UserRole.values()) System.out.println(c);
public static UserRole valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.