Interface CertificateService
-
- All Known Implementing Classes:
CertificateServiceImpl
public interface CertificateService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCertificatesByIds(java.util.ArrayList<java.lang.String> certificatesIds, java.lang.String sellerId)
This method does a relationship between entities.void
addCertificateToLoggedSeller(java.lang.String certificateId)
This method does a relationship between entities.void
addCertificateToSeller(java.lang.String certificateId, java.lang.String sellerId)
This method does a relationship between entities.Certificate
createCertificate(Certificate certificate)
This method creates a database entity.Certificate
createCertificate(java.util.LinkedHashMap<java.lang.String,java.lang.Object> certificateAsMap)
This method creates a database entity.java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>>
getPaginationFilter(java.lang.String requestJson)
This method does calculation for a pages based on the request.CertificateRepository
getRepository()
java.util.List<Certificate>
getSellerCertificates(java.lang.String sellerId)
This method returns database entities as list.boolean
isCertificateExists(java.lang.String certificateId)
This method checks is exists database entity.boolean
isCertificateNotExists(java.lang.String certificateId)
This method checks is not exists database entity.void
removeCertificateAndClean(java.lang.String certificateId)
This method removes a database entity and clean all relationships from another entities.void
removeCertificateFromLoggedSeller(java.lang.String certificateId)
This method removes relationship between entities.void
removeCertificateFromSeller(java.lang.String certificateId, java.lang.String sellerId)
This method removes relationship between database entities.void
removeCertificates(java.util.ArrayList<java.lang.String> certificatesIds)
This method removes a list of database entities.Certificate
saveCertificate(java.util.LinkedHashMap<java.lang.String,java.lang.Object> certificateAsMap)
This method save an updates of database entity.java.util.List<Certificate>
searchResults(java.lang.String requestJson)
This method does search requests and returns data as list.org.springframework.data.domain.Page<Certificate>
searchResultsPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.
-
-
-
Method Detail
-
getRepository
CertificateRepository getRepository()
-
searchResultsPaged
org.springframework.data.domain.Page<Certificate> searchResultsPaged(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
-
searchResults
java.util.List<Certificate> searchResults(java.lang.String requestJson)
This method does search requests and returns data as list.- Parameters:
requestJson
- search json- Returns:
- database entities as list
-
getPaginationFilter
java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>> getPaginationFilter(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
-
isCertificateExists
boolean isCertificateExists(java.lang.String certificateId)
This method checks is exists database entity.- Parameters:
certificateId
- identification for database entity which will be checked- Returns:
- value as boolean
-
isCertificateNotExists
boolean isCertificateNotExists(java.lang.String certificateId)
This method checks is not exists database entity.- Parameters:
certificateId
- identification for database entity which will be checked- Returns:
- value as boolean
-
addCertificateToLoggedSeller
void addCertificateToLoggedSeller(java.lang.String certificateId)
This method does a relationship between entities.- Parameters:
certificateId
- identification for database entity which will be updated
-
removeCertificateFromLoggedSeller
void removeCertificateFromLoggedSeller(java.lang.String certificateId)
This method removes relationship between entities.- Parameters:
certificateId
- identification for database entity which will be updated
-
createCertificate
Certificate createCertificate(java.util.LinkedHashMap<java.lang.String,java.lang.Object> certificateAsMap)
This method creates a database entity.- Parameters:
certificateAsMap
- map-representation of database entity- Returns:
- database entity
-
createCertificate
Certificate createCertificate(Certificate certificate)
This method creates a database entity.- Parameters:
certificate
- database entity- Returns:
- database entity
-
saveCertificate
Certificate saveCertificate(java.util.LinkedHashMap<java.lang.String,java.lang.Object> certificateAsMap)
This method save an updates of database entity.- Parameters:
certificateAsMap
- map-representation of database entity- Returns:
- saved instance of database entity
-
removeCertificateFromSeller
void removeCertificateFromSeller(java.lang.String certificateId, java.lang.String sellerId)
This method removes relationship between database entities.- Parameters:
certificateId
- identification for database entity which will be removedsellerId
- identification for database entity which will be updated
-
removeCertificateAndClean
void removeCertificateAndClean(java.lang.String certificateId)
This method removes a database entity and clean all relationships from another entities.- Parameters:
certificateId
- identification for database entity which will be removed
-
removeCertificates
void removeCertificates(java.util.ArrayList<java.lang.String> certificatesIds)
This method removes a list of database entities.- Parameters:
certificatesIds
- the list of database entities which will be removed
-
addCertificateToSeller
void addCertificateToSeller(java.lang.String certificateId, java.lang.String sellerId)
This method does a relationship between entities.- Parameters:
certificateId
- identification for database entity which will be updatedsellerId
- identification for database entity which will be updated
-
addCertificatesByIds
void addCertificatesByIds(java.util.ArrayList<java.lang.String> certificatesIds, java.lang.String sellerId)
This method does a relationship between entities.- Parameters:
certificatesIds
- the list of database entities which will be addedsellerId
- identification for database entity which will be updated
-
getSellerCertificates
java.util.List<Certificate> getSellerCertificates(java.lang.String sellerId)
This method returns database entities as list.- Parameters:
sellerId
- identification for database entity which related entities list be returned- Returns:
- database entities as list
-
-