services.mongodb

MongoDBUserService

class MongoDBUserService extends UserService

Wrapper around SecureSocial to get access to the users. There is no save option since all saves should be done through securesocial right now. Eventually this should become a wrapper for securesocial and we use User everywhere.

Linear Supertypes
UserService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDBUserService
  2. UserService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoDBUserService(files: FileService, datasets: DatasetService, collections: CollectionService, spaces: SpaceService, comments: CommentService, events: EventService, folders: FolderService, metadata: MetadataService, curations: CurationService)

    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. object UserDAO extends ModelCompanion[User, ObjectId]

  7. def acceptTermsOfServices(id: UUID): Unit

    record the acceptance of the Terms of Service

    record the acceptance of the Terms of Service

    Definition Classes
    MongoDBUserServiceUserService
  8. def addRole(role: Role): Unit

    Add new role.

    Add new role.

    Definition Classes
    MongoDBUserServiceUserService
  9. def addUserDatasetView(email: String, dataset: UUID): Unit

    Adds a dataset view TODO: use UUID instead of email

    Adds a dataset view TODO: use UUID instead of email

    Definition Classes
    MongoDBUserServiceUserService
  10. def addUserToSpace(userId: UUID, role: Role, spaceId: UUID): Unit

    userId

    The identifier of the user that is being modified by this service

    spaceId

    The identifier of the space that is being associated with the user

    Definition Classes
    MongoDBUserServiceUserService
    See also

    app.services.UserService

    Implementation of the UserService trait.

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def changeUserRoleInSpace(userId: UUID, role: Role, spaceId: UUID): Unit

    userId

    The identifier of the user to be modified

    role

    The new role to be associated with the user

    spaceId

    The identifier of the space

    Definition Classes
    MongoDBUserServiceUserService
    See also

    app.services.UserService

    Implementation of the UserService trait.

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def count(filter: Option[String]): Long

    The number of objects that are available based on the filter

    The number of objects that are available based on the filter

    Definition Classes
    MongoDBUserServiceUserService
  15. def count(): Long

    The number of users

    The number of users

    Definition Classes
    UserService
  16. def createNewListInUser(email: String, field: String, fieldList: List[Any]): Unit

    Creates a new list in User Model for friends, or viewed TODO: use UUID instead of email

    Creates a new list in User Model for friends, or viewed TODO: use UUID instead of email

    Definition Classes
    MongoDBUserServiceUserService
  17. def delete(id: UUID): Unit

    Definition Classes
    MongoDBUserServiceUserService
  18. def deleteRole(id: String): Unit

    Delete role.

    Delete role.

    Definition Classes
    MongoDBUserServiceUserService
  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 findByEmail(email: String): Option[User]

    Return a specific user based on the email provided.

    Return a specific user based on the email provided.

    Definition Classes
    MongoDBUserServiceUserService
  23. def findById(id: UUID): Option[User]

    Return a specific user based on the id provided.

    Return a specific user based on the id provided.

    Definition Classes
    MongoDBUserServiceUserService
  24. def findByIdentity(userId: String, providerId: String): Option[User]

    Return a specific user based on an Identity

    Return a specific user based on an Identity

    Definition Classes
    MongoDBUserServiceUserService
  25. def findByIdentity(identity: Identity): Option[User]

    Return a specific user based on an Identity

    Return a specific user based on an Identity

    Definition Classes
    MongoDBUserServiceUserService
  26. def findRole(id: String): Option[Role]

    Find existing role.

    Find existing role.

    Definition Classes
    MongoDBUserServiceUserService
  27. def findRoleByName(name: String): Option[Role]

    Find existing by name

    Find existing by name

    Definition Classes
    MongoDBUserServiceUserService
  28. def followCollection(followerId: UUID, collectionId: UUID): Unit

    Follow a collection.

    Follow a collection.

    Definition Classes
    MongoDBUserServiceUserService
  29. def followDataset(followerId: UUID, datasetId: UUID): Unit

    Follow a dataset.

    Follow a dataset.

    Definition Classes
    MongoDBUserServiceUserService
  30. def followFile(followerId: UUID, fileId: UUID): Unit

    Follow a file.

    Follow a file.

    Definition Classes
    MongoDBUserServiceUserService
  31. def followResource(followerId: UUID, resourceRef: ResourceRef): Unit

    Follow a file.

    Follow a file.

    Definition Classes
    MongoDBUserServiceUserService
  32. def followUser(followeeId: UUID, followerId: UUID): Unit

    Follow a user.

    Follow a user.

    Definition Classes
    MongoDBUserServiceUserService
  33. def get(id: UUID): Option[User]

    Definition Classes
    MongoDBUserServiceUserService
  34. def getAdmins: List[User]

    Return a list of all users that are admins and are active

    Return a list of all users that are admins and are active

    Definition Classes
    MongoDBUserServiceUserService
  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. def getEntityName(uuid: UUID, objType: String): String

  37. def getTopRecommendations(followerIDs: List[UUID], excludeIDs: List[UUID], num: Int): List[MiniEntity]

    return List of tuples {id, objectType, score} representing the top N recommendations for an object with followerIDs This list will also filter out excludeIDs (i.

    return List of tuples {id, objectType, score} representing the top N recommendations for an object with followerIDs This list will also filter out excludeIDs (i.e. items the logged in user already follows)

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

    userId

    The identifier of the user to retrieve

    spaceId

    The identifier of the space to get the role for

    returns

    The role that the user has associated with the space specified

    Definition Classes
    MongoDBUserServiceUserService
    See also

    app.services.UserService

    Implementation of the UserService trait.

  39. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  40. def insert(model: User): Option[User]

    Definition Classes
    MongoDBUserServiceUserService
  41. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  42. def list(id: Option[String], nextPage: Boolean, limit: Integer): List[User]

    Definition Classes
    MongoDBUserServiceUserService
  43. def list(order: Option[String], direction: Direction, start: Option[String], limit: Integer, filter: Option[String]): List[User]

    Return a list objects that are available based on the filter as well as the other options.

    Return a list objects that are available based on the filter as well as the other options.

    order

    the key to use to order the data, default is natural ordering of underlying implementation

    direction

    the direction to order the data in

    start

    the first element that should be returned based on the order key

    limit

    the maximum number of elements to return

    filter

    is a json representation of the filter to be applied

    Definition Classes
    MongoDBUserServiceUserService
  44. def list: List[User]

    List all users in the system.

    List all users in the system.

    Definition Classes
    UserService
  45. def listRoles(): List[Role]

    List user roles.

    List user roles.

    Definition Classes
    MongoDBUserServiceUserService
  46. def listUsersInSpace(spaceId: UUID): List[User]

    spaceId

    The identifier of the space to build a list of users for

    returns

    A list of users that are associated with a space

    Definition Classes
    MongoDBUserServiceUserService
    See also

    app.services.UserService

    Implementation of the UserService trait.

  47. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  48. def newTermsOfServices(): Unit

    new terms of service, all users will need to agree to this

    new terms of service, all users will need to agree to this

    Definition Classes
    MongoDBUserServiceUserService
  49. final def notify(): Unit

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

    Definition Classes
    AnyRef
  51. def removeUserFromSpace(userId: UUID, spaceId: UUID): Unit

    userId

    The identifier of the user that is being modified by this service

    spaceId

    The space to be disassociated from the user

    Definition Classes
    MongoDBUserServiceUserService
    See also

    app.services.UserService

    Implementation of the UserService trait.

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

    Definition Classes
    AnyRef
  53. def toString(): String

    Definition Classes
    AnyRef → Any
  54. def unfollowCollection(followerId: UUID, collectionId: UUID): Unit

    Unfollow a collection.

    Unfollow a collection.

    Definition Classes
    MongoDBUserServiceUserService
  55. def unfollowDataset(followerId: UUID, datasetId: UUID): Unit

    Unfollow a dataset.

    Unfollow a dataset.

    Definition Classes
    MongoDBUserServiceUserService
  56. def unfollowFile(followerId: UUID, fileId: UUID): Unit

    Unfollow a file.

    Unfollow a file.

    Definition Classes
    MongoDBUserServiceUserService
  57. def unfollowResource(followerId: UUID, resourceRef: ResourceRef): Unit

    Unfollow a file.

    Unfollow a file.

    Definition Classes
    MongoDBUserServiceUserService
  58. def unfollowUser(followeeId: UUID, followerId: UUID): Unit

    Unfollow a user.

    Unfollow a user.

    Definition Classes
    MongoDBUserServiceUserService
  59. def update(model: User): Unit

    Definition Classes
    MongoDBUserServiceUserService
  60. def updateAdmins(): Unit

    Activate all users, and mark them as admin, who are listed in application.

    Activate all users, and mark them as admin, who are listed in application.conf by email

    Definition Classes
    MongoDBUserServiceUserService
  61. def updateProfile(id: UUID, profile: Profile): Unit

    Update the give user profile

    Update the give user profile

    Definition Classes
    MongoDBUserServiceUserService
  62. def updateRepositoryPreferences(id: UUID, preferences: Map[String, String]): Unit

    Updates the user repository preferences.

    Updates the user repository preferences.

    Definition Classes
    MongoDBUserServiceUserService
  63. def updateRole(role: Role): Unit

    Update role

    Update role

    Definition Classes
    MongoDBUserServiceUserService
  64. def updateUserField(id: UUID, field: String, fieldText: Any): Unit

    Updates a value in the User Model

    Updates a value in the User Model

    Definition Classes
    MongoDBUserServiceUserService
  65. def updateUserFullName(id: UUID, name: String): Unit

    Update full name in all mini users (collections, uploads, datasets, curatonObjects, curationFiles, comments,

    Update full name in all mini users (collections, uploads, datasets, curatonObjects, curationFiles, comments,

    Definition Classes
    MongoDBUserServiceUserService
  66. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UserService

Inherited from AnyRef

Inherited from Any

Ungrouped