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

  10. final def asInstanceOf[T0]: T0

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

  12. def clone(): AnyRef

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

    The number of users

    The number of users

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

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

    Delete role.

    Delete role.

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def findByProvider(provider: String, id: String): Option[User]

    Definition Classes
    MongoDBUserServiceUserService
  22. def findLocalAccountByEmail(email: String): Option[User]

    Find a user by email address.

    Find a user by email address. This is a hack and should not be used. This will only search the local accounts!. See also CATS-666

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

    Find existing role.

    Find existing role.

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

    Find existing by name

    Find existing by name

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

    Follow a collection.

    Follow a collection.

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

    Follow a dataset.

    Follow a dataset.

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

    Follow a file.

    Follow a file.

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

    Follow a file.

    Follow a file.

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

    Follow a user.

    Follow a user.

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

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

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

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

  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. final def isInstanceOf[T0]: Boolean

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

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

    List all users in the system.

    List all users in the system.

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

    List user roles.

    List user roles.

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

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

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

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

    Definition Classes
    AnyRef
  47. def recordLogin(id: UUID): Unit

    Record the fact that the user logged in

    Record the fact that the user logged in

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

  49. def save(user: User): Option[User]

    Definition Classes
    MongoDBUserServiceUserService
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  51. def toString(): String

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

    Unfollow a collection.

    Unfollow a collection.

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

    Unfollow a dataset.

    Unfollow a dataset.

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

    Unfollow a file.

    Unfollow a file.

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

    Unfollow a file.

    Unfollow a file.

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

    Unfollow a user.

    Unfollow a user.

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

    Update the give user profile

    Update the give user profile

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

    Updates the user repository preferences.

    Updates the user repository preferences.

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

    Update role

    Update role

    Definition Classes
    MongoDBUserServiceUserService
  61. 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
  62. 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
  63. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UserService

Inherited from AnyRef

Inherited from Any

Ungrouped