ApplicationUserRepositoryAbstract

API

ApplicationUserRepositoryAbstract.java
class ApplicationUserRepositoryAbstract<U> {
  ApplicationUser newApplicationUser()
  ApplicationUser findOrCreateUserByUsername(String username)     (1)
  Optional<ApplicationUser> findByUsernameCached(String username)
  Optional<ApplicationUser> findByUsername(String username)
  Optional<ApplicationUser> findByEmailAddressCached(String emailAddress)
  Optional<ApplicationUser> findByEmailAddress(String emailAddress)
  Collection<ApplicationUser> find(String _search)
  Collection<ApplicationUser> findByAtPath(String atPath)
  Collection<ApplicationUser> findByRole(ApplicationRole role)
  Collection<ApplicationUser> findByTenancy(ApplicationTenancy genericTenancy)
  Collection<ApplicationUser> allUsers()
  Collection<ApplicationUser> findMatching(String search)
  void enable(ApplicationUser user)
  void disable(ApplicationUser user)
  boolean isAdminUser(ApplicationUser user)
  ApplicationUser newUser(String username, AccountType accountType, Consumer<ApplicationUser> beforePersist)
  boolean updatePassword(ApplicationUser user, String password)
  boolean isPasswordFeatureEnabled(ApplicationUser user)
}
1 findOrCreateUserByUsername(String)

Uses the QueryResultsCache in order to support multiple lookups from org.apache.causeway.extensions.secman.jdo.app.user.UserPermissionViewModel .

Members

findOrCreateUserByUsername(String)

Uses the QueryResultsCache in order to support multiple lookups from org.apache.causeway.extensions.secman.jdo.app.user.UserPermissionViewModel .

If the user does not exist, it will be automatically created.