|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmagoffin.matt.ma2.support.AbstractPlugin
magoffin.matt.ma2.dao.support.AbstractJdbcBrowseModePlugin
magoffin.matt.ma2.dao.support.AlbumsByDateBrowseModePlugin
public class AlbumsByDateBrowseModePlugin
Implementation of BrowseModePlugin for a "browse user albums by date".
Also supports the "album feed" mode, for returning only items shareable in feed.
| Field Summary |
|---|
| Fields inherited from class magoffin.matt.ma2.support.AbstractPlugin |
|---|
log |
| Constructor Summary | |
|---|---|
AlbumsByDateBrowseModePlugin()
|
|
| Method Summary | |
|---|---|
SearchResults |
find(BrowseAlbumsCommand command,
PaginationCriteria pagination)
Perform the search, returning SearchResults populated with
AlbumSearchResult objects. |
java.lang.String[] |
getMessageResourceNames()
Get a list of message resource names to register. |
java.lang.String |
getSqlBrowse()
|
java.lang.String |
getSqlBrowseAllowBrowseWhereClause()
|
java.lang.String |
getSqlBrowseAllowFeedWhereClause()
|
java.lang.String |
getSqlBrowseChildOrderByClause()
|
java.lang.String |
getSqlBrowseTopLevelOrderByClause()
|
java.lang.String[] |
getSupportedModes()
Get the supported modes of this plugin. |
void |
init()
Manual initialization method. |
protected void |
init(org.springframework.context.ApplicationContext application)
Initialization hook for subclasses. |
void |
setSqlBrowse(java.lang.String sqlBrowse)
|
void |
setSqlBrowseAllowBrowseWhereClause(java.lang.String sqlBrowseAllowBrowseWhereClause)
|
void |
setSqlBrowseAllowFeedWhereClause(java.lang.String sqlBrowseAllowFeedWhereClause)
|
void |
setSqlBrowseChildOrderByClause(java.lang.String sqlBrowseChildOrderByClause)
|
void |
setSqlBrowseTopLevelOrderByClause(java.lang.String sqlBrowseTopLevelOrderByClause)
|
boolean |
supportsMode(java.lang.String mode)
Test if this plugin supports a given browse mode. |
| Methods inherited from class magoffin.matt.ma2.dao.support.AbstractJdbcBrowseModePlugin |
|---|
getDomainObjectFactory, getJdbcTemplate, getPluginType, getUserBiz, setDomainObjectFactory, setJdbcTemplate, setUserBiz |
| Methods inherited from class magoffin.matt.ma2.support.AbstractPlugin |
|---|
getConfigName, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface magoffin.matt.ma2.plugin.Plugin |
|---|
initialize |
| Constructor Detail |
|---|
public AlbumsByDateBrowseModePlugin()
| Method Detail |
|---|
public boolean supportsMode(java.lang.String mode)
BrowseModePlugin
mode - the mode to test
protected void init(org.springframework.context.ApplicationContext application)
AbstractPluginThis method will be called at the end of the AbstractPlugin.initialize(org.springframework.context.ApplicationContext) method.
init in class AbstractPluginapplication - the ApplicationContextpublic java.lang.String[] getMessageResourceNames()
Plugin
public java.lang.String[] getSupportedModes()
BrowseModePlugin
public void init()
This is used by unit tests.
public SearchResults find(BrowseAlbumsCommand command,
PaginationCriteria pagination)
BrowseModePluginSearchResults populated with
AlbumSearchResult objects.
command - the browse commandpagination - the pagination criteria
public java.lang.String getSqlBrowse()
public void setSqlBrowse(java.lang.String sqlBrowse)
sqlBrowse - the sqlBrowse to setpublic java.lang.String getSqlBrowseTopLevelOrderByClause()
public void setSqlBrowseTopLevelOrderByClause(java.lang.String sqlBrowseTopLevelOrderByClause)
sqlBrowseTopLevelOrderByClause - the sqlBrowseTopLevelOrderByClause to setpublic java.lang.String getSqlBrowseChildOrderByClause()
public void setSqlBrowseChildOrderByClause(java.lang.String sqlBrowseChildOrderByClause)
sqlBrowseChildOrderByClause - the sqlBrowseChildOrderByClause to setpublic java.lang.String getSqlBrowseAllowFeedWhereClause()
public void setSqlBrowseAllowFeedWhereClause(java.lang.String sqlBrowseAllowFeedWhereClause)
sqlBrowseAllowFeedWhereClause - the sqlBrowseAllowFeedWhereClause to setpublic java.lang.String getSqlBrowseAllowBrowseWhereClause()
public void setSqlBrowseAllowBrowseWhereClause(java.lang.String sqlBrowseAllowBrowseWhereClause)
sqlBrowseAllowBrowseWhereClause - the sqlBrowseAllowBrowseWhereClause to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||