Interface ContentContainerService
-
- All Known Implementing Classes:
ContentContainerServiceImpl
public interface ContentContainerService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createContainer(ContentContainer contentContainer)
This method creates a database entity.void
createContainer(java.util.LinkedHashMap<java.lang.String,java.lang.Object> blogAsMap)
This method creates a database entity from a map-representation.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
getArticles(java.lang.String regexFilter)
This method retrieves a map, which can be processed in a templates.java.util.List<java.util.Map<java.lang.String,java.lang.String>>
getContainerArticles(java.lang.String blogId)
This method retrieves a map, which can be processed in a templates.java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>>
getContainerPaginationFilter(java.lang.String requestJson)
This method does calculation for a pages based on the request.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
getContainerTypes()
This method retrieves a map, which can be processed in a templates.ContentContainerRepository
getRepository()
void
removeArticles(java.lang.String blogId, java.util.ArrayList<java.lang.String> articleIds)
This method removes a list of database entities.void
removeContainerAndClean(java.lang.String blogId)
This method removes a database entity and clean all relationships from another entities.void
removeContainersByIds(java.util.ArrayList<java.lang.String> blogsIds)
This method removes a list of database entities.ContentContainer
saveContainer(ContentContainer container)
This method save an updates of database entity.ContentContainer
saveContainer(java.util.LinkedHashMap<java.lang.String,java.lang.Object> blogAsMap, java.lang.String blogId)
This method save an updates of database entity.org.springframework.data.domain.Page<ContentContainer>
searchContainerResultsPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.java.util.List<ContentContainer>
searchContainersResults(java.lang.String requestJson)
This method does search requests and returns data as list.
-
-
-
Method Detail
-
getRepository
ContentContainerRepository getRepository()
-
createContainer
void createContainer(java.util.LinkedHashMap<java.lang.String,java.lang.Object> blogAsMap)
This method creates a database entity from a map-representation.- Parameters:
blogAsMap
- map-representation of database entity
-
createContainer
void createContainer(ContentContainer contentContainer)
This method creates a database entity.- Parameters:
contentContainer
- database entity
-
saveContainer
ContentContainer saveContainer(java.util.LinkedHashMap<java.lang.String,java.lang.Object> blogAsMap, java.lang.String blogId)
This method save an updates of database entity.- Parameters:
blogAsMap
- map-representation of database entityblogId
- identification for database entity which will be updated- Returns:
- saved instance of database entity
-
saveContainer
ContentContainer saveContainer(ContentContainer container)
This method save an updates of database entity.- Parameters:
container
- database entity for a update- Returns:
- saved instance of database entity
-
removeArticles
void removeArticles(java.lang.String blogId, java.util.ArrayList<java.lang.String> articleIds)
This method removes a list of database entities.- Parameters:
blogId
- identification for database entity which will be updatedarticleIds
- the list of database entities which will be removed
-
getContainerArticles
java.util.List<java.util.Map<java.lang.String,java.lang.String>> getContainerArticles(java.lang.String blogId)
This method retrieves a map, which can be processed in a templates.- Parameters:
blogId
- identification for database entity which will be retrieved- Returns:
- map-representation of data
-
getArticles
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getArticles(java.lang.String regexFilter)
This method retrieves a map, which can be processed in a templates.- Parameters:
regexFilter
- regexp for a filtering by "_id" field of database entity- Returns:
- map-representation of data
-
removeContainersByIds
void removeContainersByIds(java.util.ArrayList<java.lang.String> blogsIds)
This method removes a list of database entities.- Parameters:
blogsIds
- the list of database entities which will be removed
-
removeContainerAndClean
void removeContainerAndClean(java.lang.String blogId)
This method removes a database entity and clean all relationships from another entities.- Parameters:
blogId
- identification for database entity which will be removed
-
getContainerPaginationFilter
java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>> getContainerPaginationFilter(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
-
searchContainerResultsPaged
org.springframework.data.domain.Page<ContentContainer> searchContainerResultsPaged(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
-
searchContainersResults
java.util.List<ContentContainer> searchContainersResults(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
-
getContainerTypes
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getContainerTypes()
This method retrieves a map, which can be processed in a templates.- Returns:
- map-representation of data
-
-