Class StartedByUserRestriction
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.StartedByUserRestriction
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobRestriction>
,Serializable
Handles restrictions from User causes.
- Since:
- 0.4
- Author:
- 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
ConstructorDescriptionStartedByUserRestriction
(List<UserSelector> usersList, boolean checkUpstreamProjects, boolean acceptAutomaticRuns, boolean acceptAnonymousUsers) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptsUser
(String userId) Check if the method accepts the specified user.boolean
boolean
Deprecated.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
-
StartedByUserRestriction
@DataBoundConstructor public StartedByUserRestriction(List<UserSelector> usersList, boolean checkUpstreamProjects, boolean acceptAutomaticRuns, boolean acceptAnonymousUsers)
-
-
Method Details
-
getUsersList
-
isAcceptAutomaticRuns
Deprecated. -
isAcceptAnonymousUsers
public boolean isAcceptAnonymousUsers() -
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
-