Class AbstractERPSupport
java.lang.Object
com.imc.iss.web.services.commands.quote.AbstractERPSupport
Abstract ERP command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <any>ensureMaxLength(int maxLength) static StringformatAccountId(String accountECCIdasString) static StringformatDate(Object value, TimeZone... tz) static StringgetBaseUri(ConfigurableEnvironment env, String eccDestination) static JCoFunctiongetReqFunction(JCoRepository repository, String functionName) Tries to fetch the function with the given name from the given repository.static JCoDestinationgetRFCDestination(String eccDestination) static <any>numberSupplier(int start, int inc)
-
Constructor Details
-
AbstractERPSupport
public AbstractERPSupport()
-
-
Method Details
-
ensureMaxLength
public static <any> ensureMaxLength(int maxLength) -
formatAccountId
- Throws:
AppCustomException
-
formatDate
-
getBaseUri
-
getReqFunction
public static JCoFunction getReqFunction(JCoRepository repository, String functionName) throws JCoException Tries to fetch the function with the given name from the given repository. If no such function is found aVerifyExceptionis thrown.- Parameters:
repository- the repository to use for fetching the functionfunctionName- the name of the function to fetch- Returns:
- the function with the given name
- Throws:
JCoException- in case of errors during retrievalVerifyException- if no function with the given name can be found
-
getRFCDestination
- Throws:
JCoException
-
numberSupplier
public static <any> numberSupplier(int start, int inc)
-