it.eng.spagobi.wapp.dao
Interface IMenuRolesDAO

All Known Implementing Classes:
MenuRolesDAOImpl

public interface IMenuRolesDAO

Author:
Antonella Giachino (antonella.giachino@eng.it)

Method Summary
 void eraseMenuRole(MenuRoles aMenuRole)
          Implements the query to erase a MenuRoles.
 void insertMenuRole(MenuRoles aMenuRole)
          Implements the query to insert a MenuRole.
 java.util.List loadMenuByRoleId(java.lang.Integer roleId)
          Loads all detail information for all menu compatible to the role specified at input.
 MenuRoles loadMenuRoles(java.lang.Integer menuId, java.lang.Integer roleId)
          Loads the list of MenuRoles associated to the input menuId and roleId.
 void modifyMenuRole(MenuRoles aMenuRole)
          Implements the query to modify a MenuRole.
 

Method Detail

loadMenuByRoleId

java.util.List loadMenuByRoleId(java.lang.Integer roleId)
                                throws it.eng.spago.error.EMFUserError
Loads all detail information for all menu compatible to the role specified at input. For each of them, name is stored into a String object. After that, all names are stored into a List, which is returned.

Parameters:
roleId - the role id
Returns:
A list containing all menu objects compatible with the role passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadMenuRoles

MenuRoles loadMenuRoles(java.lang.Integer menuId,
                        java.lang.Integer roleId)
                        throws it.eng.spago.error.EMFUserError
Loads the list of MenuRoles associated to the input menuId and roleId. All these information, archived by a query to the DB, are stored into a List of MenuRoles object, which is returned.

Parameters:
menuId - The id for the menu to load
roleId - The role id for the role to load
Returns:
A List of MenuRoles object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

modifyMenuRole

void modifyMenuRole(MenuRoles aMenuRole)
                    throws it.eng.spago.error.EMFUserError
Implements the query to modify a MenuRole. All information needed is stored into the input MenuRoles object.

Parameters:
aMenuRole - The MenuRoles containing all modify information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

insertMenuRole

void insertMenuRole(MenuRoles aMenuRole)
                    throws it.eng.spago.error.EMFUserError
Implements the query to insert a MenuRole. All information needed is stored into the input MenuRoles object.

Parameters:
aMenuRole - the a menu role
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

eraseMenuRole

void eraseMenuRole(MenuRoles aMenuRole)
                   throws it.eng.spago.error.EMFUserError
Implements the query to erase a MenuRoles. All information needed is stored into the input MenuRoles object.

Parameters:
aMenuRole - The object containing all delete information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred