services

SpaceService

trait SpaceService extends AnyRef

Service to manipulate spaces.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SpaceService
  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 addCollection(collection: UUID, space: UUID, user: Option[User]): Unit

  2. abstract def addCurationObject(spaceId: UUID, curationObjectId: UUID): Unit

  3. abstract def addDataset(dataset: UUID, space: UUID): Unit

  4. abstract def addExtractor(spaceId: UUID, extractor: String): Unit

    If entry for spaceId already exists, will update list of extractors.

    If entry for spaceId already exists, will update list of extractors. Otherwise will create and add a new document to the collection, with spaceId and extractor given.

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

    Add follower to a file.

  6. abstract def addInvitationToSpace(invite: SpaceInvite): Unit

    Add Invitation to a Space

  7. abstract def addRequest(id: UUID, userId: UUID, username: String): Unit

    Add authorization request to a space.

  8. abstract def addUser(user: UUID, role: Role, space: UUID): Unit

    Add a user to the space, along with an associated role.

    Add a user to the space, along with an associated role.

    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

  9. abstract def changeUserRole(userId: UUID, role: Role, space: UUID): Unit

    Update a user's role within a space.

    Update a user's role within a space.

    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

  10. abstract def count(): Long

    Count all spaces

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

    Return a count of spaces the user has access to.

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

    Return a count of spaces the user has created.

  13. abstract def decrementCollectionCounter(collection: UUID, space: UUID, decrement: Int): Unit

  14. abstract def delete(id: UUID): Unit

    delete given space.

  15. abstract def deleteAllExtractors(spaceId: UUID): Boolean

    Delete an entire entry with extractors for this space id.

  16. abstract def get(id: UUID): Option[ProjectSpace]

    return space with specific id

  17. abstract def getAllExtractors(spaceId: UUID): List[String]

    Get all extractors for this space id.

  18. abstract def getCollectionsInSpace(space: Option[String] = None, limit: Option[Integer] = None): List[Collection]

    Service access to retrieve a list of collections in a given space, of prescribed list length.

    Service access to retrieve a list of collections in a given space, of prescribed list length.

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

  19. abstract def getDatasetsInSpace(space: Option[String] = None, limit: Option[Integer] = None): List[Dataset]

    Service access to retrieve a list of datasets in a given space, of prescribed list length.

    Service access to retrieve a list of datasets in a given space, of prescribed list length.

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

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

    Find an invitation by ID

  21. abstract def getInvitationByEmail(email: String): List[SpaceInvite]

    Find invitations of a space.

    Find invitations of a space. Get data from SpaceInviteDao.

  22. abstract def getInvitationBySpace(space: UUID): List[SpaceInvite]

    Find invitations of a space.

    Find invitations of a space. Get data from SpaceInviteDao.

  23. abstract def getRoleForUserInSpace(spaceId: UUID, userId: UUID): Option[Role]

    Retrieve the role associated to a user for a given space.

    Retrieve the role associated to a user for a given space.

    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

  24. abstract def getTimeToLive(space: UUID): Long

    Obtain the time to live for resources that are assigned to a specific space.

    Obtain the time to live for resources that are assigned to a specific space.

    space

    The identifier for the space to be queried

    returns

    The length of time, in milliseconds, that resources are allowed to persist in this space.

  25. abstract def getUsersInSpace(spaceId: UUID): List[User]

    Retrieve the users that are associated with a specific space.

    Retrieve the users that are associated with a specific space.

    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

  26. abstract def incrementCollectionCounter(collection: UUID, space: UUID, increment: Int): Unit

  27. abstract def insert(model: ProjectSpace): Option[String]

    insert new space, will return id if successful.

  28. abstract def isTimeToLiveEnabled(space: UUID): Boolean

    Determine if time to live for resources is enabled for a specific space.

    Determine if time to live for resources is enabled for a specific space.

    space

    The identifier for the space that is being checked

    returns

    A flag that denotes if time to live is enabled on this space.

  29. abstract def list(): List[ProjectSpace]

    list all spaces

  30. abstract def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permisions: 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 and matching title.

  31. abstract def listAccess(date: String, nextPage: Boolean, limit: Integer, permisions: 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.

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

    Return a list of spaces the user has access to matching title.

  33. abstract def listAccess(limit: Integer, permisions: 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.

  34. abstract def listByStatus(status: String): List[ProjectSpace]

    Return a list of spaces with specific status

  35. abstract 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.

  36. abstract 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.

  37. abstract 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.

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

    Return a list of spaces the user has created.

  39. abstract def purgeExpiredResources(space: UUID): Unit

    Service call to tell a space to clean up resources that are expired relative to the specified time to live.

    Service call to tell a space to clean up resources that are expired relative to the specified time to live.

    space

    The identifier for the space that will be purged

  40. abstract def removeCollection(collection: UUID, space: UUID): Unit

  41. abstract def removeCurationObject(spaceId: UUID, curationObjectId: UUID): Unit

  42. abstract def removeDataset(dataset: UUID, space: UUID): Unit

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

    Remove follower from a file.

  44. abstract def removeInvitationFromSpace(inviteId: UUID, spaceId: UUID): Unit

    Remove Invitation to a space

  45. abstract def removeRequest(id: UUID, userId: UUID): Unit

    Remove authorization request.

  46. abstract def removeUser(userId: UUID, space: UUID): Unit

    Remove a user from the space.

    Remove a user from the space.

    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

  47. abstract def update(model: ProjectSpace): Unit

    update space

  48. abstract def updateSpaceConfiguration(spaceId: UUID, name: String, description: String, timeToLive: Long, expireEnabled: Boolean, access: String): Unit

    Service call to update the information and configuration that are part of a space.

    Service call to update the information and configuration that are part of a space.

    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

  49. abstract 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

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