|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSourceFactory
Constructs DataSources for use in mail notifications.
| Method Summary | |
|---|---|
com.atlassian.fugue.Maybe<PluginDataSourceFactory> |
forPlugin(java.lang.String pluginKey)
Create a factory for a specific plugin. |
javax.activation.DataSource |
getAvatar(com.atlassian.user.User user)
Construct a DataSource for a user's profile picture. |
javax.activation.DataSource |
getDatasource(Attachment attachment,
boolean useThumbnail)
|
javax.activation.DataSource |
getServletContainerResource(java.lang.String path,
java.lang.String name)
|
javax.activation.DataSource |
getSpaceLogo(Space space)
Encapsulates the logo for the given Space in a DataSource. |
javax.activation.DataSource |
getURLResource(java.net.URL url,
java.lang.String name)
|
| Method Detail |
|---|
javax.activation.DataSource getAvatar(com.atlassian.user.User user)
user - The user to retrieve the avatar for. If null, "Anonymous" will be assumed.
javax.activation.DataSource getSpaceLogo(Space space)
Space in a DataSource.
space - the space to retrieve the logo for
DataSource encapsulating the ...
Space if configured
Space logo if configured
Space logo, SpaceLogo.DEFAULT_LOGO_PATH
DataSource.getName() will return "<spacekey>-space-logo"
javax.activation.DataSource getServletContainerResource(java.lang.String path,
java.lang.String name)
path - a path that must begin with a "/" and is interpreted as relative to the current context rootname - a custom name for the DataSource that will be returned.
javax.activation.DataSource getURLResource(java.net.URL url,
java.lang.String name)
javax.activation.DataSource getDatasource(Attachment attachment,
boolean useThumbnail)
throws java.io.IOException
java.io.IOExceptioncom.atlassian.fugue.Maybe<PluginDataSourceFactory> forPlugin(java.lang.String pluginKey)
Allows the creation of DataSources from <resource> descriptors.
pluginKey - the key used to locate the plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||