fr.paris.lutece.plugins.extend.modules.actionbar.service
Class ActionbarService

java.lang.Object
  extended by fr.paris.lutece.plugins.extend.modules.actionbar.service.ActionbarService

public class ActionbarService
extends Object

ActionbarService


Field Summary
static String BEAN_NAME
          Bean name
 
Constructor Summary
ActionbarService()
           
 
Method Summary
 void createActionButton(ActionButton actionButton)
          Creates an action button
 ActionButton findActionButton(int nIdAction)
          find an action button
 List<ActionButton> findActionButtons(List<Integer> listIdActions)
          Get a list of actions buttons from a list of ids
 List<ActionButton> findActionButtonsByResourceType(String strResourceType)
          Get the list of action buttons associated with a resource type.
 List<ActionButton> findAllActionButtons()
          Get the list of action buttons
 int getNewOrder()
          Get the next available order
 void removeActionButton(int nIdAction)
          Remove an action button from its id
 void updateActionButton(ActionButton actionButton)
          Update an action button
 void updateActionButtonOrder(ActionButton action, int nNewOrder)
          Update the order of an action button.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_NAME

public static final String BEAN_NAME
Bean name

See Also:
Constant Field Values
Constructor Detail

ActionbarService

public ActionbarService()
Method Detail

findActionButtonsByResourceType

public List<ActionButton> findActionButtonsByResourceType(String strResourceType)
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
Returns:
The list of action buttons

findAllActionButtons

public List<ActionButton> findAllActionButtons()
Get the list of action buttons

Returns:
The list of action buttons

findActionButtons

public List<ActionButton> findActionButtons(List<Integer> listIdActions)
Get a list of actions buttons from a list of ids

Parameters:
listIdActions - The list of ids of action buttons to get
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

createActionButton

public void createActionButton(ActionButton actionButton)
Creates an action button

Parameters:
actionButton - The action button to create

findActionButton

public ActionButton findActionButton(int nIdAction)
find an action button

Parameters:
nIdAction - The id of the action button
Returns:
The action button, or null if no action button has this id

updateActionButton

public void updateActionButton(ActionButton actionButton)
Update an action button

Parameters:
actionButton - The action button to update

removeActionButton

public void removeActionButton(int nIdAction)
Remove an action button from its id

Parameters:
nIdAction - The id of the action button to remove

updateActionButtonOrder

public void updateActionButtonOrder(ActionButton action,
                                    int nNewOrder)
Update the order of an action button. The order of the given action button is set to the new value, and the action button that had this order gets the old order of the updated one.

Parameters:
action - The action button to move. The order attribute of the action button MUST be its old order.
nNewOrder - The new order of the topic

getNewOrder

public int getNewOrder()
Get the next available order

Returns:
The next available order


Copyright © 2013 Mairie de Paris. All Rights Reserved.