public class SmsParameterProcessor
extends java.lang.Object
| Constructor and Description |
|---|
SmsParameterProcessor(UserLocatorHandler userLocatorHandler,
SmsOperationConfiguration operationConfiguration,
java.util.List<java.lang.String> params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns whether there is another parameter
|
java.math.BigDecimal |
nextAmount(java.lang.Object paramIdentifier,
int precision) |
java.math.BigDecimal |
nextDecimal(java.lang.Object paramIdentifier)
Returns the next parameter as a decimal number
|
int |
nextInt(java.lang.Object paramIdentifier)
Returns the next parameter as int
|
java.lang.String |
nextString(java.lang.Object paramIdentifier)
Returns the next parameter as string
|
User |
nextUser(java.lang.Object paramIdentifier)
Returns the next parameter as user.
|
User |
nextUserForPayment(java.lang.Object paramIdentifier)
Returns the next parameter as User, forcing the payment principal types in the sms channel configuration
|
java.lang.String |
remaining(java.lang.Object paramIdentifier,
java.lang.String separator)
Returns all remaining parameters, joined with a given separator
|
public SmsParameterProcessor(UserLocatorHandler userLocatorHandler, SmsOperationConfiguration operationConfiguration, java.util.List<java.lang.String> params)
public boolean hasNext()
public java.math.BigDecimal nextAmount(java.lang.Object paramIdentifier,
int precision)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic java.math.BigDecimal nextDecimal(java.lang.Object paramIdentifier)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic int nextInt(java.lang.Object paramIdentifier)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic java.lang.String nextString(java.lang.Object paramIdentifier)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionpublic User nextUser(java.lang.Object paramIdentifier) throws org.cyclos.impl.utils.sms.InboundSmsParameterException
nextUserForPayment(Object) instead, as the principal type defined in the channel
configuration is enforced.org.cyclos.impl.utils.sms.InboundSmsParameterExceptionUserLocatorHandler#locateUser(UserLocatorVO)public User nextUserForPayment(java.lang.Object paramIdentifier) throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterExceptionUserLocatorHandler#locateUser(org.cyclos.entities.system.Network, UserLocatorVO, java.util.Set,
java.util.Collection)public java.lang.String remaining(java.lang.Object paramIdentifier,
java.lang.String separator)
throws org.cyclos.impl.utils.sms.InboundSmsParameterException
org.cyclos.impl.utils.sms.InboundSmsParameterException