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.UserIdCausethat 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 voidcompatibilityAlias()booleanequals(Object o)StringgetUserName()Get the unique username string that identifies the build was a reference causeinthashCode()-
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:
getUserNamein classCause.UserIdCause
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCause.UserIdCause
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCause.UserIdCause
-
-