Package step.core.access
Class UserAccessorImpl
java.lang.Object
step.core.accessors.AbstractAccessor<User>
step.core.access.UserAccessorImpl
- All Implemented Interfaces:
UserAccessor,step.core.accessors.Accessor<User>
- Direct Known Subclasses:
InMemoryUserAccessor
public class UserAccessorImpl
extends step.core.accessors.AbstractAccessor<User>
implements UserAccessor
-
Field Summary
Fields inherited from class step.core.accessors.AbstractAccessor
collectionDriver, newVersionThresholdMs, versionedCollectionDriver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringencryptPwd(String pwd) getByUsername(String username) voidRegister hooks to be executed after removing a User, thrown exception don't stop the execution of next hooksvoidRegister hooks to be executed before saving a User, any thrown exception will abort saving the uservoidvoidremove(org.bson.types.ObjectId id) voidMethods inherited from class step.core.accessors.AbstractAccessor
createOrUpdateCompoundIndex, createOrUpdateIndex, enableVersioning, findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getCollectionDriver, getHistory, getRange, isVersioningEnabled, restoreVersion, stream, streamLazyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface step.core.accessors.Accessor
enableVersioning, findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getCollectionDriver, getHistory, getRange, isVersioningEnabled, restoreVersion, stream, streamLazy
-
Constructor Details
-
UserAccessorImpl
-
-
Method Details
-
remove
- Specified by:
removein interfaceUserAccessor
-
remove
public void remove(org.bson.types.ObjectId id) -
save
-
save
-
getAllUsers
- Specified by:
getAllUsersin interfaceUserAccessor
-
getByUsername
- Specified by:
getByUsernamein interfaceUserAccessor
-
registerOnSaveHook
Description copied from interface:UserAccessorRegister hooks to be executed before saving a User, any thrown exception will abort saving the user- Specified by:
registerOnSaveHookin interfaceUserAccessor- Parameters:
f- the function to execute
-
registerOnRemoveHook
Description copied from interface:UserAccessorRegister hooks to be executed after removing a User, thrown exception don't stop the execution of next hooks- Specified by:
registerOnRemoveHookin interfaceUserAccessor- Parameters:
f- the function to execute
-
encryptPwd
-