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 SummaryNested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestrictionDEFAULT
- 
Constructor SummaryConstructorsConstructorDescriptionStartedByUserRestriction(List<UserSelector> usersList, boolean checkUpstreamProjects, boolean acceptAutomaticRuns, boolean acceptAnonymousUsers) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanacceptsUser(String userId) Check if the method accepts the specified user.booleanbooleanDeprecated.Methods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.job.AbstractUserCauseRestrictioncanTake, canTake, isCheckUpstreamProjectsMethods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestrictionall, allDescriptors, getDescriptor
- 
Constructor Details- 
StartedByUserRestriction@DataBoundConstructor public StartedByUserRestriction(List<UserSelector> usersList, boolean checkUpstreamProjects, boolean acceptAutomaticRuns, boolean acceptAnonymousUsers) 
 
- 
- 
Method Details- 
getUsersList
- 
isAcceptAutomaticRunsDeprecated.
- 
isAcceptAnonymousUserspublic boolean isAcceptAnonymousUsers()
- 
acceptsUserDescription copied from class:AbstractUserCauseRestrictionCheck if the method accepts the specified user. The user will be automatically extracted by the logic inAbstractUserCauseRestriction.- Specified by:
- acceptsUserin class- AbstractUserCauseRestriction
- Parameters:
- userId- User id
- Returns:
- true if the restriction accepts the user
 
 
-