@RestController public class DomainUserManagementController extends Object implements org.bremersee.dccon.api.DomainUserManagementApi
| Constructor and Description |
|---|
DomainUserManagementController(DomainUserService domainUserService,
DomainGroupService domainGroupService,
AuthenticationService authenticationService)
Instantiates a new domain user management controller.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.bremersee.dccon.model.DomainUser> |
addUser(Boolean email,
org.bremersee.common.model.TwoLetterLanguageCode language,
org.bremersee.dccon.model.DomainUser domainUser) |
org.springframework.http.ResponseEntity<Boolean> |
deleteUser(String userName) |
org.springframework.http.ResponseEntity<org.bremersee.dccon.model.DomainUser> |
getUser(String userName) |
org.springframework.http.ResponseEntity<byte[]> |
getUserAvatar(String userName,
org.bremersee.dccon.model.AvatarDefault avatarDefault,
Integer size) |
org.springframework.http.ResponseEntity<List<org.bremersee.dccon.model.DomainUser>> |
getUsers(String sort,
String query) |
org.springframework.http.ResponseEntity<Boolean> |
isUserNameInUse(String userName) |
org.springframework.http.ResponseEntity<org.bremersee.dccon.model.DomainUser> |
updateUser(String userName,
Boolean updateGroups,
@Valid org.bremersee.dccon.model.DomainUser domainUser) |
org.springframework.http.ResponseEntity<Void> |
updateUserPassword(String userName,
Boolean email,
org.bremersee.common.model.TwoLetterLanguageCode language,
@Valid org.bremersee.dccon.model.Password newPassword) |
org.springframework.http.ResponseEntity<Boolean> |
userExists(String userName) |
public DomainUserManagementController(DomainUserService domainUserService, DomainGroupService domainGroupService, AuthenticationService authenticationService)
domainUserService - the domain user servicedomainGroupService - the domain group serviceauthenticationService - the authentication service@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\', \'ROLE_LOCAL_USER\')") public org.springframework.http.ResponseEntity<List<org.bremersee.dccon.model.DomainUser>> getUsers(String sort, String query)
getUsers in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\')") public org.springframework.http.ResponseEntity<org.bremersee.dccon.model.DomainUser> addUser(Boolean email, org.bremersee.common.model.TwoLetterLanguageCode language, org.bremersee.dccon.model.DomainUser domainUser)
addUser in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\', \'ROLE_LOCAL_USER\')") public org.springframework.http.ResponseEntity<org.bremersee.dccon.model.DomainUser> getUser(String userName)
getUser in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\', \'ROLE_LOCAL_USER\')") public org.springframework.http.ResponseEntity<byte[]> getUserAvatar(String userName, org.bremersee.dccon.model.AvatarDefault avatarDefault, Integer size)
getUserAvatar in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\')") public org.springframework.http.ResponseEntity<org.bremersee.dccon.model.DomainUser> updateUser(String userName, Boolean updateGroups, @Valid @Valid org.bremersee.dccon.model.DomainUser domainUser)
updateUser in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\', \'ROLE_LOCAL_USER\')") public org.springframework.http.ResponseEntity<Void> updateUserPassword(String userName, Boolean email, org.bremersee.common.model.TwoLetterLanguageCode language, @Valid @Valid org.bremersee.dccon.model.Password newPassword)
updateUserPassword in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\', \'ROLE_LOCAL_USER\')") public org.springframework.http.ResponseEntity<Boolean> userExists(String userName)
userExists in interface org.bremersee.dccon.api.DomainUserManagementApi@PreAuthorize(value="hasAnyAuthority(\'ROLE_ADMIN\', \'ROLE_DC_CON_ADMIN\', \'ROLE_LOCAL_USER\')") public org.springframework.http.ResponseEntity<Boolean> isUserNameInUse(String userName)
isUserNameInUse in interface org.bremersee.dccon.api.DomainUserManagementApiCopyright © 2020 bremersee.org. All rights reserved.