public class DiggSubmitService extends Object implements IDiggSubmitService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_SERVICE |
Constructor and Description |
---|
DiggSubmitService() |
Modifier and Type | Method and Description |
---|---|
int |
create(DiggSubmit diggSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Creation of an instance of record
|
DiggSubmit |
findByPrimaryKey(int nKey,
boolean bLoadCommentList,
boolean bLoadResponseList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a DiggSubmit whose identifier is specified in parameter
|
DiggSubmit |
findByPrimaryKey(int nKey,
boolean bLoadCommentList,
Integer numberMaxCommentLoad,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a DiggSubmit whose identifier is specified in parameter
|
DiggSubmit |
findByPrimaryKey(int nKey,
boolean bLoadCommentList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a DiggSubmit whose identifier is specified in parameter
|
int |
findNextIdDiggSubmitInTheList(int nIdCurrentDiggSubmit,
SubmitFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the id of the next digg submit in the list
|
int |
findPrevIdDiggSubmitInTheList(int nIdCurrentDiggSubmit,
SubmitFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the id of the prev digg submit in the list
|
int |
getCountDiggSubmit(SubmitFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the number of all the diggSubmit who verify the filter
|
List<DiggSubmit> |
getDiggSubmitList(SubmitFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the diggSubmit who verify the filter and returns them in a list
|
List<DiggSubmit> |
getDiggSubmitList(SubmitFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nNumberMaxDiggSubmit)
Load the data of all the diggSubmit who verify the filter and returns them in a list
|
List<Integer> |
getDiggSubmitListId(SubmitFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the diggSubmit who verify the filter and returns them in a list
|
int |
getMaxOrderList(int nIdDigg,
boolean bListPinned,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the max order number of contacts for one list
|
static IDiggSubmitService |
getService()
Returns the instance of the singleton
|
void |
remove(int nIdDiggSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the record whose identifier is specified in parameter
|
void |
update(DiggSubmit diggSubmit,
boolean bUpdateIndex,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the diggSubmit which is specified in parameter
|
void |
update(DiggSubmit diggSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the diggSubmit which is specified in parameter
|
void |
updateAllDisplayOfDiggSubmit(Integer nIdDigg,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Update the display off all digg submit associated to a digg
|
void |
updateDiggSubmitOrder(Integer nPositionElement,
Integer nNewPositionElement,
int nIdDigg,
boolean bListPinned,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
move an element in the list of diggSubmit and update the order
|
void |
updateDisplayDiggSubmit(Integer nIdDiggSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale,
Digg digg,
Map<Integer,IEntry> mapEntry)
update the display of the diggsubmit
|
public static final String BEAN_SERVICE
@Transactional(value="digglike.transactionManager") public int create(DiggSubmit diggSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale)
create
in interface IDiggSubmitService
diggSubmit
- The instance of the diggSubmit which contains the informations to storeplugin
- the PluginTheme
diggsubmit@Transactional(value="digglike.transactionManager") public void update(DiggSubmit diggSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IDiggSubmitService
diggSubmit
- The instance of the diggSubmit which contains the informations to updateplugin
- the Plugin@Transactional(value="digglike.transactionManager") public void update(DiggSubmit diggSubmit, boolean bUpdateIndex, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IDiggSubmitService
@Transactional(value="digglike.transactionManager") public void remove(int nIdDiggSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove
in interface IDiggSubmitService
nIdDiggSubmit
- the id of the diggSubmitplugin
- the Plugin@Transactional(value="digglike.transactionManager") public void updateDiggSubmitOrder(Integer nPositionElement, Integer nNewPositionElement, int nIdDigg, boolean bListPinned, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateDiggSubmitOrder
in interface IDiggSubmitService
nPositionElement
- the position of the element to movenNewPositionElement
- the new position of the elementnIdDigg
- the digg idbListPinned
- true if the list to update contains only pinned diggsubmitplugin
- the pluginpublic DiggSubmit findByPrimaryKey(int nKey, boolean bLoadCommentList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IDiggSubmitService
nKey
- The diggSubmit primary keybLoadCommentList
- true if the comment list must be getplugin
- the Pluginpublic DiggSubmit findByPrimaryKey(int nKey, boolean bLoadCommentList, Integer numberMaxCommentLoad, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IDiggSubmitService
nKey
- The diggSubmit primary keybLoadCommentList
- true if the comment list must be getnumberMaxCommentLoad
- the number max of parent comment Loadplugin
- the Pluginpublic DiggSubmit findByPrimaryKey(int nKey, boolean bLoadCommentList, boolean bLoadResponseList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IDiggSubmitService
nKey
- The diggSubmit primary keybLoadCommentList
- true if the comment list must be getbLoadResponseList
- true if the response list must be getplugin
- the Pluginpublic int findNextIdDiggSubmitInTheList(int nIdCurrentDiggSubmit, SubmitFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findNextIdDiggSubmitInTheList
in interface IDiggSubmitService
nIdCurrentDiggSubmit
- the id of the current digg submitfilter
- the filterplugin
- the pluginpublic int findPrevIdDiggSubmitInTheList(int nIdCurrentDiggSubmit, SubmitFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findPrevIdDiggSubmitInTheList
in interface IDiggSubmitService
nIdCurrentDiggSubmit
- the id of the current digg submitfilter
- the filterplugin
- the pluginpublic int getCountDiggSubmit(SubmitFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getCountDiggSubmit
in interface IDiggSubmitService
filter
- the filterplugin
- the pluginpublic List<DiggSubmit> getDiggSubmitList(SubmitFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDiggSubmitList
in interface IDiggSubmitService
filter
- the filterplugin
- the pluginpublic List<DiggSubmit> getDiggSubmitList(SubmitFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin, int nNumberMaxDiggSubmit)
getDiggSubmitList
in interface IDiggSubmitService
filter
- the filterplugin
- the pluginnNumberMaxDiggSubmit
- Max Number of Diggsubmit returnpublic List<Integer> getDiggSubmitListId(SubmitFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDiggSubmitListId
in interface IDiggSubmitService
filter
- the filterplugin
- the pluginpublic int getMaxOrderList(int nIdDigg, boolean bListPinned, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrderList
in interface IDiggSubmitService
nIdDigg
- the Id of the DiggbListPinned
- true if the listplugin
- The Plugin objectpublic static IDiggSubmitService getService()
public void updateAllDisplayOfDiggSubmit(Integer nIdDigg, fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale)
updateAllDisplayOfDiggSubmit
in interface IDiggSubmitService
nIdDigg
- the id diggplugin
- the pluginpublic void updateDisplayDiggSubmit(Integer nIdDiggSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale, Digg digg, Map<Integer,IEntry> mapEntry)
updateDisplayDiggSubmit
in interface IDiggSubmitService
nIdDiggSubmit
- the diggSubmit Idplugin
- the pluginlocale
- the localedigg
- the diggmapEntry
- a map of entry assocaited to the diggCopyright © 2016 Mairie de Paris. All Rights Reserved.