Class IsonSDKUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String calculateRepositoryPath​(java.lang.String client, java.lang.String pluginName, java.lang.String folder, java.lang.String fileName)
      Calculates the absolute path of an configuration file in the repository
      static java.lang.String extractModelIdentifierFromFileName​(java.lang.String fileName)
      Extract model identifier from a file name
      static java.lang.String getClientFromRepositoryPath​(java.lang.String repositoryPath)
      Extract name of a tenant from a repository path
      static java.lang.String getPluginNameFromRepositoryPath​(java.lang.String repositoryPath)
      Extract name of a plug-in from a repository path
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • calculateRepositoryPath

        public static java.lang.String calculateRepositoryPath​(java.lang.String client,
                                                               java.lang.String pluginName,
                                                               java.lang.String folder,
                                                               java.lang.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 java.lang.String getClientFromRepositoryPath​(java.lang.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 java.lang.String getPluginNameFromRepositoryPath​(java.lang.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 java.lang.String extractModelIdentifierFromFileName​(java.lang.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