| java.lang.Object com.ivata.groupware.navigation.NavigationBean
NavigationBean | public class NavigationBean implements SessionBean,Navigation(Code) | | SessionBean to let you access the menues and folders in
the system and generally get around.
since: 2002-05-07 author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.3 $ |
sessionContext | SessionContext sessionContext(Code) | | Provides the session bean with container-specific information.
|
addMenuItem | public void addMenuItem(SecuritySession securitySession, MenuItemDO menuItem) throws SystemException(Code) | | Add a new menu item, with no image associated with it initially.
Parameters: menuId - the unique identifier of the menu into which the new itemwill be inserted. Parameters: text - human-readable english language text for the menu item.Should be unique within the menu it is in though this is not enforcedserver-side. Parameters: URL - the URL the new menu item links to. Parameters: userName - the user for whom to insert the new menu item, ornull if everyone should see it. |
amendMenuItem | public void amendMenuItem(SecuritySession securitySession, MenuItemDO menuItem) throws SystemException(Code) | | changes a menu item, if it belongs to the given user
Parameters: menuItemId - the unique identifier of the menu item to change. Parameters: text - human-readable english language text for the menu item.Should be unique within the menu it is in though this is not enforcedserver-side. Parameters: URL - the URL the new menu item links to. Parameters: userName - the user for whom the menu item should belong |
ejbActivate | public void ejbActivate()(Code) | | Called by the container to notify a stateful session object it has been
activated.
|
ejbCreate | public void ejbCreate() throws CreateException(Code) | | Provides the session bean with container-specific information.
|
ejbPassivate | public void ejbPassivate()(Code) | | Called by the container to notify a stateful session object it will be
deactivated. Called just before deactivation.
|
ejbRemove | public void ejbRemove()(Code) | | This method is called by the container when the session bean is about
to be removed.
This method will be called after a client calls the remove
method of the remote/local home interface.
|
findMenues | public Collection findMenues(SecuritySession securitySession) throws SystemException(Code) | | Find all the menues for a given user.
Parameters: userName - the user to search for a Collection Containing all the user's menues, asinstances of com.ivata.groupware.menu.MenuDO MenuDO See Also: com.ivata.groupware.menu.MenuLocalHome.findByUserName(String sUserName) throws: EJBException - if there is a FinderException callingMenuLocalHome.findByUserName throws: EJBException - if there is a NamingException settinglooking up the MenuHome |
removeMenuItem | public void removeMenuItem(SecuritySession securitySession, String id) throws SystemException(Code) | | removes a menu item, if it belongs to the given user
Parameters: menuItemId - the unique identifier of the menu item to remove. Parameters: userName - the user for whom the menu item should belong |
setSessionContext | final public void setSessionContext(SessionContext sessionContext)(Code) | | Provides access to the runtime properties of the context in which this
session bean is running.
Is usually stored by the bean internally.
Parameters: sessionContext - new value for the session context. Is usually stored internally |
|
|