|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.eff.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
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
private static Class |
ECS_GROUP_CLASS
|
private static int |
ECS_GROUP_POS
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static EffConfigSpecAssistant |
factory
|
private static String |
FC_RESOURCE
|
private static String |
GROUP_ROLE
|
private static String |
ID
|
private static String |
OBJECT_IDENTIFIER
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static Class |
P_ECS_CLASS
|
private static int |
P_ECS_POS
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
EffConfigSpecAssistant()
|
Method Summary | |
protected static EffConfigSpecGroup |
_getEffConfigSpecGroup()
Queries the DB for the EffConfigSpecGroup stored by the current principal. |
protected static EffConfigSpecGroup |
_saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup)
Stores or modifies the EffConfigSpecGroup on the behalf of the current principal. |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
static EffConfigSpecGroup |
getEffConfigSpecGroup()
Queries the DB for the EffConfigSpecGroup stored by the current principal. |
private static EffGroupRangeDelegate |
getEffGroupRangeDelegate(Class rangeClass)
|
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. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(EffConfigSpecAssistant thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static EffConfigSpecGroup |
saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup)
Stores or modifies the EffConfigSpecGroup on the behalf of the current principal. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
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.. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final boolean SERVER
private static final String FC_RESOURCE
private ApplicationContext applicationContext
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static EffConfigSpecAssistant factory
private static final Class ECS_GROUP_CLASS
private static final int ECS_GROUP_POS
private static final Class P_ECS_CLASS
private static final int P_ECS_POS
private static final String GROUP_ROLE
private static final String OBJECT_IDENTIFIER
private static final String ID
Constructor Detail |
public EffConfigSpecAssistant()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EffConfigSpecAssistant thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
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
-
WTPropertyVetoException
valueToValueAsString(java.lang.Class, java.io.Serializable)
public static void validateValueAsString(Class effType, String valueAsString) throws WTPropertyVetoException
effType
- valueAsString
-
WTPropertyVetoException
valueAsStringToValue(java.lang.Class, java.lang.String)
public static EffConfigSpecGroup getEffConfigSpecGroup() throws WTException
WTException
protected static EffConfigSpecGroup _getEffConfigSpecGroup() throws WTException
WTException
public static EffConfigSpecGroup saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup) throws WTException
effConfigSpecGroup
-
WTException
protected static EffConfigSpecGroup _saveEffConfigSpecGroup(EffConfigSpecGroup effConfigSpecGroup) throws WTException
effConfigSpecGroup
-
WTException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
private static EffGroupRangeDelegate getEffGroupRangeDelegate(Class rangeClass)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |