Class GenericCauseDeterminant

java.lang.Object
org.jenkinsci.plugins.builduser.varsetter.impl.GenericCauseDeterminant
All Implemented Interfaces:
IUsernameSettable<org.jenkinsci.plugins.gwt.GenericCause>

public class GenericCauseDeterminant extends Object implements IUsernameSettable<org.jenkinsci.plugins.gwt.GenericCause>
  • Field Details

  • Constructor Details

    • GenericCauseDeterminant

      public GenericCauseDeterminant()
  • Method Details

    • setJenkinsUserBuildVars

      public boolean setJenkinsUserBuildVars(org.jenkinsci.plugins.gwt.GenericCause cause, Map<String,String> variables)
      Description copied from interface: IUsernameSettable
      Adds username build variables extracted from build cause to map of build variables.
      Specified by:
      setJenkinsUserBuildVars in interface IUsernameSettable<org.jenkinsci.plugins.gwt.GenericCause>
      Parameters:
      cause - cause where to get username from.
      variables - ap of build variables, where to add username variables.
      Returns:
      true if username was determined and added to the passed map, false otherwise.
    • getUsedCauseClass

      public Class<org.jenkinsci.plugins.gwt.GenericCause> getUsedCauseClass()
      Description copied from interface: IUsernameSettable
      Returns Cause subclass used to determine username.
      Specified by:
      getUsedCauseClass in interface IUsernameSettable<org.jenkinsci.plugins.gwt.GenericCause>
      Returns:
      class used to determine username.