Class FrameworkOperationServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> divideValueTo​(java.lang.String val, java.lang.String to)
      This method returns data as object.
      java.util.Map<java.lang.String,​java.lang.String> getCurrentSequence​(java.lang.String seqName)
      This method does return map-structure.
      java.util.Map<java.lang.String,​java.lang.Object> getDatePlusYears​(java.lang.String years, java.lang.String pattern)
      This method does return time.
      java.util.Map<java.lang.String,​java.lang.Object> getDaysTillEndDate​(java.lang.String date)
      This method does return time.
      java.util.Map<java.lang.String,​java.lang.Object> getDaysTillEndDateFromTimestamp​(java.lang.String timestamp)
      This method does return time.
      java.util.Map<java.lang.String,​java.lang.String> getFileExtension​(java.lang.String filePath)
      This method does return map-structure.
      java.util.Map<java.lang.String,​java.lang.String> getFileSize​(java.lang.String url, java.lang.String dim)
      This method does return map-structure.
      java.util.Map<java.lang.String,​java.lang.String> getFirstLetter​(java.lang.String text)
      This method does return map-structure.
      java.util.Map<java.lang.String,​java.lang.String> getFormattedDate​(java.lang.String date, java.lang.String pattern)
      This method does return time.
      java.util.Map<java.lang.String,​java.lang.String> getFormattedDateFromTimestamp​(java.lang.String timestamp, java.lang.String pattern)
      This method does return time.
      java.lang.String getLangCode()
      This method returns data as text from context.
      java.util.Map<java.lang.String,​java.lang.String> getTimeFromDate​(java.lang.String date)
      This method does return time.
      boolean isBlank​(java.lang.String value)
      This method does return boolean result(true).
      boolean isFileExists​(java.lang.String path)
      This method check if the file exists.
      boolean isFileExistsFromSystemRoot​(java.lang.String path)
      This method check if the file exists.
      boolean isFileExistsFromUploadRoot​(java.lang.String path)
      This method check if the file exists.
      boolean isNotBlank​(java.lang.String value)
      This method does return boolean result(false).
      boolean isNotTrue​(java.lang.String value)
      This method does return boolean result(false).
      boolean isTrue​(java.lang.String value)
      This method does return boolean result(true).
      boolean isValueEquals​(java.lang.String val, java.lang.String equalsToVal)
      This method does return boolean result(false).
      java.util.Map<java.lang.String,​java.lang.Object> multiplyValueTo​(java.lang.String val, java.lang.String to)
      This method returns data as object.
      java.util.HashMap<java.lang.Object,​java.lang.Object> parseNestedDatabaseDocs​(java.lang.String itemName, java.lang.String nestedKey, java.lang.String database, java.lang.String jsonObjString)
      This method does recursive rendering for elements with nested relations
      java.util.Map<java.lang.String,​java.lang.Object> plusTwoValues​(java.lang.String val1, java.lang.String val2)
      This method returns data as object.
      java.lang.Object restClientCall​(java.lang.String endpoint, java.lang.String method, java.lang.String jsonAsString)
      This method returns data as map from REST API.
      java.util.Map<java.lang.String,​java.lang.String> toUpperCase​(java.lang.String str)
      This method returns data as text from context.
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> transformJsonArrayToList​(java.lang.String jsonArray)
      This method does transform json array to list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FrameworkOperationServiceImpl

        public FrameworkOperationServiceImpl()
    • Method Detail

      • isValueEquals

        public boolean isValueEquals​(java.lang.String val,
                                     java.lang.String equalsToVal)
        Description copied from interface: FrameworkOperationService
        This method does return boolean result(false).
        Specified by:
        isValueEquals in interface FrameworkOperationService
        Parameters:
        val - which will be checked
        equalsToVal - which will be compared
        Returns:
        value as boolean
      • isNotBlank

        public boolean isNotBlank​(java.lang.String value)
        Description copied from interface: FrameworkOperationService
        This method does return boolean result(false).
        Specified by:
        isNotBlank in interface FrameworkOperationService
        Parameters:
        value - which will be checked
        Returns:
        value as boolean
      • isBlank

        public boolean isBlank​(java.lang.String value)
        Description copied from interface: FrameworkOperationService
        This method does return boolean result(true).
        Specified by:
        isBlank in interface FrameworkOperationService
        Parameters:
        value - which will be checked
        Returns:
        value as boolean
      • isNotTrue

        public boolean isNotTrue​(java.lang.String value)
        Description copied from interface: FrameworkOperationService
        This method does return boolean result(false).
        Specified by:
        isNotTrue in interface FrameworkOperationService
        Parameters:
        value - which will be checked
        Returns:
        value as boolean
      • isTrue

        public boolean isTrue​(java.lang.String value)
        Description copied from interface: FrameworkOperationService
        This method does return boolean result(true).
        Specified by:
        isTrue in interface FrameworkOperationService
        Parameters:
        value - which will be checked
        Returns:
        value as boolean
      • getTimeFromDate

        public java.util.Map<java.lang.String,​java.lang.String> getTimeFromDate​(java.lang.String date)
        Description copied from interface: FrameworkOperationService
        This method does return time.
        Specified by:
        getTimeFromDate in interface FrameworkOperationService
        Parameters:
        date - from which can extracted time
        Returns:
        data as map
      • getFormattedDate

        public java.util.Map<java.lang.String,​java.lang.String> getFormattedDate​(java.lang.String date,
                                                                                       java.lang.String pattern)
        Description copied from interface: FrameworkOperationService
        This method does return time.
        Specified by:
        getFormattedDate in interface FrameworkOperationService
        Parameters:
        date - from which can extracted time
        pattern - pattern to format
        Returns:
        data as map
      • getFormattedDateFromTimestamp

        public java.util.Map<java.lang.String,​java.lang.String> getFormattedDateFromTimestamp​(java.lang.String timestamp,
                                                                                                    java.lang.String pattern)
        Description copied from interface: FrameworkOperationService
        This method does return time.
        Specified by:
        getFormattedDateFromTimestamp in interface FrameworkOperationService
        Parameters:
        timestamp - from which can extracted time
        pattern - pattern to format
        Returns:
        data as map
      • getDaysTillEndDate

        public java.util.Map<java.lang.String,​java.lang.Object> getDaysTillEndDate​(java.lang.String date)
        Description copied from interface: FrameworkOperationService
        This method does return time.
        Specified by:
        getDaysTillEndDate in interface FrameworkOperationService
        Parameters:
        date - from which can extracted time
        Returns:
        data as map
      • getDatePlusYears

        public java.util.Map<java.lang.String,​java.lang.Object> getDatePlusYears​(java.lang.String years,
                                                                                       java.lang.String pattern)
        Description copied from interface: FrameworkOperationService
        This method does return time.
        Specified by:
        getDatePlusYears in interface FrameworkOperationService
        Parameters:
        years - from which can extracted time
        pattern - pattern to format
        Returns:
        data as map
      • getDaysTillEndDateFromTimestamp

        public java.util.Map<java.lang.String,​java.lang.Object> getDaysTillEndDateFromTimestamp​(java.lang.String timestamp)
        Description copied from interface: FrameworkOperationService
        This method does return time.
        Specified by:
        getDaysTillEndDateFromTimestamp in interface FrameworkOperationService
        Parameters:
        timestamp - from which can extracted time
        Returns:
        data as map
      • multiplyValueTo

        public java.util.Map<java.lang.String,​java.lang.Object> multiplyValueTo​(java.lang.String val,
                                                                                      java.lang.String to)
        Description copied from interface: FrameworkOperationService
        This method returns data as object.
        Specified by:
        multiplyValueTo in interface FrameworkOperationService
        Parameters:
        val - the value which will be divided
        to - the value on which will be divided
        Returns:
        data as map
      • divideValueTo

        public java.util.Map<java.lang.String,​java.lang.Object> divideValueTo​(java.lang.String val,
                                                                                    java.lang.String to)
        Description copied from interface: FrameworkOperationService
        This method returns data as object.
        Specified by:
        divideValueTo in interface FrameworkOperationService
        Parameters:
        val - the value which will be divided
        to - the value on which will be divided
        Returns:
        data as map
      • plusTwoValues

        public java.util.Map<java.lang.String,​java.lang.Object> plusTwoValues​(java.lang.String val1,
                                                                                    java.lang.String val2)
        Description copied from interface: FrameworkOperationService
        This method returns data as object.
        Specified by:
        plusTwoValues in interface FrameworkOperationService
        Parameters:
        val1 - the first value
        val2 - the second value
        Returns:
        data as map
      • getFileSize

        public java.util.Map<java.lang.String,​java.lang.String> getFileSize​(java.lang.String url,
                                                                                  java.lang.String dim)
        Description copied from interface: FrameworkOperationService
        This method does return map-structure.
        Specified by:
        getFileSize in interface FrameworkOperationService
        Parameters:
        url - of file, which will be measured
        dim - value for measure file size
        Returns:
        data as map
      • getFileExtension

        public java.util.Map<java.lang.String,​java.lang.String> getFileExtension​(java.lang.String filePath)
        Description copied from interface: FrameworkOperationService
        This method does return map-structure.
        Specified by:
        getFileExtension in interface FrameworkOperationService
        Parameters:
        filePath - of file, which will be measured
        Returns:
        data as map
      • getFirstLetter

        public java.util.Map<java.lang.String,​java.lang.String> getFirstLetter​(java.lang.String text)
        Description copied from interface: FrameworkOperationService
        This method does return map-structure.
        Specified by:
        getFirstLetter in interface FrameworkOperationService
        Parameters:
        text - from which can extracted letter
        Returns:
        data as map
      • getCurrentSequence

        public java.util.Map<java.lang.String,​java.lang.String> getCurrentSequence​(java.lang.String seqName)
        Description copied from interface: FrameworkOperationService
        This method does return map-structure.
        Specified by:
        getCurrentSequence in interface FrameworkOperationService
        Parameters:
        seqName - name as sequence which is at the moment
        Returns:
        data as map
      • transformJsonArrayToList

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> transformJsonArrayToList​(java.lang.String jsonArray)
        Description copied from interface: FrameworkOperationService
        This method does transform json array to list.
        Specified by:
        transformJsonArrayToList in interface FrameworkOperationService
        Parameters:
        jsonArray - JSON-array of array contains an instructions for transform data
        Returns:
        map-representation of data
      • toUpperCase

        public java.util.Map<java.lang.String,​java.lang.String> toUpperCase​(java.lang.String str)
        Description copied from interface: FrameworkOperationService
        This method returns data as text from context.
        Specified by:
        toUpperCase in interface FrameworkOperationService
        Parameters:
        str - string value to transform to uppercase
        Returns:
        map-representation of data
      • restClientCall

        public java.lang.Object restClientCall​(java.lang.String endpoint,
                                               java.lang.String method,
                                               java.lang.String jsonAsString)
        Description copied from interface: FrameworkOperationService
        This method returns data as map from REST API.
        Specified by:
        restClientCall in interface FrameworkOperationService
        Parameters:
        endpoint - endpoint to REST API
        method - http method definition GET/POST
        jsonAsString - json as string
        Returns:
        data as object
      • parseNestedDatabaseDocs

        public java.util.HashMap<java.lang.Object,​java.lang.Object> parseNestedDatabaseDocs​(java.lang.String itemName,
                                                                                                  java.lang.String nestedKey,
                                                                                                  java.lang.String database,
                                                                                                  java.lang.String jsonObjString)
        Description copied from interface: FrameworkOperationService
        This method does recursive rendering for elements with nested relations
        Specified by:
        parseNestedDatabaseDocs in interface FrameworkOperationService
        Parameters:
        itemName - item prefix name which will be compiled
        nestedKey - the name of the property which contains nested relations
        database - name of the database for relations
        jsonObjString - this an object which will be checked for 'children' property
        Returns:
        data as map