-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
117 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ public abstract class AbstractTest { | |
public static final String MANAGE_SUB = "urn:collab:person:example.com:manager"; | ||
public static final String INSTITUTION_ADMIN_SUB = "urn:collab:person:example.com:institution_admin"; | ||
public static final String INVITER_SUB = "urn:collab:person:example.com:inviter"; | ||
public static final String INVITER_WIKI_SUB = "urn:collab:person:example.com:inviter_wiki_sub"; | ||
public static final String GUEST_SUB = "urn:collab:person:example.com:guest"; | ||
public static final String GRAPH_INVITATION_HASH = "graph_invitation_hash"; | ||
public static final String INSTITUTION_ADMIN_INVITATION_HASH = "institution_admin_invitation_hash"; | ||
|
@@ -557,9 +558,11 @@ public void doSeed() { | |
new User(false, MANAGE_SUB, MANAGE_SUB, "example.com", "Mary", "Doe", "[email protected]"); | ||
User inviter = | ||
new User(false, INVITER_SUB, INVITER_SUB, "example.com", "Paul", "Doe", "[email protected]"); | ||
User wikiInviter = | ||
new User(false, INVITER_WIKI_SUB, INVITER_WIKI_SUB, "example.com", "James", "Doe", "[email protected]"); | ||
User guest = | ||
new User(false, GUEST_SUB, GUEST_SUB, "example.com", "Ann", "Doe", "[email protected]"); | ||
doSave(this.userRepository, superUser, institutionAdmin, manager, inviter, guest); | ||
doSave(this.userRepository, superUser, institutionAdmin, manager, inviter, wikiInviter, guest); | ||
|
||
Role wiki = | ||
new Role("Wiki", "Wiki desc", | ||
|
@@ -594,6 +597,8 @@ public void doSeed() { | |
UserRole wikiManager = | ||
new UserRole("system", manager, wiki, Authority.MANAGER); | ||
wikiManager.setGuestRoleIncluded(true); | ||
UserRole wikiInviterUserRole = | ||
new UserRole("system", wikiInviter, wiki, Authority.INVITER); | ||
UserRole calendarInviter = | ||
new UserRole("system", inviter, calendar, Authority.INVITER); | ||
UserRole mailInviter = | ||
|
@@ -604,7 +609,7 @@ public void doSeed() { | |
new UserRole("system", guest, wiki, Authority.GUEST); | ||
UserRole researchGuest = | ||
new UserRole("system", guest, research, Authority.GUEST); | ||
doSave(this.userRoleRepository, wikiManager, calendarInviter, mailInviter, storageGuest, wikiGuest, researchGuest); | ||
doSave(this.userRoleRepository, wikiManager, wikiInviterUserRole, calendarInviter, mailInviter, storageGuest, wikiGuest, researchGuest); | ||
|
||
String message = "Please join.."; | ||
Instant roleExpiryDate = Instant.now().plus(365, ChronoUnit.DAYS); | ||
|
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