Class IsonSDKUtils

java.lang.Object
com.priint.pubserver.util.IsonSDKUtils

public class IsonSDKUtils extends Object
Utilities for ison. Please do not use in other modules.
  • Method Details

    • calculateRepositoryPath

      public static String calculateRepositoryPath(String client, String pluginName, String folder, String fileName)
      Calculates the absolute path of an configuration file in the repository
      Parameters:
      client - Client/Customer Name
      pluginName - Name (mappedName) of the Plug-in
      folder - sub folder in repository
      fileName - filename of the configuration file (the version is encoded in the filename; name[version].xml)
      Returns:
      Absolute Path to the configuration file
    • getClientFromRepositoryPath

      public static final String getClientFromRepositoryPath(String repositoryPath)
      Extract name of a tenant from a repository path

      example path: /pubserver/pluginconfig/EntityManager/WerkII/globals/entity_icons/2006.gif

      Parameters:
      repositoryPath -
      Returns:
      client, e.g. WerkII
    • getPluginNameFromRepositoryPath

      public static final String getPluginNameFromRepositoryPath(String repositoryPath)
      Extract name of a plug-in from a repository path

      Example path: /pubserver/pluginconfig/EntityManager/WerkII/globals/entity_icons/2006.gif

      Parameters:
      repositoryPath -
      Returns:
      pluginMappedName, e.g. EntityManager
    • extractModelIdentifierFromFileName

      public static String extractModelIdentifierFromFileName(String fileName)
      Extract model identifier from a file name
      Parameters:
      fileName - name of the file from which the identifier should be extracted
      Returns:
      model identifier