|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
Date |
addBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc)
|
Date |
addBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date startTime)
|
Date |
addBusinessTime(String interval,
String userOrGroupId)
Use startTime as current time. |
Date |
addBusinessTime(String interval,
String userOrGroupId,
Date startTime)
Determines if userOrGroupId is a user id or group id. |
Date |
addBusinessTimeCalendarName(String interval,
String calendarName)
|
Date |
addBusinessTimeCalendarName(String interval,
String calendarName,
Date startTime)
|
Date |
addBusinessTimeSystemCalendar(String interval,
Date startTime)
|
Date |
addExactTimeCalendarName(String interval,
String calendarName,
Date startTime)
|
boolean |
calendarNameExists(String name)
Checks if a calendar with the given name exists. |
void |
createCalendar(com.bea.wli.calendar.schema.CalendarDocument cDoc)
Creates a new calendar from the information passed in the CalendarDocument. |
void |
deleteCalendar(String calendarName)
|
void |
deleteCalendars(String[] names)
|
String[] |
getAllCalendarNames()
|
com.bea.wli.calendar.schema.CalendarDocument[] |
getAllCalendars()
Gets all calendars, including rules info and mapped groups and users. |
com.bea.wli.calendar.schema.CalendarDocument |
getCalendar(String calendarName)
|
com.bea.wli.calendar.schema.CalendarDocument |
getGroupCalendar(String groupId)
|
com.bea.wli.calendar.schema.CalendarDocument |
getGroupCalendarWalkHierarchy(String groupId)
If a calendar is mapped to the group then that calendar is returned, otherwise returns the system calendar. |
Date |
getNextFreeMinute(com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date time)
Returns the next free minute given the rules in the calendar passed from the time passed. |
com.bea.wli.calendar.schema.CalendarDocument |
getSystemCalendar()
|
com.bea.wli.calendar.schema.CalendarDocument |
getUserCalendar(String userId)
|
com.bea.wli.calendar.schema.CalendarDocument |
getUserCalendarWalkHierarchy(String userId)
If a calendar is mapped to the user then that calendar is returned, otherwise returns the system calendar. |
void |
insertUserCalendarMapping(String userid,
String calendarId)
Same as updateUserCalendar. |
boolean |
isTimeFree(com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date time)
|
boolean |
isUserTimeFree(String userId,
Date time)
Looks up the user's calendar using getUserCalendarWalkHierarchy and checks if the time passed is free based on the rules in the calendar. |
void |
setGroupCalendar(String groupId,
String calendarName)
|
void |
setUserCalendar(String userId,
String calendarName)
Set the user's calendar. |
Date |
subtractBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc)
|
Date |
subtractBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date startTime)
|
Date |
subtractBusinessTime(String interval,
String userOrGroupId)
|
Date |
subtractBusinessTime(String interval,
String userOrGroupId,
Date startTime)
Go back in time by the given interval. |
Date |
subtractBusinessTimeCalendarName(String interval,
String calendarName)
|
Date |
subtractBusinessTimeCalendarName(String interval,
String calendarName,
Date startTime)
|
Date |
subtractBusinessTimeSystemCalendar(String interval,
Date startTime)
|
boolean |
systemCalendarExists()
|
void |
unsetGroupCalendar(String groupId)
|
void |
unsetUserCalendar(String userId)
Unset the user's calendar. |
void |
updateCalendar(String oldCalendarName,
com.bea.wli.calendar.schema.CalendarDocument cDoc)
Update the calendar - oldCalendarName, using the passed CalendarDocument. |
void |
updateSystemCalendar(com.bea.wli.calendar.schema.CalendarDocument cDoc)
Update the system calendar using the passed CalendarDocument. |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
public boolean calendarNameExists(String name)
throws BusinessCalendarException,
RemoteException
name -
BusinessCalendarException
RemoteException
public void createCalendar(com.bea.wli.calendar.schema.CalendarDocument cDoc)
throws BusinessCalendarException,
RemoteException
cDoc -
BusinessCalendarException - if a calendar with the given name exists or of the document is not valid.
RemoteException
NullPointerException - if cDoc is null.
public com.bea.wli.calendar.schema.CalendarDocument getCalendar(String calendarName)
throws BusinessCalendarException,
RemoteException
calendarName -
BusinessCalendarException
RemoteException
NullPointerException - if calendarName is null.
public void updateCalendar(String oldCalendarName,
com.bea.wli.calendar.schema.CalendarDocument cDoc)
throws BusinessCalendarException,
RemoteException
oldCalendarName - cDoc -
BusinessCalendarException - if the CalendarDocument indicates that this is a system calendar or if the
system calendar has the same name as this calendar or if the name is being updated and a calendar already exists
with that name.
RemoteException
NullPointerException - if oldCalendarName or cDoc is null.
public void updateSystemCalendar(com.bea.wli.calendar.schema.CalendarDocument cDoc)
throws BusinessCalendarException,
RemoteException
cDoc -
BusinessCalendarException
RemoteException
NullPointerException - if cDoc is null.
public void deleteCalendar(String calendarName)
throws BusinessCalendarException,
RemoteException
calendarName -
BusinessCalendarException
RemoteException
NullPointerException - if calendarName is null.
public void deleteCalendars(String[] names)
throws BusinessCalendarException,
RemoteException
names -
BusinessCalendarException
RemoteException
NullPointerException - if names is null.
public boolean systemCalendarExists()
throws BusinessCalendarException,
RemoteException
BusinessCalendarException
RemoteException
public com.bea.wli.calendar.schema.CalendarDocument getSystemCalendar()
throws BusinessCalendarException,
RemoteException
BusinessCalendarException
RemoteException
public String[] getAllCalendarNames()
throws BusinessCalendarException,
RemoteException
BusinessCalendarException
RemoteException
public com.bea.wli.calendar.schema.CalendarDocument[] getAllCalendars()
throws BusinessCalendarException,
RemoteException
BusinessCalendarException
RemoteException
public void setUserCalendar(String userId,
String calendarName)
throws BusinessCalendarException,
RemoteException
userId - calendarName -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public void unsetUserCalendar(String userId)
throws BusinessCalendarException,
RemoteException
userId -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public com.bea.wli.calendar.schema.CalendarDocument getUserCalendar(String userId)
throws BusinessCalendarException,
RemoteException
userId -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public com.bea.wli.calendar.schema.CalendarDocument getUserCalendarWalkHierarchy(String userId)
throws BusinessCalendarException,
RemoteException
userId -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public void insertUserCalendarMapping(String userid,
String calendarId)
throws BusinessCalendarException,
RemoteException
userid - calendarId -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public void setGroupCalendar(String groupId,
String calendarName)
throws BusinessCalendarException,
RemoteException
groupId - calendarName -
BusinessCalendarException
RemoteException
NullPointerException - if the groupId passed is null.
public void unsetGroupCalendar(String groupId)
throws BusinessCalendarException,
RemoteException
groupId -
BusinessCalendarException
RemoteException
NullPointerException - if the groupId passed is null.
public com.bea.wli.calendar.schema.CalendarDocument getGroupCalendar(String groupId)
throws BusinessCalendarException,
RemoteException
groupId -
BusinessCalendarException
RemoteException
NullPointerException - if the groupId passed is null.
public com.bea.wli.calendar.schema.CalendarDocument getGroupCalendarWalkHierarchy(String groupId)
throws BusinessCalendarException,
RemoteException
groupId -
BusinessCalendarException
RemoteException
NullPointerException - if the groupId passed is null.
public Date getNextFreeMinute(com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date time)
throws BusinessCalendarException,
RemoteException
cDoc - time -
BusinessCalendarException
RemoteException
NullPointerException - if cDoc is null.
public boolean isUserTimeFree(String userId,
Date time)
throws BusinessCalendarException,
RemoteException
userId - time -
BusinessCalendarException
RemoteException
NullPointerException - if userId is null.
public boolean isTimeFree(com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date time)
throws BusinessCalendarException,
RemoteException
cDoc - time -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date addBusinessTime(String interval,
String userOrGroupId,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - - a string in the format "d days, h hours, m minutes". e.g. "5 days", "5 days 2 minutes"
Note that only days, hours, and minutes are supported.userOrGroupId - startTime -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date addBusinessTime(String interval,
String userOrGroupId)
throws BusinessCalendarException,
RemoteException
interval - userOrGroupId -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date addBusinessTimeCalendarName(String interval,
String calendarName)
throws BusinessCalendarException,
RemoteException
interval - calendarName -
BusinessCalendarException
RemoteException
public Date addBusinessTimeCalendarName(String interval,
String calendarName,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - calendarName - startTime -
BusinessCalendarException
RemoteException
public Date addExactTimeCalendarName(String interval,
String calendarName,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - calendarName - startTime -
BusinessCalendarException
RemoteException
public Date addBusinessTimeSystemCalendar(String interval,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - startTime -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date addBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc)
throws BusinessCalendarException,
RemoteException
interval - cDoc -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date addBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - cDoc - startTime -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date subtractBusinessTime(String interval,
String userOrGroupId,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - userOrGroupId - startTime -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date subtractBusinessTime(String interval,
String userOrGroupId)
throws BusinessCalendarException,
RemoteException
interval - userOrGroupId -
BusinessCalendarException
RemoteException
NullPointerException - if the userId passed is null.
public Date subtractBusinessTimeCalendarName(String interval,
String calendarName)
throws BusinessCalendarException,
RemoteException
interval - calendarName -
BusinessCalendarException
RemoteException
public Date subtractBusinessTimeCalendarName(String interval,
String calendarName,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - calendarName - startTime -
BusinessCalendarException
RemoteException
public Date subtractBusinessTimeSystemCalendar(String interval,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - startTime -
BusinessCalendarException
RemoteException
NullPointerException - if the interval passed is null.
public Date subtractBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc)
throws BusinessCalendarException,
RemoteException
interval - cDoc -
BusinessCalendarException
RemoteException
NullPointerException - if the interval or CalendarDocument passed is null.
public Date subtractBusinessTime(String interval,
com.bea.wli.calendar.schema.CalendarDocument cDoc,
Date startTime)
throws BusinessCalendarException,
RemoteException
interval - cDoc - startTime -
BusinessCalendarException
RemoteException
NullPointerException - if the interval or CalendarDocument passed is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||