Class ModalUtils
- java.lang.Object
-
- de.hybris.platform.integrationbackoffice.widgets.modals.utility.ModalUtils
-
public final class ModalUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexecuteMediaDownload(byte[] fileContent, java.lang.String fileFormat, java.lang.String fileName)Calls the appropriate method to download the file in the given format using the browser's download functionalitystatic voidexecuteReportDownload(java.io.InputStream stream, java.lang.String fileFormat, java.lang.String fileName)static booleanisAliasUnique(java.lang.String alias, java.util.List<AbstractListItemDTO> attributes)static booleanisAlphaNumericName(java.lang.String serviceName)static booleanisServiceNameUnique(java.lang.String serviceName, ReadService readService)
-
-
-
Method Detail
-
isAlphaNumericName
public static boolean isAlphaNumericName(java.lang.String serviceName)
-
isServiceNameUnique
public static boolean isServiceNameUnique(java.lang.String serviceName, ReadService readService)
-
isAliasUnique
public static boolean isAliasUnique(java.lang.String alias, java.util.List<AbstractListItemDTO> attributes)
-
executeMediaDownload
public static void executeMediaDownload(byte[] fileContent, java.lang.String fileFormat, java.lang.String fileName)Calls the appropriate method to download the file in the given format using the browser's download functionality- Parameters:
fileContent- Content of file in byte[] formatfileFormat- Format that the file is saved asfileName- Name of the file
-
executeReportDownload
public static void executeReportDownload(java.io.InputStream stream, java.lang.String fileFormat, java.lang.String fileName)
-
-