Package com.priint.pubserver.util
Class IsonSDKUtils
- java.lang.Object
-
- com.priint.pubserver.util.IsonSDKUtils
-
public class IsonSDKUtils extends java.lang.ObjectUtilities 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.StringcalculateRepositoryPath(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 repositorystatic java.lang.StringextractModelIdentifierFromFileName(java.lang.String fileName)Extract model identifier from a file namestatic java.lang.StringgetClientFromRepositoryPath(java.lang.String repositoryPath)Extract name of a tenant from a repository pathstatic java.lang.StringgetPluginNameFromRepositoryPath(java.lang.String repositoryPath)Extract name of a plug-in from a repository path
-
-
-
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 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
public static final java.lang.String getClientFromRepositoryPath(java.lang.String repositoryPath)
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
public static final java.lang.String getPluginNameFromRepositoryPath(java.lang.String repositoryPath)
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
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
-
-