|
||||||||||
| 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(String pluginKey)
Create a factory for a specific plugin. |
DataSource |
getAvatar(com.atlassian.user.User user)
Construct a DataSource for a user's profile picture. |
DataSource |
getDatasource(Attachment attachment,
boolean useThumbnail)
|
DataSource |
getServletContainerResource(String path,
String name)
|
DataSource |
getSpaceLogo(Space space)
Encapsulates the logo for the given Space in a DataSource. |
DataSource |
getURLResource(URL url,
String name)
|
| Method Detail |
|---|
DataSource getAvatar(com.atlassian.user.User user)
user - The user to retrieve the avatar for. If null, "Anonymous" will be assumed.
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"
DataSource getServletContainerResource(String path,
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.
DataSource getURLResource(URL url,
String name)
DataSource getDatasource(Attachment attachment,
boolean useThumbnail)
throws IOException
IOExceptioncom.atlassian.fugue.Maybe<PluginDataSourceFactory> forPlugin(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 | |||||||||