org.jenkins.plugins.audit2db.internal
Class DbAuditPublisherImpl

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by org.jenkins.plugins.audit2db.internal.DbAuditPublisherImpl
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep, DbAuditPublisher

public class DbAuditPublisherImpl
extends hudson.tasks.Notifier
implements DbAuditPublisher

Author:
Marco Scata

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static DbAuditPublisherDescriptorImpl descriptor
          The annotated descriptor will hold and display the configuration info.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
DbAuditPublisherImpl()
          Default constructor annotated as data-bound is needed to load up the saved xml configuration values.
 
Method Summary
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
           
 BuildDetailsRepository getRepository()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
static org.hibernate.SessionFactory getSessionFactory()
           
 boolean needsToRunAfterFinalized()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions
 

Field Detail

descriptor

@Extension
public static final DbAuditPublisherDescriptorImpl descriptor
The annotated descriptor will hold and display the configuration info. It doesn't have to be an inner class, as most sample plugins seem to suggest.

Constructor Detail

DbAuditPublisherImpl

@DataBoundConstructor
public DbAuditPublisherImpl()
Default constructor annotated as data-bound is needed to load up the saved xml configuration values.

Method Detail

getRepository

public BuildDetailsRepository getRepository()
Specified by:
getRepository in interface DbAuditPublisher
Returns:
a reference to the repository class.

getDescriptor

public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Specified by:
getDescriptor in interface DbAuditPublisher
Overrides:
getDescriptor in class hudson.tasks.Notifier
Returns:
the plugin descriptor.

needsToRunAfterFinalized

public boolean needsToRunAfterFinalized()
Overrides:
needsToRunAfterFinalized in class hudson.tasks.Publisher
See Also:
Publisher.needsToRunAfterFinalized()

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep
See Also:
BuildStep.getRequiredMonitorService()

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

prebuild

public boolean prebuild(hudson.model.AbstractBuild<?,?> build,
                        hudson.model.BuildListener listener)
Specified by:
prebuild in interface hudson.tasks.BuildStep
Overrides:
prebuild in class hudson.tasks.BuildStepCompatibilityLayer


Copyright © 2004-2013. All Rights Reserved.