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)

    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): Unit

    Associate a collection with a space

    Associate a collection with a space

    collection

    collection id

    space

    space id

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

    Add follower to a file.

    Add follower to a file.

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

    Add Invitation to a Space

    Add Invitation to a Space

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

    Add authorization request to a space.

    Add authorization request to a space.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  11. def addUser(user: UUID, role: Role, space: UUID): Unit

    user

    The identifier for the user that is to be added to the space

    role

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

    space

    The identifier for the space that the user is being added to

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  12. final def asInstanceOf[T0]: T0

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

  14. def clone(): AnyRef

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

    count all spaces

    count all spaces

    Definition Classes
    MongoDBSpaceServiceSpaceService
  16. def countAccess(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
  17. 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
  18. def delete(id: UUID): Unit

    delete given space.

    delete given space.

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

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

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

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

    return space with specific id

    return space with specific id

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

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

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

  26. def getInvitationToSpace(inviteId: String): Option[SpaceInvite]

    Find an invitation by ID

    Find an invitation by ID

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

  28. 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
  29. 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.

  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. 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
  32. final def isInstanceOf[T0]: Boolean

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

    list all spaces

    list all spaces

    Definition Classes
    MongoDBSpaceServiceSpaceService
  35. def listAccess(date: String, nextPage: Boolean, limit: Integer, user: Option[User], showAll: 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
  36. def listAccess(limit: Integer, user: Option[User], showAll: 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
  37. 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
  38. 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
  39. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Remove follower from a file.

    Remove follower from a file.

    Definition Classes
    MongoDBSpaceServiceSpaceService
  46. def removeInvitationToSpace(inviteId: UUID, spaceId: UUID): Unit

    Remove Invitation to a space

    Remove Invitation to a space

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

    Remove authorization request.

    Remove authorization request.

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

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

    Definition Classes
    AnyRef
  50. def toString(): String

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

    update space

    update space

    Definition Classes
    MongoDBSpaceServiceSpaceService
  52. def updateSpaceConfiguration(spaceId: UUID, name: String, description: String, timeToLive: Long, expireEnabled: Boolean): 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

    Definition Classes
    MongoDBSpaceServiceSpaceService
    See also

    app.services.SpaceService.scala

    Implementation of the SpaceService trait.

  53. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SpaceService

Inherited from AnyRef

Inherited from Any

Ungrouped