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 ClassesNested 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
ConstructorsConstructorDescriptionStartedByUserRestriction(List<UserSelector> usersList, boolean checkUpstreamProjects, boolean acceptAutomaticRuns, boolean acceptAnonymousUsers)  - 
Method Summary
Modifier 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.AbstractUserCauseRestriction
canTake, canTake, isCheckUpstreamProjectsMethods 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:AbstractUserCauseRestrictionCheck if the method accepts the specified user. The user will be automatically extracted by the logic inAbstractUserCauseRestriction.- Specified by:
 acceptsUserin classAbstractUserCauseRestriction- Parameters:
 userId- User id- Returns:
 - true if the restriction accepts the user
 
 
 -