public interface OwncloudUserService
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String username)
Remove a User.
|
List<String> |
findAll()
Find all Users.
|
List<String> |
findAll(String filter)
Find all Users whose Display Name confirm to the Filter Criterion.
|
Optional<OwncloudUserDetails> |
findOne(String username)
Get the Details of a User or
Optional.empty() if
the User doesn't exist |
OwncloudUserDetails |
save(OwncloudModificationUser user)
Create or update a User.
|
Optional<OwncloudUserDetails> findOne(String username)
Optional.empty() if
the User doesn't existusername - Name of the Userorg.springframework.security.access.AccessDeniedException - Neither an Administrator nor the OwnerList<String> findAll()
org.springframework.security.access.AccessDeniedException - Not an AdministratorList<String> findAll(String filter)
filter - Filter Criterion for Display Nameorg.springframework.security.access.AccessDeniedException - Not an AdministratorOwncloudUserDetails save(OwncloudModificationUser user)
user - User Details to be savedorg.springframework.security.access.AccessDeniedException - either Modifications are not allowed OwncloudProperties.isEnableModifications() or neither an Administrator nor the OwnerOwncloudUsernameAlreadyExistsException - the User already exists (minimal chance to get this Exception)OwncloudGroupNotFoundException - referenced Group doesn't exist (either while adding or removing Membership)void delete(String username)
username - Name of the User to be removedorg.springframework.security.access.AccessDeniedException - either Modifications are not allowed OwncloudProperties#isEnableModifications() or neither an Administrator nor the Ownerorg.springframework.security.core.userdetails.UsernameNotFoundException - the User doesn't exist anymoreCopyright © 2016–2020 coolstuff.software. All rights reserved.