Package com.primavera.integration.util
Class GUIDConverter
java.lang.Object
com.primavera.integration.util.GUIDConverter
Helper class for converting GUIDs from internal format to standard format, and vice-versa.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertInternalGUIDToStandardFormat(String sInternalGUID) Converts a GUID from internal base 64 format to standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric characterstatic StringconvertStandardGUIDToInternalFormat(String sStandardGUID) Converts a GUID to internal base 64 format from standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character
-
Method Details
-
convertInternalGUIDToStandardFormat
public static String convertInternalGUIDToStandardFormat(String sInternalGUID) throws InvalidValueException Converts a GUID from internal base 64 format to standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character- Parameters:
sInternalGUID- GUID in internal base 64 format- Returns:
- String GUID in standard format
- Throws:
InvalidValueException- if the GUID was not in the correct format
-
convertStandardGUIDToInternalFormat
public static String convertStandardGUIDToInternalFormat(String sStandardGUID) throws InvalidValueException Converts a GUID to internal base 64 format from standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character- Parameters:
sStandardGUID- GUID in standard format- Returns:
- String GUID in internal base 64 format
- Throws:
InvalidValueException- if the GUID was not in the correct format
-