public class LrcServiceBusinessLogicImpl extends Object implements LrcServiceBusinessLogic
| Constructor and Description |
|---|
LrcServiceBusinessLogicImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
calcCreditValueKey(String creditValue,
String scaleKey)
Calculate the fixed credit value key to use that matches the specified value
|
protected List<String> |
calcCreditValueKeys(List<String> creditValues,
String scaleKey)
Calculate the value keys to use that matches the specified value
|
protected String |
calcFixedCreditRvgKey(String creditValue,
String scaleKey)
Calculate the result values group key for the fixed credit value
|
protected String |
calcFixedCreditRvgName(String value)
Calculate the result values group key for the range credit value
|
protected String |
calcMultipleCreditRvgDescr(List<String> values) |
protected String |
calcMultipleCreditRvgKey(List<String> values,
String scaleKey)
Calculate the result values group key for the range credit value
|
protected String |
calcMultipleCreditRvgName(List<String> values)
Calculate the result values group key for the range credit value
|
protected String |
calcRangeCreditRvgKey(String creditValueMin,
String creditValueMax,
String creditValueIncrement,
String scaleKey)
Calculate the result values group key for the range credit value
|
protected String |
calcRangeCreditRvgName(String creditValueMin,
String creditValueMax,
String creditValueIncrement)
Calculate the result values group key for the range credit value
|
protected List<String> |
calcRangeCreditValues(String creditValueMin,
String creditValueMax,
String creditValueIncrement)
calculate all the values needed to create the range
|
protected String |
calcResultValueKey(String resultValue,
String scaleKey)
Calculate key to use for the result value
|
ResultValuesGroupInfo |
getCreateFixedCreditResultValuesGroup(String creditValue,
String scaleKey,
ContextInfo contextInfo) |
ResultValuesGroupInfo |
getCreateMultipleCreditResultValuesGroup(List<String> creditValues,
String scaleKey,
ContextInfo contextInfo) |
ResultValuesGroupInfo |
getCreateRangeCreditResultValuesGroup(String creditValueMin,
String creditValueMax,
String creditValueIncrement,
String scaleKey,
ContextInfo contextInfo) |
ResultValueInfo |
getCreateResultValueForScale(String resultValue,
String scaleKey,
ContextInfo contextInfo) |
LRCService |
getLrcService() |
void |
setLrcService(LRCService lrcService) |
protected static boolean |
stringNumberEquals(String value1,
String value2)
This method converts the two input strings into floats and returns true if they're equal, false otherwise.
|
public LrcServiceBusinessLogicImpl()
protected String calcFixedCreditRvgKey(String creditValue, String scaleKey) throws InvalidParameterException
creditValue - valuescaleKey - keyInvalidParameterExceptionprotected String calcFixedCreditRvgName(String value) throws InvalidParameterException
value - valueInvalidParameterExceptionprotected String calcCreditValueKey(String creditValue, String scaleKey) throws InvalidParameterException
creditValue - valuescaleKey - scale keyInvalidParameterExceptionpublic ResultValuesGroupInfo getCreateFixedCreditResultValuesGroup(String creditValue, String scaleKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
getCreateFixedCreditResultValuesGroup in interface LrcServiceBusinessLogicInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionprotected String calcRangeCreditRvgKey(String creditValueMin, String creditValueMax, String creditValueIncrement, String scaleKey) throws InvalidParameterException
creditValueMin - min credit value of rangecreditValueMax - max credit value of rangecreditValueIncrement - increment of rangescaleKey - scale keyInvalidParameterExceptionprotected String calcRangeCreditRvgName(String creditValueMin, String creditValueMax, String creditValueIncrement) throws InvalidParameterException
creditValueMin - min credit value of rangecreditValueMax - max credit value of rangecreditValueIncrement - increment of rangeInvalidParameterExceptionprotected List<String> calcRangeCreditValues(String creditValueMin, String creditValueMax, String creditValueIncrement) throws InvalidParameterException
creditValueMin - min credit value of rangecreditValueMax - max credit value of rangecreditValueIncrement - increment of rangeInvalidParameterExceptionpublic ResultValuesGroupInfo getCreateRangeCreditResultValuesGroup(String creditValueMin, String creditValueMax, String creditValueIncrement, String scaleKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
getCreateRangeCreditResultValuesGroup in interface LrcServiceBusinessLogicInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionprotected static boolean stringNumberEquals(String value1, String value2)
value1 - value 1value2 - value 2protected String calcMultipleCreditRvgKey(List<String> values, String scaleKey) throws InvalidParameterException
values - valuesscaleKey - scale keyInvalidParameterExceptionprotected String calcMultipleCreditRvgName(List<String> values) throws InvalidParameterException
values - list of credit valuesInvalidParameterExceptionprotected String calcMultipleCreditRvgDescr(List<String> values) throws InvalidParameterException
InvalidParameterExceptionprotected List<String> calcCreditValueKeys(List<String> creditValues, String scaleKey) throws InvalidParameterException
creditValues - list of credit valuesscaleKey - scale keyInvalidParameterExceptionpublic ResultValuesGroupInfo getCreateMultipleCreditResultValuesGroup(List<String> creditValues, String scaleKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
protected String calcResultValueKey(String resultValue, String scaleKey)
resultValue - the value of the resultscaleKey - key used for getting the proper scale.public ResultValueInfo getCreateResultValueForScale(String resultValue, String scaleKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
getCreateResultValueForScale in interface LrcServiceBusinessLogicInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionpublic LRCService getLrcService()
public void setLrcService(LRCService lrcService)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.