@Validated
public interface DomainUserRepository
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(@NotNull String userName)
Delete user.
|
boolean |
exists(@NotNull String userName)
Check whether user exists or not.
|
Stream<org.bremersee.dccon.model.DomainUser> |
findAll(String query)
Find all users.
|
Optional<byte[]> |
findAvatar(@NotNull String userName,
org.bremersee.dccon.model.AvatarDefault avatarDefault,
Integer size)
Find avatar.
|
Optional<org.bremersee.dccon.model.DomainUser> |
findOne(@NotNull String userName)
Find user by name.
|
org.bremersee.dccon.model.DomainUser |
save(@NotNull org.bremersee.dccon.model.DomainUser domainUser,
Boolean updateGroups)
Save domain user.
|
void |
savePassword(@NotNull String userName,
@NotNull String newPassword)
Save password.
|
Stream<org.bremersee.dccon.model.DomainUser> findAll(@Nullable String query)
query - the queryOptional<org.bremersee.dccon.model.DomainUser> findOne(@NotNull @NotNull String userName)
userName - the user nameOptional<byte[]> findAvatar(@NotNull @NotNull String userName, @Nullable org.bremersee.dccon.model.AvatarDefault avatarDefault, @Nullable Integer size)
userName - the user nameavatarDefault - the avatar defaultsize - the sizeboolean exists(@NotNull
@NotNull String userName)
userName - the user nametrue if the user exists, otherwise falseorg.bremersee.dccon.model.DomainUser save(@NotNull
@NotNull org.bremersee.dccon.model.DomainUser domainUser,
Boolean updateGroups)
domainUser - the domain userupdateGroups - specifies whether the groups should also be updated or not (default is
false)void savePassword(@NotNull
@NotNull String userName,
@NotNull
@NotNull String newPassword)
userName - the user namenewPassword - the new passwordboolean delete(@NotNull
@NotNull String userName)
userName - the user nametrue if the user was removed; false if the user didn't existCopyright © 2020 bremersee.org. All rights reserved.