public class StartedByMemberOfGroupRestriction extends AbstractUserCauseRestriction
JobRestriction
, which checks if a user belongs to the specified groups.
In several cases the extension may load user data from SecurityRealm
,
so there can be significant delays in Jenkins Queue
.StartedByUserRestriction
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
StartedByMemberOfGroupRestriction.DescriptorImpl |
DEFAULT
Constructor and Description |
---|
StartedByMemberOfGroupRestriction(List<GroupSelector> groupList,
boolean checkUpstreamProjects) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptsUser(String userId)
Check if the method accepts the specified user.
|
List<GroupSelector> |
getGroupList() |
canTake, canTake, isCheckUpstreamProjects
all, allDescriptors, getDescriptor
@DataBoundConstructor public StartedByMemberOfGroupRestriction(List<GroupSelector> groupList, boolean checkUpstreamProjects)
public List<GroupSelector> getGroupList()
protected boolean acceptsUser(@CheckForNull String userId)
AbstractUserCauseRestriction
AbstractUserCauseRestriction
.acceptsUser
in class AbstractUserCauseRestriction
userId
- User idCopyright © 2016–2018. All rights reserved.