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
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 |
|
Constructor Summary |
protected |
SimplePersona(java.lang.String id,
java.util.List<java.lang.String> quotes)
|
| 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(java.lang.String id,
java.util.List<java.lang.String> quotes)
- Parameters:
id - Unique identifier of this persona.quotes - Collection of quotes.
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 java.lang.String getRandomQuoteText()
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 © 2010. All Rights Reserved.