Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.common.server.session
Class CalendarManagerEJBImpl

java.lang.Object
  extended by org.hyperic.hq.common.server.session.CalendarManagerEJBImpl
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class CalendarManagerEJBImpl
extends java.lang.Object
implements javax.ejb.SessionBean

See Also:
Serialized Form

Constructor Summary
CalendarManagerEJBImpl()
           
 
Method Summary
 WeekEntry addWeekEntry(Calendar c, int weekDay, int startTime, int endTime)
          Add a weekly entry to a calendar.
 Calendar createCalendar(java.lang.String name)
          Create a calendar with the specified name.
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 java.util.Collection findAll()
          Find all calendars in the system
 Calendar findCalendarById(int id)
           
 CalendarEntry findEntryById(int id)
           
static org.hyperic.hq.common.shared.CalendarManagerLocal getOne()
           
 void remove(Calendar c)
          Delete a calendar and all of its entries
 void removeEntries(Calendar c)
          Remove calendar entries from a calendar
 void removeEntry(Calendar c, CalendarEntry ent)
          Remove a calendar entry from a calendar
 void setSessionContext(javax.ejb.SessionContext c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarManagerEJBImpl

public CalendarManagerEJBImpl()
Method Detail

createCalendar

public Calendar createCalendar(java.lang.String name)
Create a calendar with the specified name. This name is only used to distinguish between calendars and must be unique, however it will be changed in the future to be used in the UI.


findAll

public java.util.Collection findAll()
Find all calendars in the system

Returns:
Calendars

remove

public void remove(Calendar c)
Delete a calendar and all of its entries


addWeekEntry

public WeekEntry addWeekEntry(Calendar c,
                              int weekDay,
                              int startTime,
                              int endTime)
Add a weekly entry to a calendar.

Parameters:
weekDay - Day of the week (0 to 6)
startTime - # of minutes since midnight
endTime - # of minutes since midnight

removeEntry

public void removeEntry(Calendar c,
                        CalendarEntry ent)
Remove a calendar entry from a calendar


removeEntries

public void removeEntries(Calendar c)
Remove calendar entries from a calendar


findCalendarById

public Calendar findCalendarById(int id)

findEntryById

public CalendarEntry findEntryById(int id)

getOne

public static org.hyperic.hq.common.shared.CalendarManagerLocal getOne()

ejbCreate

public void ejbCreate()

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

setSessionContext

public void setSessionContext(javax.ejb.SessionContext c)
Specified by:
setSessionContext in interface javax.ejb.SessionBean

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.