Package step.core.access
Interface UserAccessor
- All Superinterfaces:
step.core.accessors.Accessor<User>
- All Known Implementing Classes:
InMemoryUserAccessor
,UserAccessorImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetByUsername
(String username) void
Register hooks to be executed after removing a User, thrown exception don't stop the execution of next hooksvoid
Register hooks to be executed before saving a User, any thrown exception will abort saving the uservoid
Methods inherited from interface step.core.accessors.Accessor
enableVersioning, findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getCollectionDriver, getHistory, getRange, isVersioningEnabled, remove, restoreVersion, save, save, stream, streamLazy
-
Method Details
-
remove
-
getAllUsers
-
getByUsername
-
registerOnSaveHook
Register hooks to be executed before saving a User, any thrown exception will abort saving the user- Parameters:
f
- the function to execute
-
registerOnRemoveHook
Register hooks to be executed after removing a User, thrown exception don't stop the execution of next hooks- Parameters:
f
- the function to execute
-