Package wt.eff
Class EffConfigSpecAssistant
java.lang.Object
wt.eff.EffConfigSpecAssistant
- All Implemented Interfaces:
Externalizable,Serializable,RemoteAccess,wt.services.applicationcontext.ApplicationContextChild
public class EffConfigSpecAssistant
extends Object
implements RemoteAccess, wt.services.applicationcontext.ApplicationContextChild, Externalizable
Assistant for handling type conversions for the start and end values
of any subclass of of an
Supported API: true
Extendable: false
EffRange, and providing client and server-side
APIs useful for EffConfigSpec, PersistableEffConfigSpec
and EffConfigSpecGroup.
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EffConfigSpecGroupQueries the DB for the EffConfigSpecGroup stored by the current principal.static EffConfigSpec[]getValidEffConfigSpecs(EffContext effContext) Returns all the validEffConfigSpecsfor the context -- one for each valid Eff class.static PersistableEffConfigSpec[]getValidPersistableEffConfigSpecs(EffContext effContext) Returns all the validPersistableEffConfigSpecsfor the context -- one for each valid Eff class.static EffConfigSpecGroupsaveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup) Stores or modifies the EffConfigSpecGroup on the behalf of the current principal.static voidvalidateValue(Class effType, Serializable value) Validates the value.static voidvalidateValueAsString(Class effType, String valueAsString) Validates the value as a string.static SerializablevalueAsStringToValue(Class effType, String valueAsString) Converts the String representation of a value to the serialized object represented by the type.static StringvalueToValueAsString(Class effType, Serializable value) Converts a value to a String..
-
Method Details
-
getValidEffConfigSpecs
Returns all the validEffConfigSpecsfor the context -- one for each valid Eff class.
Supported API: true- Parameters:
effContext-- Returns:
- EffConfigSpec[]
-
getValidPersistableEffConfigSpecs
Returns all the validPersistableEffConfigSpecsfor the context -- one for each valid Eff class.
Supported API: true- Parameters:
effContext-- Returns:
- PersistableEffConfigSpec[]
-
valueToValueAsString
public static String valueToValueAsString(Class effType, Serializable value) throws WTPropertyVetoException Converts a value to a String.. UsesEffHelper.getEffRange(Class)andgetEffGroupRangeDelegate(java.lang.Class)to get anEffGroupRangeDelegateso it can figure out what type of value for start or end of a Range to convert to a String.
Supported API: true- Parameters:
effType-value-- Returns:
- String
- Throws:
WTPropertyVetoException
-
valueAsStringToValue
public static Serializable valueAsStringToValue(Class effType, String valueAsString) throws WTPropertyVetoException Converts the String representation of a value to the serialized object represented by the type. UsesEffHelper.getEffRange(Class)andgetEffGroupRangeDelegate(java.lang.Class)to get anEffGroupRangeDelegateso it can figure out what type of value for start or end of a Range to convert the value to.
Supported API: true- Parameters:
effType-valueAsString-- Returns:
- Serializable
- Throws:
WTPropertyVetoException
-
validateValue
Validates the value.
Supported API: true- Parameters:
effType-value-- Throws:
WTPropertyVetoException- See Also:
-
validateValueAsString
public static void validateValueAsString(Class effType, String valueAsString) throws WTPropertyVetoException Validates the value as a string.
Supported API: true- Parameters:
effType-valueAsString-- Throws:
WTPropertyVetoException- See Also:
-
getEffConfigSpecGroup
Queries the DB for the EffConfigSpecGroup stored by the current principal. Returns null if one does not exist.
Supported API: true- Returns:
- EffConfigSpecGroup
- Throws:
WTException
-
saveEffConfigSpecGroup
public static EffConfigSpecGroup saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup) throws WTException Stores or modifies the EffConfigSpecGroup on the behalf of the current principal.
Supported API: true- Parameters:
effConfigSpecGroup-- Returns:
- EffConfigSpecGroup
- Throws:
WTException
-