services.mongodb

MongoDBCollectionService

class MongoDBCollectionService extends CollectionService

Use Mongodb to store collections.

Annotations
@Singleton()
Linear Supertypes
CollectionService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDBCollectionService
  2. CollectionService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoDBCollectionService(datasets: DatasetService, userService: UserService, spaceService: SpaceService, events: EventService, spaces: SpaceService, appConfig: AppConfigurationService, esqueue: ElasticsearchQueue)

    Annotations
    @Inject()

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. def addDataset(collectionId: UUID, datasetId: UUID): Try[Unit]

    Add datataset to collection

    Add datataset to collection

    Definition Classes
    MongoDBCollectionServiceCollectionService
  7. def addDatasetToCollectionSpaces(collection: Collection, dataset: Dataset, user: Option[User]): Try[Unit]

    Add datataset to collection spaces

    Add datataset to collection spaces

    Definition Classes
    MongoDBCollectionServiceCollectionService
  8. def addDatasetsInCollectionAndChildCollectionsToCollectionSpaces(collectionId: UUID, user: Option[User]): Try[Unit]

  9. def addFollower(id: UUID, userId: UUID): Unit

    Add follower to a collection.

    Add follower to a collection.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  10. def addParentCollectionId(subCollectionId: UUID, parentCollectionId: UUID): Try[com.mongodb.casbah.Imports.WriteResult]

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

    Add subcollection to collection

    Add subcollection to collection

    Definition Classes
    MongoDBCollectionServiceCollectionService
  12. def addSubCollectionId(subCollectionId: UUID, collection: Collection): Try[com.mongodb.casbah.Imports.WriteResult]

  13. def addToRootSpaces(collectionId: UUID, spaceId: UUID): Unit

  14. def addToSpace(collectionId: UUID, spaceId: UUID): Unit

    Associate a collection with a space

    Associate a collection with a space

    Definition Classes
    MongoDBCollectionServiceCollectionService
  15. def addToTrash(collectionId: UUID, dateMovedToTrash: Option[Date]): Unit

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def count(): Long

    Count all collections

    Count all collections

    Definition Classes
    MongoDBCollectionServiceCollectionService
  19. def countAccess(permissions: Set[Permission], user: Option[User], showAll: Boolean): Long

    Return the count of collections the user has access to.

    Return the count of collections the user has access to.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  20. def countSpace(space: String): Long

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

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  21. def countUser(user: Option[User], showAll: Boolean, owner: User): Long

    Return the count of collections the user has created.

    Return the count of collections the user has created.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  22. def createThumbnail(collectionId: UUID): Unit

    Set new thumbnail.

    Set new thumbnail.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  23. def delete(collectionId: UUID): Try[Unit]

    Delete collection and any reference of it

    Delete collection and any reference of it

    Definition Classes
    MongoDBCollectionServiceCollectionService
  24. def deleteAll(): Unit

  25. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def findOneByDatasetId(datasetId: UUID): Option[Collection]

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

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

    Get collection.

    Get collection.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  31. def getAllDescendants(parentCollectionId: UUID): ListBuffer[Collection]

  32. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  33. def getMetrics(): Iterator[Collection]

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

  35. def getRootSpaceIds(collectionId: UUID): ListBuffer[UUID]

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

  37. def hasParentInSpace(collectionId: UUID, spaceId: UUID): Boolean

  38. def hasRoot(collection: Collection): Boolean

  39. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  40. def incrementViews(id: UUID, user: Option[User]): (Int, Date)

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

    Queue a collection to be indexed in Elasticsearch.

    Queue a collection to be indexed in Elasticsearch.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  42. def indexAll(idx: Option[String] = None): Unit

    Queue all collections to be indexed in Elasticsearch.

    Queue all collections to be indexed in Elasticsearch.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  43. def insert(collection: Collection): Option[String]

    Create collection.

    Create collection.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  44. def isInDataset(dataset: Dataset, collection: Collection): Boolean

  45. def isInTrash(id: UUID): Boolean

  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permissions: 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  48. def listAccess(date: String, nextPage: Boolean, limit: Integer, permissions: 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  49. def listAccess(limit: Integer, title: String, permissions: 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.

    Return a list of collections the user has access to.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  50. def listAccess(limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean): List[Collection]

    Return a list of collections the user has access to.

    Return a list of collections the user has access to.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  51. def listAllCollections(user: User, showAll: Boolean, limit: Int): List[Collection]

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

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  52. def listChildCollections(parentCollectionId: UUID): List[Collection]

  53. def listCollections(order: Option[String], limit: Option[Integer], space: Option[String]): List[Collection]

    List collections in the system.

  54. def listCollectionsAfter(date: String, limit: Int, space: Option[String]): List[Collection]

    List collections after a specified date.

  55. def listCollectionsBefore(date: String, limit: Int, space: Option[String]): List[Collection]

    List collections before a specified date.

  56. def listCollectionsChronoReverse(limit: Option[Integer], space: Option[String]): List[Collection]

    List collections in the system in reverse chronological order.

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

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  58. def listInsideDataset(datasetId: UUID, user: Option[User], showAll: Boolean): List[Collection]

    List all collections inside a dataset.

    List all collections inside a dataset.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  59. def listOutsideDataset(datasetId: UUID, user: Option[User], showAll: Boolean): List[Collection]

    List all collections outside a dataset.

    List all collections outside a dataset.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  60. 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

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  61. def listSpace(limit: Integer, space: String): List[Collection]

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

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  62. 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  63. 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 created starting at a specific date with matching title.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  64. 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  65. 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  66. def listUser(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Collection]

    Return a list of collections the user has created.

    Return a list of collections the user has created.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  67. def listUserCollectionsAfter(date: String, limit: Int, email: String): List[Collection]

    List collections for a specific user after a date.

  68. def listUserCollectionsBefore(date: String, limit: Int, email: String): List[Collection]

    List collections for a specific user before a date.

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

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

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  70. 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  71. 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.

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

    Definition Classes
    MongoDBCollectionServiceCollectionService
  72. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  75. def removeDataset(collectionId: UUID, datasetId: UUID, ignoreNotFound: Boolean = true): Try[Unit]

    Remove dataset from collection

    Remove dataset from collection

    Definition Classes
    MongoDBCollectionServiceCollectionService
  76. def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a collection.

    Remove follower from a collection.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  77. def removeFromRootSpaces(collectionId: UUID, spaceId: UUID): Unit

  78. def removeFromSpace(collectionId: UUID, spaceId: UUID): Unit

    Remove association between a collection and a space.

    Remove association between a collection and a space.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  79. def removeParentCollectionId(parentCollectionId: UUID, collection: Collection, ignoreNotFound: Boolean = true): Try[Unit]

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

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

  82. def restoreFromTrash(collectionId: UUID, dateMovedToTrash: Option[Date]): Unit

  83. def syncUpRootSpaces(collectionId: UUID, initialRootSpaces: List[UUID]): Unit

  84. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  85. def toString(): String

    Definition Classes
    AnyRef → Any
  86. def updateAuthorFullName(userId: UUID, fullName: String): Unit

  87. def updateDescription(collectionId: UUID, description: String): Unit

    Update description of the dataset

    Update description of the dataset

    Definition Classes
    MongoDBCollectionServiceCollectionService
  88. def updateName(collectionId: UUID, name: String): Unit

    Update name of the dataset

    Update name of the dataset

    Definition Classes
    MongoDBCollectionServiceCollectionService
  89. def updateThumbnail(collectionId: UUID, thumbnailId: UUID): Unit

    Update thumbnail used to represent this collection.

    Update thumbnail used to represent this collection.

    Definition Classes
    MongoDBCollectionServiceCollectionService
  90. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CollectionService

Inherited from AnyRef

Inherited from Any

Ungrouped