CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto.base
Enum UserLicenseType

java.lang.Object
  extended by java.lang.Enum<UserLicenseType>
      extended by com.intland.codebeamer.persistence.dto.base.UserLicenseType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UserLicenseType>

public enum UserLicenseType
extends java.lang.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

USER_WITH_NAMED_LICENSE

public static final UserLicenseType USER_WITH_NAMED_LICENSE
The type for named users


USER_WITH_FLOATING_LICENSE

public static final UserLicenseType USER_WITH_FLOATING_LICENSE
The type for floating users


CUSTOMER_WITH_NAMED_LICENSE

public static final UserLicenseType CUSTOMER_WITH_NAMED_LICENSE
The type for named customers


CUSTOMER_WITH_FLOATING_LICENSE

public static final UserLicenseType CUSTOMER_WITH_FLOATING_LICENSE
The type for floating customers

Method Detail

values

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

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

valueOf

public static UserLicenseType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getUser

public UserType getUser()
Get the user type


getLicense

public LicenseKind getLicense()
Get the kind of license


kindOf

public boolean kindOf(java.lang.Enum<?> check)
Check if this user license type is a kind of the specified user type or license kind

Parameters:
check - is either a UserType or LicenseKind constant
Returns:
true if this user license type is a kind of the specified user type or license kind

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<UserLicenseType>

getVariants

public java.util.List<UserLicenseType> getVariants()
Get a list with the variants to this UserLicenseType, from closest variant to variant

Returns:
a list with the possible variants to this UserLicenseType

get

public static UserLicenseType get(UserType user,
                                  LicenseKind kind)
Get a UserLicenseType by type of user and kind of license

Parameters:
user - is the user type
kind - is the kind of license
Returns:
the appropriate UserLicenseType

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.