public class InterfaceParametersProviderDefaultImpl extends Object implements InterfaceParametersProvider
Constructor and Description |
---|
InterfaceParametersProviderDefaultImpl() |
InterfaceParametersProviderDefaultImpl(Map<String,String> parameters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllCustomParameters, getCurrentOperator, getPOSId, storeIntegerParameter, storeLongParameter, storeStringParameter
public InterfaceParametersProviderDefaultImpl()
public Map<String,String> getInterfaceParameters()
getInterfaceParameters
in interface InterfaceParametersProvider
public String getUrl()
getUrl
in interface InterfaceParametersProvider
public String getLogin()
getLogin
in interface InterfaceParametersProvider
public String getPassword()
getPassword
in interface InterfaceParametersProvider
public boolean isDummyMode()
isDummyMode
in interface InterfaceParametersProvider
public Locale getLocale()
getLocale
in interface InterfaceParametersProvider
public String getInstitutionCode()
getInstitutionCode
in interface InterfaceParametersProvider
public Integer getBatchSize()
getBatchSize
in interface InterfaceParametersProvider
public int readIntegerParameter(String paramKey, int defaultValue)
readIntegerParameter
in interface InterfaceParametersProvider
public String readStringParameter(String paramKey, String defaultValue)
readStringParameter
in interface InterfaceParametersProvider
public List<String> readStringListParameter(String paramKey, List<String> defaultValue)
readStringListParameter
in interface InterfaceParametersProvider
public long readLongParameter(String paramKey, long defaultValue)
readLongParameter
in interface InterfaceParametersProvider
public boolean getBooleanParameter(String paramKey, boolean defaultValue)
getBooleanParameter
in interface InterfaceParametersProvider
public String getOrganizationCode()
getOrganizationCode
in interface InterfaceParametersProvider
public Long getOrganizationId()
getOrganizationId
in interface InterfaceParametersProvider
public Optional<List<String>> readUploadedFileContent(String charset)
readUploadedFileContent
in interface InterfaceParametersProvider
public Optional<String> readUploadedFileName()
readUploadedFileName
in interface InterfaceParametersProvider
public boolean isFileProvidedForBatch()
isFileProvidedForBatch
in interface InterfaceParametersProvider
public Date readLastSuccessfullExecutionDateForCurrentBatch(boolean considerSchedule)
InterfaceParametersProvider
readLastSuccessfullExecutionDateForCurrentBatch
in interface InterfaceParametersProvider
considerSchedule
- if set to true, the date of last execution will only consider the current schedule. Recommandation: set to true if you do not know what to put.public Date readLastSuccessfullOrWarningExecutionDateForCurrentBatch(boolean considerSchedule)
InterfaceParametersProvider
readLastSuccessfullOrWarningExecutionDateForCurrentBatch
in interface InterfaceParametersProvider
considerSchedule
- if set to true, the date of last execution will only consider the current schedule. Recommandation: set to true if you do not know what to put.public Long getCurrentInterfaceId()
getCurrentInterfaceId
in interface InterfaceParametersProvider
public Long getCurrentExecutionId()
getCurrentExecutionId
in interface InterfaceParametersProvider
public Long getCurrentScheduleId()
getCurrentScheduleId
in interface InterfaceParametersProvider
public TimeZone getOrganizationTimeZone()
InterfaceParametersProvider
getOrganizationTimeZone
in interface InterfaceParametersProvider
public Date readExecutionDateForCurrentBatch()
readExecutionDateForCurrentBatch
in interface InterfaceParametersProvider
public String getFullUrl()
getFullUrl
in interface InterfaceParametersProvider
public String getEncoding()
getEncoding
in interface InterfaceParametersProvider
Copyright © 2021. All rights reserved.