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 addExtractor(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
  10. def addFollower(id: UUID, userId: UUID): Unit

    Add follower to a file.

    Add follower to a file.

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

    Add Invitation to a Space

    Add Invitation to a Space

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

    Add authorization request to a space.

    Add authorization request to a space.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  13. 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.

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. 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.

  16. def clone(): AnyRef

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

    count all spaces

    count all spaces

    Definition Classes
    MongoDBSpaceServiceSpaceService
  18. 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
  19. 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
  20. def decrementCollectionCounter(collection: UUID, space: UUID, decrement: Int): Unit

    Definition Classes
    MongoDBSpaceServiceSpaceService
  21. def delete(id: UUID): Unit

    delete given space.

    delete given space.

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

    Deletes entry with this space id.

    Deletes entry with this space id.

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def get(id: UUID): Option[ProjectSpace]

    return space with specific id

    return space with specific id

    Definition Classes
    MongoDBSpaceServiceSpaceService
  27. def getAllExtractors(spaceId: UUID): List[String]

    Returns a list of extractors associated with this spaceId.

    Returns a list of extractors associated with this spaceId.

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

    Definition Classes
    AnyRef → Any
  29. 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.

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

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

    Find an invitation by ID

    Find an invitation by ID

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

    Find invitations of a space.

    Find invitations of a space. Get data from SpaceInviteDao.

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

    Find invitations of a space.

    Find invitations of a space. Get data from SpaceInviteDao.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  34. 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.

  35. 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
  36. def getUsersInSpace(spaceId: UUID): List[User]

    spaceId

    The identifier of the space to retrieve user data from

    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.

  37. def hashCode(): Int

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  39. 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
  40. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  41. 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
  42. def list(): List[ProjectSpace]

    list all spaces

    list all spaces

    Definition Classes
    MongoDBSpaceServiceSpaceService
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  55. def purgeExpiredResources(space: UUID): 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
  56. def removeCollection(collection: UUID, space: UUID): Unit

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

    Definition Classes
    MongoDBSpaceServiceSpaceService
  58. 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
  59. def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a file.

    Remove follower from a file.

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

    Remove Invitation to a space

    Remove Invitation to a space

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

    Remove authorization request.

    Remove authorization request.

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

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

    Definition Classes
    AnyRef
  64. def toString(): String

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

    update space

    update space

    Definition Classes
    MongoDBSpaceServiceSpaceService
  66. 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.

  67. 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
  68. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SpaceService

Inherited from AnyRef

Inherited from Any

Ungrouped