|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.Plugin
com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl
public class PluginImpl
Main Plugin entrance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.Plugin |
---|
hudson.Plugin.DummyImpl |
Field Summary | |
---|---|
static String |
DEFAULT_SERVER_NAME
the default server name. |
static String |
DISPLAY_NAME
What to call this plug-in to humans. |
static hudson.security.Permission |
MANUAL_TRIGGER
The permission that allows users to perform the ManualTriggerAction . |
static hudson.security.PermissionGroup |
PERMISSION_GROUP
Any special permissions needed by this plugin are grouped into this. |
static hudson.security.Permission |
RETRIGGER
The permission that allows users to perform the RetriggerAction . |
static String |
TEST_SSH_KEYFILE_LOCATION_PROPERTY
System property used during testing to replace the location of the public key for mock connections. |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
PluginImpl()
Constructor. |
Method Summary | |
---|---|
LinkedList<GerritServer> |
addServer(GerritServer s)
Add a server to the list. |
boolean |
containsServer(String serverName)
Check whether the list of servers contains a GerritServer object of a specific name. |
protected static void |
doXStreamRegistrations()
Registers XStream alias and converters to handle backwards compatibility with old data. |
List<hudson.model.AbstractProject> |
getConfiguredJobs(String serverName)
Return the list of jobs configured with a server. |
GerritServer |
getFirstServer()
Gets the first server in the server list. |
com.sonymobile.tools.gerrit.gerritevents.GerritHandler |
getHandler()
Returns the GerritHandler object. |
static PluginImpl |
getInstance()
Returns this singleton instance. |
PluginConfig |
getPluginConfig()
Gets the global config. |
GerritServer |
getServer(String name)
Get a GerritServer object by its name. |
List<String> |
getServerNames()
Get the list of Gerrit server names. |
List<GerritServer> |
getServers()
Get the list of Gerrit servers. |
boolean |
isActive()
Check if this plugin is active. |
void |
load()
|
void |
postInitialize()
|
LinkedList<GerritServer> |
removeServer(GerritServer s)
Remove a server from the list. |
void |
setServers(LinkedList<GerritServer> servers)
Set the list of Gerrit servers. |
void |
start()
|
void |
stop()
|
Methods inherited from class hudson.Plugin |
---|
configure, configure, doDynamic, getConfigXml, getWrapper, save, setServletContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DISPLAY_NAME
public static final hudson.security.PermissionGroup PERMISSION_GROUP
public static final hudson.security.Permission MANUAL_TRIGGER
ManualTriggerAction
.
public static final hudson.security.Permission RETRIGGER
RetriggerAction
.
public static final String DEFAULT_SERVER_NAME
public static final String TEST_SSH_KEYFILE_LOCATION_PROPERTY
Constructor Detail |
---|
public PluginImpl()
Method Detail |
---|
public static PluginImpl getInstance()
public boolean isActive()
public List<GerritServer> getServers()
public List<String> getServerNames()
public GerritServer getServer(String name)
name
- the name of the server to get.
public GerritServer getFirstServer()
public void setServers(LinkedList<GerritServer> servers)
servers
- the list to be set.public LinkedList<GerritServer> addServer(GerritServer s)
s
- the server to be added.
public LinkedList<GerritServer> removeServer(GerritServer s)
s
- the server to be removed.
public boolean containsServer(String serverName)
serverName
- to check.
public PluginConfig getPluginConfig()
public com.sonymobile.tools.gerrit.gerritevents.GerritHandler getHandler()
public List<hudson.model.AbstractProject> getConfiguredJobs(String serverName)
serverName
- the name of the Gerrit server.
public void start() throws Exception
start
in class hudson.Plugin
Exception
public void postInitialize() throws Exception
postInitialize
in class hudson.Plugin
Exception
public void load() throws IOException
load
in class hudson.Plugin
IOException
protected static void doXStreamRegistrations()
public void stop() throws Exception
stop
in class hudson.Plugin
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |