Class ModalUtils


  • public final class ModalUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
      static void executeReportDownload​(java.io.InputStream stream, java.lang.String fileFormat, java.lang.String fileName)  
      static boolean isAliasUnique​(java.lang.String alias, java.lang.String qualifier, java.util.List<AbstractListItemDTO> attributes)  
      static boolean isAlphaNumericName​(java.lang.String serviceName)  
      static boolean isInboundChannelConfigNameUnique​(java.lang.String IntegrationObjectName, ReadService readService)
      Calls the appropriate method to check if an InboundChannelConfiguration with given IO has already existed.
      static boolean isServiceNameUnique​(java.lang.String serviceName, ReadService readService)  
      static boolean isVADMCodeUnique​(java.lang.String code, ReadService readService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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[] format
        fileFormat - Format that the file is saved as
        fileName - 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.