hudson.plugins.persona
Class Persona
java.lang.Object
hudson.plugins.persona.Persona
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.ModelObject
- Direct Known Subclasses:
- SimplePersona
public abstract class Persona
- extends java.lang.Object
- implements hudson.ExtensionPoint, hudson.model.ModelObject
A person and his/her set of quotes.
Normally a persona is someone famous, funny, or both (such as Chuck Norris.)
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Field Summary |
java.lang.String |
id
Uniquely identifies this persona among other personas. |
|
Constructor Summary |
protected |
Persona()
|
protected |
Persona(java.lang.String id)
|
|
Method Summary |
static hudson.ExtensionList<Persona> |
all()
Returns all the registered Personas. |
static Persona |
byId(java.lang.String id)
|
abstract Quote |
generateProjectQuote(hudson.model.AbstractProject<?,?> project)
Generates a random quote for the project top page. |
abstract Quote |
generateQuote(hudson.model.AbstractBuild<?,?> build)
Generates a random quote for the given build. |
| 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 |
id
public final java.lang.String id
- Uniquely identifies this persona among other personas.
Persona
protected Persona(java.lang.String id)
Persona
protected Persona()
generateQuote
public abstract Quote generateQuote(hudson.model.AbstractBuild<?,?> build)
- Generates a random quote for the given build.
- See Also:
AbstractQuoteImpl
generateProjectQuote
public abstract Quote generateProjectQuote(hudson.model.AbstractProject<?,?> project)
- Generates a random quote for the project top page.
- See Also:
AbstractQuoteImpl
all
public static hudson.ExtensionList<Persona> all()
- Returns all the registered
Personas.
byId
public static Persona byId(java.lang.String id)
Copyright © 2010. All Rights Reserved.