fr.paris.lutece.plugins.extend.modules.actionbar.business
Interface IActionButtonDAO

All Known Implementing Classes:
ActionButtonDAO

public interface IActionButtonDAO

Interface of ActionButtonDAO


Method Summary
 void create(ActionButton actionButton, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an action button
 void delete(int nIdActionButton, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an action button
 void fillBlankInOrder(int order, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Fill a blank in the order of action buttons.
 List<ActionButton> findActionButtons(List<Integer> listIdActions, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a list of actions buttons from a list of ids
 List<ActionButton> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find every action button
 List<ActionButton> findAllByResourceType(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of action buttons associated with a resource type.
 ActionButton findById(int nIdActionButton, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get an action button from its id
 ActionButton findByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find an action button from its name
 List<ActionButton> findByOrder(int nNewOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find action buttons by order.
 int getNewOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the next available order
 void update(ActionButton actionButton, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an action button
 void updateActionButtonOrder(int nIdAction, int nNewOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the order of an action button
 

Method Detail

create

void create(ActionButton actionButton,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an action button

Parameters:
actionButton - Action button to save
plugin - The plugin

findById

ActionButton findById(int nIdActionButton,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get an action button from its id

Parameters:
nIdActionButton - The id of the action button
plugin - The plugin
Returns:
The action button, or null if no action button has the given id

update

void update(ActionButton actionButton,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an action button

Parameters:
actionButton - The action button to update
plugin - The plugin

delete

void delete(int nIdActionButton,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an action button

Parameters:
nIdActionButton - The id of the action button to delete
plugin - The plugin

findAll

List<ActionButton> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every action button

Parameters:
plugin - The plugin
Returns:
The list of action buttons

findAllByResourceType

List<ActionButton> findAllByResourceType(String strResourceType,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of action buttons associated with a resource type. Action buttons associated with every resource types are also returned.

Parameters:
strResourceType - The resource type of buttons
plugin - The plugin
Returns:
The list of action buttons

findByName

ActionButton findByName(String strName,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find an action button from its name

Parameters:
strName - The name of the action button
plugin - The plugin
Returns:
The action button, or null if no action button is associated with the given name

findActionButtons

List<ActionButton> findActionButtons(List<Integer> listIdActions,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a list of actions buttons from a list of ids

Parameters:
listIdActions - The list of ids of action buttons to get
plugin - The plugin
Returns:
The list of action button, or an empty list if the specified list is null or empty, or if no action buttons was found

getNewOrder

int getNewOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the next available order

Parameters:
plugin - The plugin
Returns:
The next available order

updateActionButtonOrder

void updateActionButtonOrder(int nIdAction,
                             int nNewOrder,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the order of an action button

Parameters:
nIdAction - The id of the action to update the order of
nNewOrder - The new order of the action button
plugin - The plugin

findByOrder

List<ActionButton> findByOrder(int nNewOrder,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find action buttons by order. Only one action button should have a given order

Parameters:
nNewOrder - The new order
plugin - The plugin
Returns:
The list of action buttons with the given order

fillBlankInOrder

void fillBlankInOrder(int order,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fill a blank in the order of action buttons. This method should be called after the removal of an action button

Parameters:
order - The id of the missing order
plugin - The plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.