|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.state.StateMappingBase
public class StateMappingBase
Base implementation of StateMapping.
StateMapping
Constructor Summary | |
---|---|
StateMappingBase()
|
Method Summary | |
---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
String |
getCurrentState(Object object)
Gets the currentState by looking at the statePropertyName on the stateObject passed in |
Map<String,String> |
getCustomClientSideValidationStates()
This ONLY applies to client side validations as the controller has full control over what validations to apply on the server. |
String |
getNextState(Object object)
Gets the nextState of the object passed in by looking at the statePropertyName and using the states list to determine the next state in order. |
String |
getStateNameMessage(String state)
Returns the human readable message determined by the key set for the state passed in against the stateNameMessageKeyMap. |
Map<String,String> |
getStateNameMessageKeyMap()
Map used by getStateNameMessage to determine the key to use when retrieving the message for the state specified. |
String |
getStatePropertyName()
The property name/path to be used when trying to find state String information on the object. |
List<String> |
getStates()
The states of this stateMapping. |
void |
setCustomClientSideValidationStates(Map<String,String> customClientSideValidationStates)
Set the custom client side validation behavior map. |
void |
setStateNameMessageKeyMap(Map<String,String> stateNameMessageKeyMap)
Set the stateNameMessageKeyMap |
void |
setStatePropertyName(String statePropertyName)
Set the property name/path |
void |
setStates(List<String> states)
Set the states of this stateMapping, in order |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateMappingBase()
Method Detail |
---|
public String getStateNameMessage(String state)
StateMapping
getStateNameMessage
in interface StateMapping
state
- state to get the message for
StateMapping.getStateNameMessage(String)
public String getCurrentState(Object object)
StateMapping
getCurrentState
in interface StateMapping
object
- the object containing the state information
StateMapping.getCurrentState(Object object)
public String getNextState(Object object)
StateMapping
getNextState
in interface StateMapping
object
- the object containing the state information
StateMapping.getNextState(Object)
public Map<String,String> getStateNameMessageKeyMap()
StateMapping
getStateNameMessageKeyMap
in interface StateMapping
StateMapping.getStateNameMessageKeyMap()
public void setStateNameMessageKeyMap(Map<String,String> stateNameMessageKeyMap)
StateMapping
setStateNameMessageKeyMap
in interface StateMapping
stateNameMessageKeyMap
- map of states and their messageKeysStateMapping.setStateNameMessageKeyMap(java.util.Map)
public List<String> getStates()
StateMapping
getStates
in interface StateMapping
StateMapping.getStates()
public void setStates(List<String> states)
StateMapping
setStates
in interface StateMapping
states
- list of states, in the order in which they are applied.StateMapping.setStates(java.util.List)
public String getStatePropertyName()
StateMapping
getStatePropertyName
in interface StateMapping
StateMapping.getStatePropertyName()
public void setStatePropertyName(String statePropertyName)
StateMapping
setStatePropertyName
in interface StateMapping
statePropertyName
- the property name/path that points to the string representation of the object's tateStateMapping.setStatePropertyName(String)
public Map<String,String> getCustomClientSideValidationStates()
StateMapping
The map must be defined as such: (state of the object, state to use for validation on the
client when in that state).
Example:
key="INITIAL" value="SUBMIT"
key="SAVE" value="SUBMIT"
In this example, when the object is in the "INITIAL" or the "SAVE" states, validation on the client will
be against the "SUBMIT" state
getCustomClientSideValidationStates
in interface StateMapping
StateMapping.getCustomClientSideValidationStates()
public void setCustomClientSideValidationStates(Map<String,String> customClientSideValidationStates)
StateMapping
setCustomClientSideValidationStates
in interface StateMapping
customClientSideValidationStates
- map representing the state of the object and state to use for validation
on the
client when in that stateStateMapping.setCustomClientSideValidationStates(java.util.Map)
public void completeValidation(ValidationTrace tracer)
StateMapping
completeValidation
in interface StateMapping
tracer
- Record of component's locationStateMapping.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |