public class Tier extends java.lang.Object implements TierDetail, java.io.Serializable
Constructor and Description |
---|
Tier(TierInfo tierInfo,
java.util.List limits)
Constructor taking a
TierInfo and a collection of Limit objects. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns user-defined description value.
|
static java.util.List |
getDetailAsProperties()
Returns a collection of
TierProperty , which is used by
WAS admin console to render the tier detail page when creating a new
tier. |
java.util.List |
getDetailAsPropertiesWithValues()
This method returns a list containing new instances of the name and description
properties with their values populated.
|
java.lang.String |
getId()
Return unique ID for this
Tier . |
java.util.List |
getLimits()
Returns collection of
Limit . |
java.lang.String |
getName()
Returns user-defined name value.
|
boolean |
isDefault()
Indicates whether this tier is the one assigned to users
if auto regsitration is activated.
|
void |
setDefault(boolean defaultTier)
Specifies if this tier is the default one.
|
void |
setDescription(java.lang.String description)
Set user defined value for tier description.
|
void |
setLimits(java.util.List limits)
Sets collection of
Limit for this tier. |
void |
setName(java.lang.String name)
Set user defined value for tier description.
|
java.lang.String |
toString() |
public Tier(TierInfo tierInfo, java.util.List limits)
TierInfo
and a collection of Limit
objects.public java.lang.String getDescription()
getDescription
in interface TierDetail
public java.util.List getLimits()
Limit
.public java.lang.String getName()
getName
in interface TierDetail
public java.lang.String getId()
Tier
.getId
in interface TierDetail
public void setDescription(java.lang.String description)
description
- public void setName(java.lang.String name)
name
- public void setLimits(java.util.List limits)
Limit
for this tier.limits
- public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List getDetailAsProperties()
TierProperty
, which is used by
WAS admin console to render the tier detail page when creating a new
tier. Currently the display order of these
properties is the order in which they are added to the list that this method returns
{name, description}. This should be the same as ordering as the getDetailAsPropertiesWithValues
method.TierProperty
.public java.util.List getDetailAsPropertiesWithValues()
public boolean isDefault()
TierDetail
isDefault
in interface TierDetail
true
if the tier is the one assigned to
users if auto regsitration is activated.TierDetail.isDefault()
public void setDefault(boolean defaultTier)
defaultTier
-