@ExportedBean(defaultVisibility=2) public abstract class AbstractClaimBuildAction<T extends Saveable> extends DescribableTestAction implements BuildBadgeAction, ProminentProjectAction
DescribableTestAction.DescriptorImplDESCRIPTOR| Modifier and Type | Method and Description |
|---|---|
protected void |
applyClaim(String claimedByUser,
String providedReason,
String assignedByUser,
Date date,
boolean isSticky,
boolean isPropagated)
Applies the claim data to the
AbstractClaimBuildAction. |
protected void |
applyUnclaim()
Removes the claim data to the
AbstractClaimBuildAction. |
boolean |
canClaim() |
boolean |
canReassign() |
boolean |
canRelease() |
void |
claim(String claimedByUser,
String providedReason,
String assignedByUser,
boolean isSticky)
Deprecated.
|
void |
claim(String claimedByUser,
String providedReason,
String assignedByUser,
Date date,
boolean isSticky,
boolean isPropagated,
boolean notify)
Claims a
Saveable, and optionally notifies of the claim. |
protected void |
copyTo(AbstractClaimBuildAction<T> other)
Claim a new
Saveable with the same settings as this one. |
void |
doClaim(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp) |
void |
doUnclaim(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp) |
protected void |
evalGroovyScript() |
String |
getAssignedBy() |
String |
getAssignedByName() |
ClaimBuildFailureAnalyzer |
getBfaClaimer() |
Date |
getClaimDate() |
String |
getClaimedBy() |
String |
getClaimedByName() |
String |
getError() |
String |
getIconFileName() |
CommonMessagesProvider |
getMessageProvider() |
protected abstract Optional<AbstractClaimBuildAction> |
getNextAction() |
abstract String |
getNoun() |
protected abstract T |
getOwner() |
String |
getReason() |
String |
getReason(String error) |
String |
getUrlName() |
boolean |
hasClaimDate() |
boolean |
hasReason() |
boolean |
isBFAEnabled() |
boolean |
isClaimed() |
boolean |
isClaimedByMe() |
boolean |
isPropagateToFollowingBuildsByDefault() |
boolean |
isReclaim()
Deprecated.
use
isClaimed() instead |
boolean |
isSelfAssigned()
Was the action claimed by someone to themselves?
|
boolean |
isSticky() |
boolean |
isTransientClaim() |
boolean |
isUserAnonymous() |
void |
preventRefresh(org.kohsuke.stapler.StaplerResponse response) |
void |
setAssignedBy(String assignedBy) |
void |
setClaimedBy(String claimedBy) |
void |
setReason(String reason) |
void |
setSticky(boolean sticky) |
void |
setTransientClaim(boolean transientClaim) |
void |
unclaim()
Deprecated.
use
unclaim(boolean) |
void |
unclaim(boolean notify)
Deprecated.
use
unclaim(boolean) |
getDescriptorannotateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayNameprotected abstract T getOwner()
public final CommonMessagesProvider getMessageProvider()
@Deprecated public final boolean isReclaim()
isClaimed() insteadSaveable is claimed.Saveable is claimed, else falsepublic final ClaimBuildFailureAnalyzer getBfaClaimer()
public final String getIconFileName()
getIconFileName in interface Actionpublic final String getUrlName()
getUrlName in interface Actionpublic final void doClaim(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp)
throws Exception
Exception@Deprecated public final void claim(String claimedByUser, String providedReason, String assignedByUser, boolean isSticky)
claim(String, String, String, Date, boolean, boolean, boolean)Saveable.claimedByUser - name of the claiming userprovidedReason - reason for the claimassignedByUser - name of the assigned userisSticky - true if the claim has to be kept until resolutionpublic final void claim(String claimedByUser, String providedReason, String assignedByUser, Date date, boolean isSticky, boolean isPropagated, boolean notify)
Saveable, and optionally notifies of the claim.claimedByUser - name of the claiming userprovidedReason - reason for the claimassignedByUser - name of the assigner userdate - date of the claimisSticky - true if the claim has to be kept until resolutionisPropagated - true if the claim has to be propagated to following buildsnotify - true if notifications have to be sentprotected void applyClaim(String claimedByUser, String providedReason, String assignedByUser, Date date, boolean isSticky, boolean isPropagated)
AbstractClaimBuildAction.claimedByUser - name of the claiming userprovidedReason - reason for the claimassignedByUser - name of the assigner userdate - date of the claimisSticky - true if the claim has to be kept until resolutionisPropagated - true if the claim has to be propagated to following buildsprotected abstract Optional<AbstractClaimBuildAction> getNextAction()
public final void doUnclaim(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOException@Deprecated public final void unclaim()
unclaim(boolean)Saveable.public final void unclaim(boolean notify)
unclaim(boolean)Saveable, and optionally notifies of the unclaim.notify - true if notifications have to be sentprotected void applyUnclaim()
AbstractClaimBuildAction.@Exported public final String getClaimedBy()
@Exported public final String getAssignedBy()
public final String getClaimedByName()
public final String getAssignedByName()
public final void setClaimedBy(String claimedBy)
public final void setAssignedBy(String assignedBy)
@Exported public final boolean isClaimed()
protected void copyTo(AbstractClaimBuildAction<T> other)
Saveable with the same settings as this one.other - the source datapublic final boolean isClaimedByMe()
public final boolean canReassign()
public final boolean canClaim()
public final boolean canRelease()
public final boolean isUserAnonymous()
@Exported public final String getReason()
@JavaScriptMethod public final String getReason(String error) throws Exception
Exception@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public final void preventRefresh(org.kohsuke.stapler.StaplerResponse response)
public final void setReason(String reason)
public final boolean hasReason()
public final boolean isTransientClaim()
public final void setTransientClaim(boolean transientClaim)
public final boolean isSticky()
public final void setSticky(boolean sticky)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public final boolean isPropagateToFollowingBuildsByDefault()
public final String getError()
public final boolean isBFAEnabled()
@Exported public final Date getClaimDate()
public final boolean hasClaimDate()
public boolean isSelfAssigned()
public abstract String getNoun()
protected final void evalGroovyScript()
Copyright © 2016–2020. All rights reserved.