Package com.priint.pubserver.util
Class IsonSDKUtils
java.lang.Object
com.priint.pubserver.util.IsonSDKUtils
Utilities for ison. Please do not use in other modules.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcalculateRepositoryPath(String client, String pluginName, String folder, String fileName) Calculates the absolute path of an configuration file in the repositorystatic StringextractModelIdentifierFromFileName(String fileName) Extract model identifier from a file namestatic final StringgetClientFromRepositoryPath(String repositoryPath) Extract name of a tenant from a repository pathstatic final StringgetPluginNameFromRepositoryPath(String repositoryPath) Extract name of a plug-in from a repository path
-
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 NamepluginName- Name (mappedName) of the Plug-infolder- sub folder in repositoryfileName- filename of the configuration file (the version is encoded in the filename; name[version].xml)- Returns:
- Absolute Path to the configuration file
-
getClientFromRepositoryPath
Extract name of a tenant from a repository pathexample path: /pubserver/pluginconfig/EntityManager/WerkII/globals/entity_icons/2006.gif
- Parameters:
repositoryPath-- Returns:
- client, e.g. WerkII
-
getPluginNameFromRepositoryPath
Extract name of a plug-in from a repository pathExample path: /pubserver/pluginconfig/EntityManager/WerkII/globals/entity_icons/2006.gif
- Parameters:
repositoryPath-- Returns:
- pluginMappedName, e.g. EntityManager
-
extractModelIdentifierFromFileName
Extract model identifier from a file name- Parameters:
fileName- name of the file from which the identifier should be extracted- Returns:
- model identifier
-