services.mongodb

MongoDBSpaceService

class MongoDBSpaceService extends SpaceService

Store Spaces in MongoDB.

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

Instance Constructors

  1. new MongoDBSpaceService(collections: CollectionService, files: FileService, datasets: DatasetService, users: UserService, curations: CurationService, metadatas: MetadataService, events: EventService)

    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 addCollection(collection: UUID, space: UUID, user: Option[User]): Unit

    Associate a collection with a space

    Associate a collection with a space

    collection

    collection id

    space

    space id

    Definition Classes
    MongoDBSpaceServiceSpaceService
  7. def addCurationObject(spaceId: UUID, curationObjectId: UUID): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  8. def addDataset(dataset: UUID, space: UUID): Unit

    Associate a dataset with a space

    Associate a dataset with a space

    dataset

    dataset id

    space

    space id

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

    Add follower to a file.

    Add follower to a file.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  10. def addInvitationToSpace(invite: SpaceInvite): Unit

    Add Invitation to a Space

    Add Invitation to a Space

    Definition Classes
    MongoDBSpaceServiceSpaceService
  11. def addRequest(id: UUID, userId: UUID, username: String): Unit

    Add authorization request to a space.

    Add authorization request to a space.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  12. def addUser(userId: UUID, role: Role, spaceId: UUID): Unit

    role

    The role that is to be assigned to the user in the context of this space

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def changeUserRole(userId: UUID, role: Role, space: UUID): Unit

    userId

    The identifier of the user to be updated

    role

    The new role to be assigned to the user in the space

    space

    The identifier of the space to be updated

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  15. def clone(): AnyRef

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

    count all spaces

    count all spaces

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

    Count all spaces the user has access to.

    Count all spaces the user has access to.

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

    Count all spaces the user has created.

    Count all spaces the user has created.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  19. def decrementCollectionCounter(collection: UUID, space: UUID, decrement: Int): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  20. def decrementFileCounter(space: UUID, decrement: Long): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  21. def decrementSpaceBytes(space: UUID, decrement: Long): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  22. def delete(id: UUID, host: String, apiKey: Option[String], user: Option[User]): Unit

    delete given space.

    delete given space.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  23. def deleteAllExtractors(spaceId: UUID): Boolean

    Deletes entry with this space id.

    Deletes entry with this space id.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  24. def disableExtractor(spaceId: UUID, extractor: String): Unit

    Disable extractors within the space.

    Disable extractors within the space. This is used to override global selections.

    spaceId
    extractor

    Definition Classes
    MongoDBSpaceServiceSpaceService
  25. def enableExtractor(spaceId: UUID, extractor: String): Unit

    If entry for this spaceId already exists, adds extractor to it.

    If entry for this spaceId already exists, adds extractor to it. Otherwise, creates a new entry with spaceId and extractor.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  26. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def get(ids: List[UUID]): DBResult[ProjectSpace]

    Definition Classes
    MongoDBSpaceServiceSpaceService
  30. def get(id: UUID): Option[ProjectSpace]

    return space with specific id

    return space with specific id

    Definition Classes
    MongoDBSpaceServiceSpaceService
  31. def getAllExtractors(spaceId: UUID): Option[ExtractorsForSpace]

    Returns a list of extractors associated with this spaceId.

    Returns a list of extractors associated with this spaceId.

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

    Definition Classes
    AnyRef → Any
  33. def getCollectionsInSpace(space: Option[String], limit: Option[Integer]): List[Collection]

    space

    Identifies the space.

    limit

    Length of (the number of collections in) returned list.

    returns

    A list of collections in a space; list's length is defined by 'limit'.

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  34. def getDatasetsInSpace(space: Option[String], limit: Option[Integer]): List[Dataset]

    space

    Identifies the space.

    limit

    Length of (the number of datasets in) returned list.

    returns

    A list of datasets in a space; list's length is defined by 'limit'.

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  35. def getInvitation(inviteId: String): Option[SpaceInvite]

    Find an invitation by ID

    Find an invitation by ID

    Definition Classes
    MongoDBSpaceServiceSpaceService
  36. def getInvitationByEmail(email: String): List[SpaceInvite]

    Find invitations of a space.

    Find invitations of a space. Get data from SpaceInviteDao.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  37. def getInvitationBySpace(space: UUID): List[SpaceInvite]

    Find invitations of a space.

    Find invitations of a space. Get data from SpaceInviteDao.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  38. def getRoleForUserInSpace(spaceId: UUID, userId: UUID): Option[Role]

    spaceId

    The identifier of the space to get data for

    userId

    The identifier of the user to retrieve data for within the space

    returns

    The role that a specific user has within the specified space

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  39. def getTimeToLive(space: UUID): Long

    Retrieve the time to live value that a space is scoped by.

    Retrieve the time to live value that a space is scoped by.

    space

    The id of the space to check

    returns

    An Integer that represents that lifetime of resources in whole days.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  40. def getUsersInSpace(spaceId: UUID, role: Option[String]): List[User]

    spaceId

    The identifier of the space to retrieve user data from

    role

    The role of the user in the space (optional filter)

    returns

    A list that contains all of the users that are associated with a specific space

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  41. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  42. def incrementCollectionCounter(collenction: UUID, space: UUID, increment: Int): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  43. def incrementFileCounter(space: UUID, increment: Long): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  44. def incrementSpaceBytes(space: UUID, increment: Long): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  45. def insert(space: ProjectSpace): Option[String]

    insert new space, will return id if successful.

    insert new space, will return id if successful.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. def isTimeToLiveEnabled(space: UUID): Boolean

    Check if the time to live scope for a space is enabled.

    Check if the time to live scope for a space is enabled.

    space

    The id of the space to check

    returns

    A Boolean, true if it is enabled, false otherwise or if there was an error

    Definition Classes
    MongoDBSpaceServiceSpaceService
  48. def list(): List[ProjectSpace]

    list all spaces

    list all spaces

    Definition Classes
    MongoDBSpaceServiceSpaceService
  49. def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean): List[ProjectSpace]

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

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  50. def listAccess(date: String, nextPage: Boolean, limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, onlyTrial: Boolean, showOnlyShared: Boolean): List[ProjectSpace]

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

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  51. def listAccess(limit: Integer, title: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean): List[ProjectSpace]

    Return a list of spaces the user has access to.

    Return a list of spaces the user has access to.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  52. def listAccess(limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, onlyTrial: Boolean, showOnlyShared: Boolean): List[ProjectSpace]

    Return a list of spaces the user has access to.

    Return a list of spaces the user has access to.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  53. def listByStatus(status: String): List[ProjectSpace]

    Return a list of spaces with specific status

    Return a list of spaces with specific status

    Definition Classes
    MongoDBSpaceServiceSpaceService
  54. def listUser(date: String, nextPage: Boolean, limit: Integer, title: String, user: Option[User], showAll: Boolean, owner: User): List[ProjectSpace]

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

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  55. def listUser(date: String, nextPage: Boolean, limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[ProjectSpace]

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

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  56. def listUser(limit: Integer, title: String, user: Option[User], showAll: Boolean, owner: User): List[ProjectSpace]

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

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  57. def listUser(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[ProjectSpace]

    Return a list of spaces the user has created.

    Return a list of spaces the user has created.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  58. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  61. def processInvitation(email: String): Unit

    Find invitation for email and process it

    Find invitation for email and process it

    Definition Classes
    MongoDBSpaceServiceSpaceService
  62. def purgeExpiredResources(space: UUID, host: String, apiKey: Option[String], user: Option[User]): Unit

    Go through the resources in the space, currently Collections and Datasets, and remove their contents if the last modified time on them is older than the time to live that is scoping the space.

    Go through the resources in the space, currently Collections and Datasets, and remove their contents if the last modified time on them is older than the time to live that is scoping the space.

    space

    The id of the space to check

    Definition Classes
    MongoDBSpaceServiceSpaceService
  63. def removeCollection(collection: UUID, space: UUID): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  64. def removeCurationObject(spaceId: UUID, curationObjectId: UUID): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  65. def removeDataset(dataset: UUID, space: UUID): Unit

    Remove association betweren dataset and a space

    Remove association betweren dataset and a space

    dataset

    dataset id

    space

    space id

    Definition Classes
    MongoDBSpaceServiceSpaceService
  66. def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a file.

    Remove follower from a file.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  67. def removeInvitationFromSpace(inviteId: UUID, spaceId: UUID): Unit

    Remove Invitation to a space

    Remove Invitation to a space

    Definition Classes
    MongoDBSpaceServiceSpaceService
  68. def removeRequest(id: UUID, userId: UUID): Unit

    Remove authorization request.

    Remove authorization request.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  69. def removeUser(userId: UUID, space: UUID): Unit

    userId

    The identifier of the user to be removed from the space

    space

    The identifier for the space that the user is being removed from

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  70. def setDefaultExtractor(spaceId: UUID, extractor: String): Unit

    Follow the global setting for whether to trigger an extractor or not.

    Follow the global setting for whether to trigger an extractor or not.

    spaceId
    extractor

    Definition Classes
    MongoDBSpaceServiceSpaceService
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  72. def toString(): String

    Definition Classes
    AnyRef → Any
  73. def update(space: ProjectSpace): Unit

    update space

    update space

    Definition Classes
    MongoDBSpaceServiceSpaceService
  74. def updateSpaceConfiguration(spaceId: UUID, name: String, description: String, timeToLive: Long, expireEnabled: Boolean, access: String): Unit

    spaceId

    The identifier for the space to be updated

    name

    The updated name information, HTMLEncoded since it is free text

    description

    The updated description information, HTMLEncoded since it is free text

    timeToLive

    The updated amount of time, in milliseconds, that resources should be preserved in the space

    expireEnabled

    The updated flag, indicating whether or not the space should allow resources to expire*

    access

    The updated flag indicate the space is private or public

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  75. def updateUserCount(space: UUID, numberOfUser: Int): Unit

    Update space.

    Update space.userCount if it is not correct.

    space

    The identifier of the space to be updated

    numberOfUser

    The number of user in space

    Definition Classes
    MongoDBSpaceServiceSpaceService
  76. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SpaceService

Inherited from AnyRef

Inherited from Any

Ungrouped