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.util.List<AbstractListItemDTO> attributes)  
      static boolean isAlphaNumericName​(java.lang.String serviceName)  
      static boolean isServiceNameUnique​(java.lang.String serviceName, 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.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[] 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)