forked from eclipse-vorto/vorto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/2088 namespace admin is able to create a technical user for a…
… namespace (eclipse-vorto#2192) * eclipse-vorto#2088: * end-to-end workflow for technical user creation when adding a non-existing user to a namespace: 1. Admin edits collaborators in a given namespace 2. Admin selects "add user" 3. Given username does not exist 4. A new modal opens, prompting admin to create a new technical user with a given authorization provider ID among supported 5. Once created, modals close and the new technical user is created * no tests present yet Signed-off-by: Menahem Julien Raccah Lisei <[email protected]> * eclipse-vorto#2088: Small UI/UX improvements: * nicer design /spacing for the new "create technical user form" * add user autofocuses on the user name input box Signed-off-by: Menahem Julien Raccah Lisei <[email protected]> * eclipse-vorto#2088: Large UI/UX improvements: * User search when adding to namespace, with a drop down activating once user input field text length is >= 4 characters * Search retrieves users whose name contains search characters, shows and adds to drop-down * If no option selected or none available, username interpreted as is (can still be added as non-existing / technical user then) Signed-off-by: Menahem Julien Raccah Lisei <[email protected]> * eclipse-vorto#2088: * Made user search case-insensitive (not well optimized, sadly) * Added a few tests for search * Removed some extraneous import in TenantTechnicalUserDto Signed-off-by: Menahem Julien Raccah Lisei <[email protected]> * eclipse-vorto#2088: * Cleaned up some code * Added some javadoc where missing * Added a couple of account service tests (note that user and tenant repositories are mocked by the parent class, so the only applicable tests are the ones that will fail due to validation issues) Signed-off-by: Menahem Julien Raccah Lisei <[email protected]> * eclipse-vorto#2088: * Minimal javadoc on new tests Signed-off-by: Menahem Julien Raccah Lisei <[email protected]> * eclipse-vorto#2088: * Improved combobox * Cleaned up some garbage Signed-off-by: Menahem Julien Raccah Lisei <[email protected]>
- Loading branch information
1 parent
09041f5
commit 07c350d
Showing
11 changed files
with
894 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...re/src/main/java/org/eclipse/vorto/repository/web/account/dto/TenantTechnicalUserDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (c) 2019 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.vorto.repository.web.account.dto; | ||
|
||
/** | ||
* Represents a payload for requests to perform both: | ||
* <ul> | ||
* <li> | ||
* Create a new technical user with given name, roles and authentication provider ID | ||
* </li> | ||
* <li> | ||
* Add to the given namespace | ||
* </li> | ||
* </ul> | ||
* @author mena-bosch | ||
*/ | ||
public class TenantTechnicalUserDto extends TenantUserDto { | ||
private String authenticationProviderId; | ||
public String getAuthenticationProviderId() { | ||
return authenticationProviderId; | ||
} | ||
public void setAuthenticationProviderId(String value) { | ||
this.authenticationProviderId = value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.