public abstract class SimplePersona extends Persona
Persona that renders the plain text quote with an icon.Persona.ConverterImpl| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
SimplePersona(String id,
List<String> quotes,
List<String> quotesSuccess,
List<String> quotesFailure,
List<String> quotesOther) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Quote |
generateProjectQuote(hudson.model.AbstractProject<?,?> project,
LocationSelector selector)
Generates a random quote for the project top page.
|
Quote |
generateQuote(hudson.model.AbstractBuild<?,?> build,
LocationSelector selector)
Generates a random quote for the given build.
|
abstract Image |
getDefaultImage() |
abstract Image |
getImage(hudson.model.AbstractBuild<?,?> build)
Determines the icon and the background to render.
|
String |
getRandomQuoteText(hudson.model.AbstractBuild<?,?> build) |
protected void |
setQuotes(List<String> quotes,
List<String> quotesSuccess,
List<String> quotesFailure,
List<String> quotesOther) |
protected SimplePersona(String id, List<String> quotes, List<String> quotesSuccess, List<String> quotesFailure, List<String> quotesOther)
id - Unique identifier of this persona.quotes - Collection of quotes.quotesSuccess - Collection of success quotes.quotesFailure - Collection of failure quotes.quotesOther - Collection of other quotes.protected void setQuotes(List<String> quotes, List<String> quotesSuccess, List<String> quotesFailure, List<String> quotesOther)
public abstract Image getImage(hudson.model.AbstractBuild<?,?> build)
public abstract Image getDefaultImage()
public Quote generateQuote(hudson.model.AbstractBuild<?,?> build, LocationSelector selector)
PersonagenerateQuote クラス内 PersonaAbstractQuoteImplpublic String getRandomQuoteText(hudson.model.AbstractBuild<?,?> build)
public Quote generateProjectQuote(hudson.model.AbstractProject<?,?> project, LocationSelector selector)
PersonagenerateProjectQuote クラス内 PersonaAbstractQuoteImplCopyright © 2004-2013. All Rights Reserved.