= ApplicationUserRepository
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

== API

[source,java]
.ApplicationUserRepository.java
----
interface ApplicationUserRepository {
  ApplicationUser newApplicationUser()     // <.>
  Optional<ApplicationUser> findByUsername(String username)
  ApplicationUser findOrCreateUserByUsername(String username)
  Collection<ApplicationUser> allUsers()
  Collection<ApplicationUser> find(String search)
  Collection<ApplicationUser> findByAtPath(String atPath)
  Collection<ApplicationUser> findByRole(ApplicationRole role)
  Collection<ApplicationUser> findByTenancy(ApplicationTenancy tenancy)
  Optional<ApplicationUser> findByEmailAddress(String emailAddress)
  Collection<ApplicationUser> findMatching(String search)     // <.>
  void enable(ApplicationUser user)
  void disable(ApplicationUser user)
  boolean isAdminUser(ApplicationUser user)
  boolean isPasswordFeatureEnabled(ApplicationUser holder)
  boolean updatePassword(ApplicationUser user, String password)
  ApplicationUser newUser(String username, AccountType accountType, Consumer<ApplicationUser> beforePersist)
  ApplicationUser upsertLocal(String username, Password password, ApplicationUserStatus status)
  ApplicationUser newLocalUser(String username, Password password, ApplicationUserStatus status)
  ApplicationUser newDelegateUser(String username, ApplicationUserStatus status)
}
----

<.> xref:#newApplicationUser_[newApplicationUser()]
<.> xref:#findMatching_String[findMatching(String)]
+
--
auto-complete support
--

== Members

[#newApplicationUser_]
=== newApplicationUser()

[#findMatching_String]
=== findMatching(String)

auto-complete support
