-
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.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/onlydust/com/marketplace/kernel/port/output/PermissionPort.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,24 @@ | ||
package onlydust.com.marketplace.kernel.port.output; | ||
|
||
import onlydust.com.marketplace.kernel.model.ProgramId; | ||
import onlydust.com.marketplace.kernel.model.ProjectId; | ||
import onlydust.com.marketplace.kernel.model.SponsorId; | ||
import onlydust.com.marketplace.kernel.model.UserId; | ||
|
||
public interface PermissionPort { | ||
boolean isUserProjectLead(ProjectId projectId, UserId projectLeadId); | ||
|
||
boolean isUserContributor(String contributionId, Long githubUserId); | ||
|
||
boolean isRepoLinkedToProject(ProjectId projectId, Long githubRepoId); | ||
|
||
boolean hasUserAccessToProject(ProjectId projectId, UserId userId); | ||
|
||
boolean hasUserAccessToProject(String projectSlug, UserId userId); | ||
|
||
boolean isUserSponsorLead(UserId userId, SponsorId sponsorId); | ||
|
||
boolean isUserSponsorLeadOfProgram(UserId userId, ProgramId programId); | ||
|
||
boolean isUserProgramLead(UserId userId, ProgramId programId); | ||
} |