public final class OUsersDbUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<com.orientechnologies.orient.core.record.impl.ODocument> |
getDefaultOrienteerUserPerspective() |
static Optional<com.orientechnologies.orient.core.metadata.security.ORole> |
getRoleByName(String name) |
static Optional<OrienteerUser> |
getUserByEmail(String email)
Search user by given email
|
static Optional<OrienteerUser> |
getUserById(String id)
Search user by given id
|
static Optional<OrienteerUser> |
getUserByRestoreId(String restoreId)
Search user by given restore id
|
static boolean |
isUserExistsWithEmail(String email)
Check if user exists with given email
|
static boolean |
isUserExistsWithId(String id)
Check if user exists with given id
|
static boolean |
isUserExistsWithRestoreId(String restoreId)
Check if user exists with given restore id
|
public static Optional<com.orientechnologies.orient.core.record.impl.ODocument> getDefaultOrienteerUserPerspective()
OrienteerUsersModule.ORIENTEER_USER_PERSPECTIVEpublic static Optional<com.orientechnologies.orient.core.metadata.security.ORole> getRoleByName(String name)
name - String role namepublic static Optional<OrienteerUser> getUserByRestoreId(String restoreId)
restoreId - String restore idpublic static Optional<OrienteerUser> getUserById(String id)
id - user idpublic static Optional<OrienteerUser> getUserByEmail(String email)
email - user emailpublic static boolean isUserExistsWithRestoreId(String restoreId)
restoreId - user restore idpublic static boolean isUserExistsWithEmail(String email)
email - user emailpublic static boolean isUserExistsWithId(String id)
id - user idCopyright © 2019. All rights reserved.