hudson.plugins.persona.simple
Class SimplePersona
java.lang.Object
hudson.plugins.persona.Persona
hudson.plugins.persona.simple.SimplePersona
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.ModelObject
- Direct Known Subclasses:
- XmlBasedPersona
public abstract class SimplePersona
- extends Persona
Partial implementation of Persona that renders the plain text quote with an icon.
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.plugins.persona.Persona |
id |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
getDisplayName |
SimplePersona
protected SimplePersona(String id,
List<String> quotes,
List<String> quotesSuccess,
List<String> quotesFailure,
List<String> quotesOther)
- Parameters:
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.
setQuotes
protected void setQuotes(List<String> quotes,
List<String> quotesSuccess,
List<String> quotesFailure,
List<String> quotesOther)
getImage
public abstract Image getImage(hudson.model.AbstractBuild<?,?> build)
- Determines the icon and the background to render.
getDefaultImage
public abstract Image getDefaultImage()
generateQuote
public Quote generateQuote(hudson.model.AbstractBuild<?,?> build)
- Description copied from class:
Persona
- Generates a random quote for the given build.
- Specified by:
generateQuote in class Persona
- See Also:
AbstractQuoteImpl
getRandomQuoteText
public String getRandomQuoteText(hudson.model.AbstractBuild<?,?> build)
generateProjectQuote
public Quote generateProjectQuote(hudson.model.AbstractProject<?,?> project)
- Description copied from class:
Persona
- Generates a random quote for the project top page.
- Specified by:
generateProjectQuote in class Persona
- See Also:
AbstractQuoteImpl
Copyright © 2004-2011. All Rights Reserved.