Class StartedByMemberOfGroupRestriction
java.lang.Object
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.job.AbstractUserCauseRestriction
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.job.StartedByMemberOfGroupRestriction
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobRestriction>
,Serializable
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
.- Since:
- 0.4
- Author:
- Christopher Suarez, Oleg Nenashev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
DEFAULT
-
Constructor Summary
ConstructorDescriptionStartedByMemberOfGroupRestriction
(List<GroupSelector> groupList, boolean checkUpstreamProjects) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptsUser
(String userId) Check if the method accepts the specified user.Methods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.job.AbstractUserCauseRestriction
canTake, canTake, isCheckUpstreamProjects
Methods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
all, allDescriptors, getDescriptor
-
Constructor Details
-
StartedByMemberOfGroupRestriction
@DataBoundConstructor public StartedByMemberOfGroupRestriction(List<GroupSelector> groupList, boolean checkUpstreamProjects)
-
-
Method Details
-
getGroupList
-
acceptsUser
Description copied from class:AbstractUserCauseRestriction
Check if the method accepts the specified user. The user will be automatically extracted by the logic inAbstractUserCauseRestriction
.- Specified by:
acceptsUser
in classAbstractUserCauseRestriction
- Parameters:
userId
- User id- Returns:
- true if the restriction accepts the user
-