services

CollectionService

trait CollectionService extends AnyRef

Generic collection service.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CollectionService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addDataset(collectionId: UUID, datasetId: UUID): Try[Unit]

    Add datataset to collection

  2. abstract def addFollower(id: UUID, userId: UUID): Unit

    Add follower to a collection.

  3. abstract def addSubCollection(collectionId: UUID, subCollectionId: UUID): Try[Unit]

    Add subcollection to collection

  4. abstract def addToRootSpaces(collectionId: UUID, spaceId: UUID): Unit

  5. abstract def addToSpace(collection: UUID, space: UUID): Unit

    Associate a collection with a space

  6. abstract def count(): Long

    The number of collections

  7. abstract def countAccess(permisions: Set[Permission], user: Option[User], showAll: Boolean): Long

    Return the count of collections the user has access to.

  8. abstract def countSpace(space: String): Long

    Return the count of collections in a space, this does not check for permissions

  9. abstract def countUser(user: Option[User], showAll: Boolean, owner: User): Long

    Return the count of collections the user has created.

  10. abstract def createThumbnail(collectionId: UUID): Unit

    Set new thumbnail.

  11. abstract def delete(collectionId: UUID): Try[Unit]

    Delete collection and any reference of it

  12. abstract def deleteAll(): Unit

  13. abstract def findOneByDatasetId(datasetId: UUID): Option[Collection]

  14. abstract def get(id: UUID): Option[Collection]

    Get collection.

  15. abstract def getAllDescendants(parentCollectionId: UUID): ListBuffer[Collection]

  16. abstract def getRootCollections(collectionId: UUID): ListBuffer[Collection]

  17. abstract def getRootSpaceIds(collectionId: UUID): ListBuffer[UUID]

  18. abstract def getSelfAndAncestors(collectionId: UUID): List[Collection]

  19. abstract def hasParentInSpace(collectionId: UUID, spaceId: UUID): Boolean

  20. abstract def hasRoot(collection: Collection): Boolean

  21. abstract def index(id: Option[UUID]): Unit

    Index collection, if no id provided, index all collections.

  22. abstract def insert(collection: Collection): Option[String]

    Create collection.

  23. abstract def isInDataset(dataset: Dataset, collection: Collection): Boolean

  24. abstract def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permisions: Set[Permission], user: Option[User], showAll: Boolean): List[Collection]

    Return a list of collections the user has access to starting at a specific date.

  25. abstract def listAccess(date: String, nextPage: Boolean, limit: Integer, permisions: Set[Permission], user: Option[User], showAll: Boolean): List[Collection]

    Return a list of collections the user has access to starting at a specific date.

  26. abstract def listAccess(limit: Integer, title: String, permisions: Set[Permission], user: Option[User], showAll: Boolean): List[Collection]

    Return a list of collections the user has access to.

  27. abstract def listAccess(limit: Integer, permisions: Set[Permission], user: Option[User], showAll: Boolean): List[Collection]

    Return a list of collections the user has access to.

  28. abstract def listChildCollections(parentCollectionId: UUID): List[Collection]

  29. abstract def listInsideDataset(datasetId: UUID, user: Option[User], showAll: Boolean): List[Collection]

    List all collections inside a dataset.

  30. abstract def listOutsideDataset(datasetId: UUID, user: Option[User], showAll: Boolean): List[Collection]

    List all collections outside a dataset.

  31. abstract def listSpace(date: String, nextPage: Boolean, limit: Integer, space: String): List[Collection]

    Return a list of collections in a space starting at a specific date, this does not check for permissions

  32. abstract def listSpace(limit: Integer, space: String): List[Collection]

    Return a list of collections in a space, this does not check for permissions

  33. abstract def listUser(date: String, nextPage: Boolean, limit: Integer, title: String, user: Option[User], showAll: Boolean, owner: User): List[Collection]

    Return a list of collections the user has access to starting at a specific date with matching title.

  34. abstract def listUser(date: String, nextPage: Boolean, limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Collection]

    Return a list of collections the user has created starting at a specific date.

  35. abstract def listUser(limit: Integer, title: String, user: Option[User], showAll: Boolean, owner: User): List[Collection]

    Return a list of collections the user has created with matching title.

  36. abstract def listUser(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Collection]

    Return a list of collections the user has created.

  37. abstract def removeDataset(collectionId: UUID, datasetId: UUID, ignoreNotFound: Boolean = true): Try[Unit]

    Remove dataset from collection

  38. abstract def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a collection.

  39. abstract def removeFromRootSpaces(collectionId: UUID, spaceId: UUID): Unit

  40. abstract def removeFromSpace(collection: UUID, space: UUID): Unit

    Remove association between a collection and a space.

  41. abstract def removeParentCollectionId(parentCollectionId: UUID, collection: Collection, ignoreNotFound: Boolean = true): Try[Unit]

  42. abstract def removeSubCollection(collectionId: UUID, subCollectionId: UUID, ignoreNotFound: Boolean = true): Try[Unit]

  43. abstract def removeSubCollectionId(subCollectionId: UUID, collection: Collection, ignoreNotFound: Boolean = true): Try[Unit]

  44. abstract def updateDescription(id: UUID, description: String): Unit

    Update description of the dataset

  45. abstract def updateName(id: UUID, name: String): Unit

    Update name of the dataset

  46. abstract def updateThumbnail(collectionId: UUID, thumbnailId: UUID): Unit

    Update thumbnail used to represent this collection.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped