-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite of AuthenticatedUser and its provider hierarchy to query prov…
…idr capability capability rather than look at classes. Refactoring of the DataverseUserPage to adjust itself to the capabilities of the current user's provider.
- Loading branch information
1 parent
692f1f1
commit c64fd62
Showing
29 changed files
with
649 additions
and
493 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@startuml | ||
actor user | ||
participant DataverseUserPage as page | ||
participant "provider: AuthenticationProvider" as prv | ||
participant AuthenticationServiceBean as authSvc | ||
user --> page: HTTP GET | ||
== page init == | ||
... | ||
page -> authSvc : lookupProvider(session.user) | ||
activate authSvc | ||
page <-- authSvc: provider | ||
deactivate authSvc | ||
... | ||
|
||
== Can Update User? == | ||
page -> prv: isUserInfoUpdateAllowed() | ||
activate prv | ||
page <-- prv: true/false | ||
deactivate prv | ||
... | ||
|
||
== Save User == | ||
user --> page: save() | ||
page -> page: udi = createUserDisplayInfo() | ||
page -> prv: updateUserInfo( udi ) | ||
page -> authSvc: updateAuthentictedUser( session.user, udi ) | ||
|
||
@enduml |
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
5 changes: 0 additions & 5 deletions
5
src/main/java/edu/harvard/iq/dataverse/ManageGuestbooksPage.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
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
10 changes: 0 additions & 10 deletions
10
src/main/java/edu/harvard/iq/dataverse/authorization/UserLister.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.