Interface SettingsManagementService
-
- All Known Implementing Classes:
SettingsManagementServiceImpl
public interface SettingsManagementService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createSettings(WebSiteSettings settings)
This method creates a database entity.void
createSettings(java.util.LinkedHashMap<java.lang.String,java.lang.Object> settingsAsMap)
This method creates a database entity from a map-representation.WebSiteSettingsRepository
getRepository()
java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>>
getSettingsPaginationFilter(java.lang.String requestJson)
This method does calculation for a pages based on the request.void
removeSettingsAndClean(java.lang.String settingsId)
This method removes a database entity and clean all relationships from another entities.void
removeSettingsByIds(java.util.ArrayList<java.lang.String> settingsIds)
This method removes a list of database entities.WebSiteSettings
saveSettings(WebSiteSettings settings)
This method save an updates of database entity.WebSiteSettings
saveSettings(java.util.LinkedHashMap<java.lang.String,java.lang.Object> settingsAsMap)
This method save an updates of database entity.java.util.List<WebSiteSettings>
searchSettingsResults(java.lang.String requestJson)
This method does search requests and returns data as list.org.springframework.data.domain.Page<WebSiteSettings>
searchSettingsResultsPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.
-
-
-
Method Detail
-
getRepository
WebSiteSettingsRepository getRepository()
-
searchSettingsResultsPaged
org.springframework.data.domain.Page<WebSiteSettings> searchSettingsResultsPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.- Parameters:
requestJson
- JSON-object of request contains an instructions for search queries- Returns:
- database entities separated to pages
-
searchSettingsResults
java.util.List<WebSiteSettings> searchSettingsResults(java.lang.String requestJson)
This method does search requests and returns data as list.- Parameters:
requestJson
- JSON-object of request contains an instructions for search queries- Returns:
- database entities as list
-
createSettings
void createSettings(java.util.LinkedHashMap<java.lang.String,java.lang.Object> settingsAsMap)
This method creates a database entity from a map-representation.- Parameters:
settingsAsMap
- map-representation of database entity
-
createSettings
void createSettings(WebSiteSettings settings)
This method creates a database entity.- Parameters:
settings
- database entity
-
saveSettings
WebSiteSettings saveSettings(java.util.LinkedHashMap<java.lang.String,java.lang.Object> settingsAsMap)
This method save an updates of database entity.- Parameters:
settingsAsMap
- map-representation of database entity- Returns:
- saved instance of database entity
-
saveSettings
WebSiteSettings saveSettings(WebSiteSettings settings)
This method save an updates of database entity.- Parameters:
settings
- database entity for a update- Returns:
- saved instance of database entity
-
removeSettingsByIds
void removeSettingsByIds(java.util.ArrayList<java.lang.String> settingsIds)
This method removes a list of database entities.- Parameters:
settingsIds
- the list of database entities which will be removed
-
removeSettingsAndClean
void removeSettingsAndClean(java.lang.String settingsId)
This method removes a database entity and clean all relationships from another entities.- Parameters:
settingsId
- identification for database entity which will be removed
-
getSettingsPaginationFilter
java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>> getSettingsPaginationFilter(java.lang.String requestJson)
This method does calculation for a pages based on the request.- Parameters:
requestJson
- JSON-object of request contains an instructions for search queries- Returns:
- map-representation of data
-
-