com.sonyericsson.hudson.plugins.metadata.model
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by com.sonyericsson.hudson.plugins.metadata.model.PluginImpl
All Implemented Interfaces:
hudson.model.Saveable

@Extension
public class PluginImpl
extends hudson.Plugin

Main plugin singleton.

Author:
Tomas Westling <thomas.westling@sonyericsson.com>

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
static hudson.security.Permission CONFIGURE_DEFINITIONS
          Permission to configure metadata definitions, i.e.
static hudson.security.PermissionGroup PERMISSION_GROUP
          Permission Groups for metadata related tasks.
static hudson.security.Permission READ_METADATA
          Permission to read metadata on objects.
static hudson.security.Permission REPLACE_METADATA
          Permission to update and replace metadata on objects.
static hudson.security.Permission UPDATE_METADATA
          Permission to update metadata on objects.
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PluginImpl()
           
 
Method Summary
 List<? extends MetadataDefinition> getDefinitions()
          Getter for the list of AbstractMetaDataDefinitions.
static PluginImpl getInstance()
          Gets the singleton instance of this Plugin.
 void setDefinitions(List<AbstractMetadataDefinition> definitions)
          Setter for the list of AbstractMetaDataDefinitions.
 void start()
           
 
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSION_GROUP

public static final hudson.security.PermissionGroup PERMISSION_GROUP
Permission Groups for metadata related tasks.


READ_METADATA

public static final hudson.security.Permission READ_METADATA
Permission to read metadata on objects. Primarily for use in CLI commands.


UPDATE_METADATA

public static final hudson.security.Permission UPDATE_METADATA
Permission to update metadata on objects. Primarily for use in CLI commands.


REPLACE_METADATA

public static final hudson.security.Permission REPLACE_METADATA
Permission to update and replace metadata on objects. Primarily for use in CLI commands.


CONFIGURE_DEFINITIONS

public static final hudson.security.Permission CONFIGURE_DEFINITIONS
Permission to configure metadata definitions, i.e. use the Metadata configuration page.

Constructor Detail

PluginImpl

public PluginImpl()
Method Detail

start

public void start()
           throws Exception
Overrides:
start in class hudson.Plugin
Throws:
Exception

setDefinitions

public void setDefinitions(List<AbstractMetadataDefinition> definitions)
Setter for the list of AbstractMetaDataDefinitions.

Parameters:
definitions - the list of AbstractMetaDataDefinitions

getDefinitions

public List<? extends MetadataDefinition> getDefinitions()
Getter for the list of AbstractMetaDataDefinitions.

Returns:
the list of AbstractMetaDataDefinitions

getInstance

public static PluginImpl getInstance()
Gets the singleton instance of this Plugin.

Returns:
the instance.


Copyright © 2004-2013. All Rights Reserved.