Package com.skava.auth.util
Class CollectionUtil
java.lang.Object
com.skava.auth.util.CollectionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
createCollection
(Collection collection, CollectionRepository collectionRepository) static org.springframework.data.domain.Page<Collection>
filterCollections
(Long businessId, String filter, String sort, int page, int size, CollectionRepository collectionRepository, jakarta.persistence.EntityManager entityManager) This method is used to search collection.static Collection
getCollection
(Long collectionId, Long businessId, CollectionRepository collectionRepository) static CollectionVO
getCollection
(Long businessId, Long collectionId, CollectionRepository collectionRepository, CacheImpl cacheImpl) static Collection
updateCollection
(Collection collection, CollectionRepository collectionRepository)
-
Method Details
-
createCollection
public static Collection createCollection(Collection collection, CollectionRepository collectionRepository) -
getCollection
public static CollectionVO getCollection(Long businessId, Long collectionId, CollectionRepository collectionRepository, CacheImpl cacheImpl) -
getCollection
public static Collection getCollection(Long collectionId, Long businessId, CollectionRepository collectionRepository) -
updateCollection
public static Collection updateCollection(Collection collection, CollectionRepository collectionRepository) -
filterCollections
public static org.springframework.data.domain.Page<Collection> filterCollections(Long businessId, String filter, String sort, int page, int size, CollectionRepository collectionRepository, jakarta.persistence.EntityManager entityManager) This method is used to search collection.- Parameters:
businessId
- aLong
object.filter
- aString
object.sort
- aString
object.page
- The offset.size
- The limit.collectionRepository
- aCollectionRepository
object.entityManager
- the entityManager- Returns:
- The list of collection.
-