Interface UserAccessor

All Superinterfaces:
step.core.accessors.Accessor<User>
All Known Implementing Classes:
InMemoryUserAccessor, UserAccessorImpl

public interface UserAccessor extends step.core.accessors.Accessor<User>
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    Register hooks to be executed after removing a User, thrown exception don't stop the execution of next hooks
    void
    Register hooks to be executed before saving a User, any thrown exception will abort saving the user
    void
    remove(String username)
     

    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

      void remove(String username)
    • getAllUsers

      List<User> getAllUsers()
    • getByUsername

      User getByUsername(String username)
    • registerOnSaveHook

      void registerOnSaveHook(Function<User,Void> f)
      Register hooks to be executed before saving a User, any thrown exception will abort saving the user
      Parameters:
      f - the function to execute
    • registerOnRemoveHook

      void registerOnRemoveHook(Function<User,Void> f)
      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