-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ELTER-20-B2SHARE-import' into 'develop'
Add B2shareImportService See merge request eip/catalogue!535
- Loading branch information
Showing
8 changed files
with
1,065 additions
and
87 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 |
---|---|---|
|
@@ -189,6 +189,16 @@ public CatalogueUser sitesMetadataImport() throws UsernameAlreadyTakenException | |
return user; | ||
} | ||
|
||
@Bean | ||
public CatalogueUser b2shareMetadataImport() throws UsernameAlreadyTakenException { | ||
val user = new CatalogueUser() | ||
.setUsername("B2SHARE metadata import") | ||
.setEmail("[email protected]"); | ||
addUserToGroup(user, ELTER_EDITOR, ELTER_PUBLISHER); | ||
userStore().addUser(user, "password"); | ||
return user; | ||
} | ||
|
||
@Bean | ||
public CatalogueUser erammpEditor() throws UsernameAlreadyTakenException { | ||
val user = new CatalogueUser() | ||
|
476 changes: 476 additions & 0 deletions
476
java/src/main/java/uk/ac/ceh/gateway/catalogue/elter/B2shareImportService.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.