|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.eff.EffConfigSpecAssistant
public class EffConfigSpecAssistant
Assistant for handling type conversions for the start and end values
of any subclass of of an EffRange, and providing client and server-side
APIs useful for EffConfigSpec, PersistableEffConfigSpec
and EffConfigSpecGroup.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static EffConfigSpecGroup |
getEffConfigSpecGroup()
Queries the DB for the EffConfigSpecGroup stored by the current principal. |
static EffConfigSpec[] |
getValidEffConfigSpecs(EffContext effContext)
Returns all the valid EffConfigSpecs for the
context -- one for each valid Eff class. |
static PersistableEffConfigSpec[] |
getValidPersistableEffConfigSpecs(EffContext effContext)
Returns all the valid PersistableEffConfigSpecs
for the context -- one for each valid Eff class. |
static EffConfigSpecGroup |
saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup)
Stores or modifies the EffConfigSpecGroup on the behalf of the current principal. |
static void |
validateValue(Class effType,
Serializable value)
Validates the value. |
static void |
validateValueAsString(Class effType,
String valueAsString)
Validates the value as a string. |
static Serializable |
valueAsStringToValue(Class effType,
String valueAsString)
Converts the String representation of a value to the serialized object represented by the type. |
static String |
valueToValueAsString(Class effType,
Serializable value)
Converts a value to a String.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EffConfigSpec[] getValidEffConfigSpecs(EffContext effContext)
EffConfigSpecs for the
context -- one for each valid Eff class.
effContext -
public static PersistableEffConfigSpec[] getValidPersistableEffConfigSpecs(EffContext effContext)
PersistableEffConfigSpecs
for the context -- one for each valid Eff class.
effContext -
public static String valueToValueAsString(Class effType,
Serializable value)
throws WTPropertyVetoException
EffHelper.getEffRange(Class)
and getEffGroupRangeDelegate(Class) to get an EffGroupRangeDelegate
so it can figure out what type of value for start or end of a Range
to convert to a String.
effType - value -
WTPropertyVetoException
public static Serializable valueAsStringToValue(Class effType,
String valueAsString)
throws WTPropertyVetoException
EffHelper.getEffRange(Class)
and getEffGroupRangeDelegate(Class) to get an EffGroupRangeDelegate
so it can figure out what type of value for start or end of a Range
to convert the value to.
effType - valueAsString -
WTPropertyVetoException
public static void validateValue(Class effType,
Serializable value)
throws WTPropertyVetoException
effType - value -
WTPropertyVetoExceptionvalueToValueAsString(java.lang.Class, java.io.Serializable)
public static void validateValueAsString(Class effType,
String valueAsString)
throws WTPropertyVetoException
effType - valueAsString -
WTPropertyVetoExceptionvalueAsStringToValue(java.lang.Class, java.lang.String)
public static EffConfigSpecGroup getEffConfigSpecGroup()
throws WTException
WTException
public static EffConfigSpecGroup saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup)
throws WTException
effConfigSpecGroup -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||