Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.emailer
Class DefaultEmailBuildResultsService

    java.lang.Object
      com.atlassian.bamboo.events.DefaultBuildEventListener
          com.atlassian.bamboo.emailer.DefaultEmailBuildResultsService

All Implemented Interfaces:
  EmailBuildResultsService, BuildEventListener

    public class DefaultEmailBuildResultsService

extends DefaultBuildEventListener
implements EmailBuildResultsService

This class provides the default emailing service.

Field Summary

Fields inherited from class com.atlassian.bamboo.events.DefaultBuildEventListener
`buildManager`

Fields inherited from interface com.atlassian.bamboo.event.BuildEventListener
`DISABLE_NOTIFICATION_SYSTEM_PROPERTY`

Constructor Summary
`DefaultEmailBuildResultsService(VelocityEngine velocityEngine, ErrorHandler errorHandler, BuildManager buildManager)`

Method Summary
`BambooMailer` | `getBambooMailer()`
`ExtendedAuthorManager` | `getExtendedAuthorManager()`
`SessionFactory` | `getSessionFactory()`
`void` | `onBuildComplete(Build build, BuildResults buildResults)` Email out the build results, if the builds email strategy has email enabled.
`void` | `setBambooMailer(BambooMailer bambooMailer)`
`void` | `setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)`
`void` | `setSessionFactory(SessionFactory sessionFactory)`

Methods inherited from class com.atlassian.bamboo.events.DefaultBuildEventListener
`getBuildManager, getPreviousBuildState, getServerBaseUrl, onBuildStart, onDeletedBuild, onDeletedBuildResult, onNewBuild, setBuildManager, systemHasBeenConfigured`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.atlassian.bamboo.event.BuildEventListener
`onBuildStart, onDeletedBuild, onDeletedBuildResult, onNewBuild`

Constructor Detail

### DefaultEmailBuildResultsService

    public DefaultEmailBuildResultsService(VelocityEngine velocityEngine,
                                           ErrorHandler errorHandler,
                                           BuildManager buildManager)

Method Detail

### onBuildComplete

    public void onBuildComplete(Build build,
                                BuildResults buildResults)
                         throws Exception

  Email out the build results, if the builds email strategy has email enabled.

  Specified by:
    `onBuildComplete` in interface `BuildEventListener`
  Overrides:
    `onBuildComplete` in class `DefaultBuildEventListener`
  Parameters:
    `build` - The build that has just been built
    `buildResults` - The build results associated with the build
  Throws:
    `Exception` - A generic exception - not thrown by this implementaton. All exceptions are logged and added to the ErrorHandler.

### getSessionFactory

    public SessionFactory getSessionFactory()

### setSessionFactory

    public void setSessionFactory(SessionFactory sessionFactory)

### getExtendedAuthorManager

    public ExtendedAuthorManager getExtendedAuthorManager()

### setExtendedAuthorManager

    public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

### getBambooMailer

    public BambooMailer getBambooMailer()

### setBambooMailer

    public void setBambooMailer(BambooMailer bambooMailer)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.