Interface FrameworkOperationService
-
- All Known Implementing Classes:
FrameworkOperationServiceImpl
public interface FrameworkOperationService
-
-
Method Summary
All Methods Instance Methods Abstract 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.List<java.lang.String>
getActiveLanguages()
This method returns the list of active languagesjava.util.Map<java.lang.String,java.lang.String>
getCurrentDate(java.lang.String pattern)
This method does return date.java.util.Map<java.lang.String,java.lang.String>
getCurrentSequence(java.lang.String seqName)
This method does return map-structure.WebSiteSettings
getCurrentWebSiteSettings()
Retrieves the current website settings.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
isLanguageDetection()
This method check the state of language detection propertyboolean
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.lang.String
languageAwareUrl(java.lang.String url)
This method adds the language code to the given URL based on the browser's preferred language.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 relationsjava.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>
toLowerCase(java.lang.String str)
This method returns data as text from context.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.
-
-
-
Method Detail
-
isValueEquals
boolean isValueEquals(java.lang.String val, java.lang.String equalsToVal)
This method does return boolean result(false).- Parameters:
val
- which will be checkedequalsToVal
- which will be compared- Returns:
- value as boolean
-
isNotBlank
boolean isNotBlank(java.lang.String value)
This method does return boolean result(false).- Parameters:
value
- which will be checked- Returns:
- value as boolean
-
isBlank
boolean isBlank(java.lang.String value)
This method does return boolean result(true).- Parameters:
value
- which will be checked- Returns:
- value as boolean
-
isNotTrue
boolean isNotTrue(java.lang.String value)
This method does return boolean result(false).- Parameters:
value
- which will be checked- Returns:
- value as boolean
-
isTrue
boolean isTrue(java.lang.String value)
This method does return boolean result(true).- Parameters:
value
- which will be checked- Returns:
- value as boolean
-
isFileExists
boolean isFileExists(java.lang.String path)
This method check if the file exists.- Parameters:
path
- path to the file- Returns:
- value as boolean
-
isFileExistsFromSystemRoot
boolean isFileExistsFromSystemRoot(java.lang.String path)
This method check if the file exists.- Parameters:
path
- path to the file- Returns:
- value as boolean
-
isFileExistsFromUploadRoot
boolean isFileExistsFromUploadRoot(java.lang.String path)
This method check if the file exists.- Parameters:
path
- path to the file- Returns:
- value as boolean
-
isLanguageDetection
boolean isLanguageDetection()
This method check the state of language detection property- Returns:
- value as boolean
-
getActiveLanguages
java.util.List<java.lang.String> getActiveLanguages()
This method returns the list of active languages- Returns:
- value as list
-
getTimeFromDate
java.util.Map<java.lang.String,java.lang.String> getTimeFromDate(java.lang.String date)
This method does return time.- Parameters:
date
- from which can extracted time- Returns:
- data as map
-
getCurrentDate
java.util.Map<java.lang.String,java.lang.String> getCurrentDate(java.lang.String pattern)
This method does return date.- Parameters:
pattern
- pattern to format- Returns:
- data as map
-
getFormattedDate
java.util.Map<java.lang.String,java.lang.String> getFormattedDate(java.lang.String date, java.lang.String pattern)
This method does return time.- Parameters:
date
- from which can extracted timepattern
- pattern to format- Returns:
- data as map
-
getFormattedDateFromTimestamp
java.util.Map<java.lang.String,java.lang.String> getFormattedDateFromTimestamp(java.lang.String timestamp, java.lang.String pattern)
This method does return time.- Parameters:
timestamp
- from which can extracted timepattern
- pattern to format- Returns:
- data as map
-
getDaysTillEndDate
java.util.Map<java.lang.String,java.lang.Object> getDaysTillEndDate(java.lang.String date)
This method does return time.- Parameters:
date
- from which can extracted time- Returns:
- data as map
-
getDatePlusYears
java.util.Map<java.lang.String,java.lang.Object> getDatePlusYears(java.lang.String years, java.lang.String pattern)
This method does return time.- Parameters:
years
- from which can extracted timepattern
- pattern to format- Returns:
- data as map
-
getDaysTillEndDateFromTimestamp
java.util.Map<java.lang.String,java.lang.Object> getDaysTillEndDateFromTimestamp(java.lang.String timestamp)
This method does return time.- Parameters:
timestamp
- from which can extracted time- Returns:
- data as map
-
multiplyValueTo
java.util.Map<java.lang.String,java.lang.Object> multiplyValueTo(java.lang.String val, java.lang.String to)
This method returns data as object.- Parameters:
val
- the value which will be dividedto
- the value on which will be divided- Returns:
- data as map
-
divideValueTo
java.util.Map<java.lang.String,java.lang.Object> divideValueTo(java.lang.String val, java.lang.String to)
This method returns data as object.- Parameters:
val
- the value which will be dividedto
- the value on which will be divided- Returns:
- data as map
-
plusTwoValues
java.util.Map<java.lang.String,java.lang.Object> plusTwoValues(java.lang.String val1, java.lang.String val2)
This method returns data as object.- Parameters:
val1
- the first integer valueval2
- the second integer value- Returns:
- data as map
-
getFileSize
java.util.Map<java.lang.String,java.lang.String> getFileSize(java.lang.String url, java.lang.String dim)
This method does return map-structure.- Parameters:
url
- of file, which will be measureddim
- value for measure file size- Returns:
- data as map
-
getFileExtension
java.util.Map<java.lang.String,java.lang.String> getFileExtension(java.lang.String filePath)
This method does return map-structure.- Parameters:
filePath
- of file, which will be measured- Returns:
- data as map
-
getFirstLetter
java.util.Map<java.lang.String,java.lang.String> getFirstLetter(java.lang.String text)
This method does return map-structure.- Parameters:
text
- from which can extracted letter- Returns:
- data as map
-
getCurrentSequence
java.util.Map<java.lang.String,java.lang.String> getCurrentSequence(java.lang.String seqName)
This method does return map-structure.- Parameters:
seqName
- name as sequence which is at the moment- Returns:
- data as map
-
transformJsonArrayToList
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.- Parameters:
jsonArray
- JSON-array of array contains an instructions for transform data- Returns:
- map-representation of data
-
getLangCode
java.lang.String getLangCode()
This method returns data as text from context.- Returns:
- data as text
-
toLowerCase
java.util.Map<java.lang.String,java.lang.String> toLowerCase(java.lang.String str)
This method returns data as text from context.- Parameters:
str
- string value to transform to lowercase- Returns:
- map-representation of data
-
toUpperCase
java.util.Map<java.lang.String,java.lang.String> toUpperCase(java.lang.String str)
This method returns data as text from context.- Parameters:
str
- string value to transform to uppercase- Returns:
- map-representation of data
-
restClientCall
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.- Parameters:
endpoint
- endpoint to REST APImethod
- http method definition GET/POSTjsonAsString
- json as string- Returns:
- data as object
-
parseNestedDatabaseDocs
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- Parameters:
itemName
- item prefix name which will be compilednestedKey
- the name of the property which contains nested relationsdatabase
- name of the database for relationsjsonObjString
- this an object which will be checked for 'children' property- Returns:
- data as map
-
languageAwareUrl
java.lang.String languageAwareUrl(java.lang.String url)
This method adds the language code to the given URL based on the browser's preferred language. It returns the modified URL with the language code.- Parameters:
url
- The original URL to be modified.- Returns:
- The modified URL with the language code.
-
getCurrentWebSiteSettings
WebSiteSettings getCurrentWebSiteSettings()
Retrieves the current website settings. This method returns an object of type WebSiteSettings, which contains various properties and configurations for the current website.- Returns:
- The current website settings represented by an instance of WebSiteSettings.
-
-