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 addDatasetToCollectionSpaces(collection: Collection, dataset: Dataset, user: Option[User]): Try[Unit]

    Add datataset to collection spaces

  3. abstract def addDatasetsInCollectionAndChildCollectionsToCollectionSpaces(collectionId: UUID, user: Option[User]): Try[Unit]

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

    Add follower to a collection.

  5. abstract def addSubCollection(collectionId: UUID, subCollectionId: UUID, user: Option[User]): Try[Unit]

    Add subcollection to collection

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

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

    Associate a collection with a space

  8. abstract def addToTrash(id: UUID, dateMovedToTrash: Option[Date]): Unit

  9. abstract def count(): Long

    The number of collections

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

    Return the count of collections the user has access to.

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

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

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

    Return the count of collections the user has created.

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

    Set new thumbnail.

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

    Delete collection and any reference of it

  15. abstract def deleteAll(): Unit

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

  17. abstract def get(ids: List[UUID]): DBResult[Collection]

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

    Get collection.

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

  20. abstract def getMetrics(): Iterator[Collection]

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

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

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

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

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

  26. abstract def incrementViews(id: UUID, user: Option[User]): (Int, Date)

  27. abstract def index(id: UUID, idx: Option[String] = None): Unit

    Queue a collection to be indexed in Elasticsearch.

  28. abstract def indexAll(idx: Option[String] = None): Unit

    Queue all collections to be indexed in Elasticsearch.

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

    Create collection.

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

  31. abstract def isInTrash(id: UUID): Boolean

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

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

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

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

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

    Return a list of collections the user has access to.

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

    Return a list of collections the user has access to.

  36. abstract def listAllCollections(user: User, showAll: Boolean, limit: Int): List[Collection]

    List All Collections (Including childs) a user can view.

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

  38. abstract def listInSpaceList(title: Option[String], date: Option[String], limit: Integer, spaces: List[UUID], permissions: Set[Permission], user: Option[User], exactMatch: Boolean = false): List[Collection]

    Return a list of collections in a space and checks for permissions

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

    List all collections inside a dataset.

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

    List all collections outside a dataset.

  41. 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

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

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

  43. abstract def listSpaceAccess(limit: Integer, space: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean): List[Collection]

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

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

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

  45. 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.

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

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

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

    Return a list of collections the user has created.

  48. abstract def listUserTrash(user: Option[User], limit: Integer): List[Collection]

    Return a number of collections the user has created in trash.

  49. abstract def listUserTrash(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 in the trash.

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

    Return a list of collections the user has created in the trash.

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

    Remove dataset from collection

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

    Remove follower from a collection.

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

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

    Remove association between a collection and a space.

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

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

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

  58. abstract def restoreFromTrash(id: UUID, dateMovedToTrash: Option[Date]): Unit

  59. abstract def syncUpRootSpaces(collectionId: UUID, initialParents: List[UUID]): Unit

  60. abstract def updateAuthorFullName(userId: UUID, fullName: String): Unit

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

    Update description of the dataset

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

    Update name of the dataset

  63. 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