Class ReferenceUserIdCause
- java.lang.Object
-
- hudson.model.Cause
-
- hudson.model.Cause.UserIdCause
-
- hudson.plugins.project_inheritance.projects.causes.ReferenceUserIdCause
-
public class ReferenceUserIdCause extends Cause.UserIdCause
Wrapper aroundCause.UserIdCause
that behaves exactly like it and merely serves as a marker for whether or not a run started by this cause should be considered a reference run or not.As such, the only method it overwrites is the getUserName() method, to signify that it has been run as a reference, without having to alter the other messages and descriptions.
- Author:
- Martin Schroeder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
-
Constructor Summary
Constructors Constructor Description ReferenceUserIdCause()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
compatibilityAlias()
boolean
equals(Object o)
String
getUserName()
Get the unique username string that identifies the build was a reference causeint
hashCode()
-
Methods inherited from class hudson.model.Cause.UserIdCause
getShortDescription, getUserId, getUserUrl, print
-
-
-
-
Method Detail
-
compatibilityAlias
@Initializer(before=PLUGINS_PREPARED) public static void compatibilityAlias()
-
getUserName
public String getUserName()
Get the unique username string that identifies the build was a reference cause- Overrides:
getUserName
in classCause.UserIdCause
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCause.UserIdCause
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCause.UserIdCause
-
-