Class AbstractERPSupport

java.lang.Object
com.imc.iss.web.services.commands.quote.AbstractERPSupport

public abstract class AbstractERPSupport extends Object
Abstract ERP command.
  • Constructor Details

    • AbstractERPSupport

      public AbstractERPSupport()
  • Method Details

    • ensureMaxLength

      public static <any> ensureMaxLength(int maxLength)
    • formatAccountId

      public static String formatAccountId(String accountECCIdasString) throws AppCustomException
      Throws:
      AppCustomException
    • formatDate

      public static String formatDate(Object value, TimeZone... tz)
    • getBaseUri

      public static String getBaseUri(ConfigurableEnvironment env, String eccDestination)
    • 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 a VerifyException is thrown.
      Parameters:
      repository - the repository to use for fetching the function
      functionName - the name of the function to fetch
      Returns:
      the function with the given name
      Throws:
      JCoException - in case of errors during retrieval
      VerifyException - if no function with the given name can be found
    • getRFCDestination

      public static JCoDestination getRFCDestination(String eccDestination) throws JCoException
      Throws:
      JCoException
    • numberSupplier

      public static <any> numberSupplier(int start, int inc)