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 UserApiKeyDAO extends ModelCompanion[UserApiKey, ObjectId]

  7. object UserDAO extends ModelCompanion[User, ObjectId]

  8. def acceptTermsOfServices(id: UUID): Unit

    record the acceptance of the Terms of Service

    record the acceptance of the Terms of Service

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

    Add new role.

    Add new role.

    Definition Classes
    MongoDBUserServiceUserService
  10. 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
  11. def addUserKey(identityId: IdentityId, name: String, key: String): Unit

    Adds an api key for the user

    Adds an api key for the user

    Definition Classes
    MongoDBUserServiceUserService
  12. 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.

  13. final def asInstanceOf[T0]: T0

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

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. 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
  17. def count(): Long

    The number of users

    The number of users

    Definition Classes
    UserService
  18. 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
  19. def delete(id: UUID): Unit

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

    Delete role.

    Delete role.

    Definition Classes
    MongoDBUserServiceUserService
  21. def deleteUserKey(identityId: IdentityId, name: String): Unit

    Deletes an api key from the user

    Deletes an api key from the user

    Definition Classes
    MongoDBUserServiceUserService
  22. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. 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
  26. 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
  27. 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
  28. 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
  29. def findByKey(key: String): Option[User]

    Find a user by api key

    Find a user by api key

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

    Find existing role.

    Find existing role.

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

    Find existing by name

    Find existing by name

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

    Follow a collection.

    Follow a collection.

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

    Follow a dataset.

    Follow a dataset.

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

    Follow a file.

    Follow a file.

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

    Follow a file.

    Follow a file.

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

    Follow a user.

    Follow a user.

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

    Definition Classes
    MongoDBUserServiceUserService
  38. 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
  39. final def getClass(): Class[_]

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

  41. def getExtractionApiKey(identityId: IdentityId): UserApiKey

    Get extraction API key.

    Get extraction API key. If it doesn't exist create it.

    Definition Classes
    MongoDBUserServiceUserService
  42. 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
  43. def getUserKeys(identityId: IdentityId): List[UserApiKey]

    Gets all api keys for a user

    Gets all api keys for a user

    Definition Classes
    MongoDBUserServiceUserService
  44. 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.

  45. def hashCode(): Int

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

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

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

    Definition Classes
    MongoDBUserServiceUserService
  49. 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
  50. def list: List[User]

    List all users in the system.

    List all users in the system.

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

    List user roles.

    List user roles.

    Definition Classes
    MongoDBUserServiceUserService
  52. def listUsersInSpace(spaceId: UUID, role: Option[String]): List[User]

    spaceId

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

    role

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

    returns

    A list of users that are associated with a space

    Definition Classes
    MongoDBUserServiceUserService
    See also

    app.services.UserService

    Implementation of the UserService trait.

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

    Definition Classes
    AnyRef
  54. 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
  55. final def notify(): Unit

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

    Definition Classes
    AnyRef
  57. 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.

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

    Definition Classes
    AnyRef
  59. def toString(): String

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

    Unfollow a collection.

    Unfollow a collection.

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

    Unfollow a dataset.

    Unfollow a dataset.

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

    Unfollow a file.

    Unfollow a file.

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

    Unfollow a file.

    Unfollow a file.

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

    Unfollow a user.

    Unfollow a user.

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

    Definition Classes
    MongoDBUserServiceUserService
  66. 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
  67. def updateProfile(id: UUID, profile: Profile): Unit

    Update the give user profile

    Update the give user profile

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

    Updates the user repository preferences.

    Updates the user repository preferences.

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

    Update role

    Update role

    Definition Classes
    MongoDBUserServiceUserService
  70. 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
  71. 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
  72. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UserService

Inherited from AnyRef

Inherited from Any

Ungrouped