Package step.core.access
Class UserAccessorImpl
- java.lang.Object
-
- step.core.accessors.AbstractAccessor
-
- step.core.accessors.AbstractCRUDAccessor<User>
-
- step.core.access.UserAccessorImpl
-
- All Implemented Interfaces:
UserAccessor
,Accessor<User>
,CRUDAccessor<User>
public class UserAccessorImpl extends AbstractCRUDAccessor<User> implements UserAccessor
-
-
Field Summary
-
Fields inherited from class step.core.accessors.AbstractCRUDAccessor
collection
-
Fields inherited from class step.core.accessors.AbstractAccessor
mongoClientSession
-
-
Constructor Summary
Constructors Constructor Description UserAccessorImpl(MongoClientSession clientSession)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
encryptPwd(String pwd)
List<User>
getAllUsers()
User
getByUsername(String username)
void
remove(String username)
-
Methods inherited from class step.core.accessors.AbstractCRUDAccessor
findByAttributes, findByAttributes, findManyByAttributes, findManyByAttributes, get, get, getAll, getRange, queryByAttributes, queryByAttributes, remove, save, save
-
Methods inherited from class step.core.accessors.AbstractAccessor
createOrUpdateCompoundIndex, createOrUpdateIndex, createOrUpdateTTLIndex, getJongoCollection, getMongoCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface step.core.accessors.Accessor
findByAttributes, findByAttributes, findManyByAttributes, findManyByAttributes, get, get, getAll, getRange
-
Methods inherited from interface step.core.accessors.CRUDAccessor
remove, save, save
-
-
-
-
Constructor Detail
-
UserAccessorImpl
public UserAccessorImpl(MongoClientSession clientSession)
-
-
Method Detail
-
remove
public void remove(String username)
- Specified by:
remove
in interfaceUserAccessor
-
getAllUsers
public List<User> getAllUsers()
- Specified by:
getAllUsers
in interfaceUserAccessor
-
getByUsername
public User getByUsername(String username)
- Specified by:
getByUsername
in interfaceUserAccessor
-
-