org.jenkins.plugins.audit2db.internal
Class DbAuditPublisherImpl
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
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 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 |
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. |
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 |
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.
DbAuditPublisherImpl
@DataBoundConstructor
public DbAuditPublisherImpl()
- Default constructor annotated as data-bound is needed to load up the
saved xml configuration values.
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.