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.lang.String qualifier, java.util.List<AbstractListItemDTO> attributes)static booleanisAlphaNumericName(java.lang.String serviceName)static booleanisInboundChannelConfigNameUnique(java.lang.String IntegrationObjectName, ReadService readService)Calls the appropriate method to check if an InboundChannelConfiguration with given IO has already existed.static booleanisServiceNameUnique(java.lang.String serviceName, ReadService readService)static booleanisVADMCodeUnique(java.lang.String code, 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.lang.String qualifier, java.util.List<AbstractListItemDTO> attributes)
-
isVADMCodeUnique
public static boolean isVADMCodeUnique(java.lang.String code, ReadService readService)
-
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)
-
isInboundChannelConfigNameUnique
public static boolean isInboundChannelConfigNameUnique(java.lang.String IntegrationObjectName, ReadService readService)Calls the appropriate method to check if an InboundChannelConfiguration with given IO has already existed.- Parameters:
IntegrationObjectName- The IO name with which an ICC will be created.readService- The service used to handles the read requests.
-
-