Class GitHubPRUserRestriction
- java.lang.Object
-
- org.jenkinsci.plugins.github.pullrequest.restrictions.GitHubPRUserRestriction
-
- All Implemented Interfaces:
Describable<GitHubPRUserRestriction>
public class GitHubPRUserRestriction extends Object implements Describable<GitHubPRUserRestriction>
Whether it allowed this user or org with users to do something.- Author:
- Kanstantsin Shautsou
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubPRUserRestriction.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description GitHubPRUserRestriction(String orgs, String users)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor<GitHubPRUserRestriction>
getDescriptor()
String
getOrgs()
String
getUsers()
boolean
isUserMemberOfOrganization(String organisation, org.kohsuke.github.GHUser member)
boolean
isWhitelisted(org.kohsuke.github.GHUser user)
Checks that user is allowed to control
-
-
-
Method Detail
-
isWhitelisted
public boolean isWhitelisted(org.kohsuke.github.GHUser user)
Checks that user is allowed to control- Parameters:
user
- commented user- Returns:
- true if user/org whitelisted
-
getOrgs
public String getOrgs()
-
getUsers
public String getUsers()
-
isUserMemberOfOrganization
public boolean isUserMemberOfOrganization(String organisation, org.kohsuke.github.GHUser member) throws IOException
- Throws:
IOException
-
getDescriptor
public Descriptor<GitHubPRUserRestriction> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<GitHubPRUserRestriction>
-
-