|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<UserLicenseType>
com.intland.codebeamer.persistence.dto.base.UserLicenseType
public enum UserLicenseType
The available combinations of UserType and LicenseKind
Enum Constant Summary | |
---|---|
CUSTOMER_WITH_FLOATING_LICENSE
The type for floating customers |
|
CUSTOMER_WITH_NAMED_LICENSE
The type for named customers |
|
USER_WITH_FLOATING_LICENSE
The type for floating users |
|
USER_WITH_NAMED_LICENSE
The type for named users |
Method Summary | |
---|---|
static UserLicenseType |
get(UserType user,
LicenseKind kind)
Get a UserLicenseType by type of user and kind of license |
LicenseKind |
getLicense()
Get the kind of license |
UserType |
getUser()
Get the user type |
java.util.List<UserLicenseType> |
getVariants()
Get a list with the variants to this UserLicenseType, from closest variant to variant |
boolean |
kindOf(java.lang.Enum<?> check)
Check if this user license type is a kind of the specified user type or license kind |
java.lang.String |
toString()
|
static UserLicenseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UserLicenseType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final UserLicenseType USER_WITH_NAMED_LICENSE
public static final UserLicenseType USER_WITH_FLOATING_LICENSE
public static final UserLicenseType CUSTOMER_WITH_NAMED_LICENSE
public static final UserLicenseType CUSTOMER_WITH_FLOATING_LICENSE
Method Detail |
---|
public static final UserLicenseType[] values()
for(UserLicenseType c : UserLicenseType.values()) System.out.println(c);
public static UserLicenseType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic UserType getUser()
public LicenseKind getLicense()
public boolean kindOf(java.lang.Enum<?> check)
check
- is either a UserType or LicenseKind constant
public java.lang.String toString()
toString
in class java.lang.Enum<UserLicenseType>
public java.util.List<UserLicenseType> getVariants()
public static UserLicenseType get(UserType user, LicenseKind kind)
user
- is the user typekind
- is the kind of license
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |