|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Standard interface for a calendar factory. The calendar factory is used to retrieve named business calendars, which are used to perform temporal computations.
| Field Summary | |
static java.lang.String |
SERVICE_NAME
|
| Method Summary | |
void |
createCalendar(CalendarMetaData calendar)
Registers a calendar. |
void |
deleteCalendar(java.lang.String id)
Unregisters a calendar. |
BusinessCalendar |
findCalendar(java.lang.String id)
Finds a calendar. |
CalendarMetaData[] |
findCalendarMetaData()
Finds meta-data for all calendars. |
CalendarMetaData |
findCalendarMetaData(java.lang.String id)
Finds meta-data for a calendar. |
CalendarMetaData |
findCalendarType(java.lang.String className,
java.lang.String locale)
Returns information about the specified calendar type. |
CalendarMetaData[] |
findCalendarTypes(java.lang.String locale)
Finds all calendar types known to the repository. |
void |
updateCalendar(CalendarMetaData calendar)
Updates a calendar. |
| Methods inherited from interface org.obe.spi.WorkflowService |
exit, getServiceManager, getServiceName, init |
| Field Detail |
public static final java.lang.String SERVICE_NAME
| Method Detail |
public void createCalendar(CalendarMetaData calendar)
throws RepositoryException
calendar - The calendar definition.
ObjectAlreadyExistsException - if the calendar ID is already
registered.
RepositoryException - if the calendar could not be registered some
other reason.
public void deleteCalendar(java.lang.String id)
throws RepositoryException
id - The calendar ID.
ObjectNotFoundException - if the calendar ID is not registered.
RepositoryException - if the calendar could not be unregistered for
some other reason.
public void updateCalendar(CalendarMetaData calendar)
throws RepositoryException
calendar - The calendar definition.
ObjectNotFoundException - if the calendar ID is not registered.
RepositoryException - if the calendar could not be updated for some
other reason.
public CalendarMetaData[] findCalendarTypes(java.lang.String locale)
throws RepositoryException
locale - The locale in which the results should be formatted.
RepositoryException - if an error occurred.
public CalendarMetaData findCalendarType(java.lang.String className,
java.lang.String locale)
throws RepositoryException
className - The calendar type (i.e., the fully qualified name of
the implementation class).locale - The locale in which the results should be formatted.
ObjectNotFoundException - if the calendar type is unknown.
RepositoryException - if some other error occurred.
public CalendarMetaData[] findCalendarMetaData()
throws RepositoryException
RepositoryException - if an error occurred.
public CalendarMetaData findCalendarMetaData(java.lang.String id)
throws RepositoryException
id - The calendar ID.
ObjectNotFoundException - if the
calendar ID is not registered.
RepositoryException - if some other error occurred.
public BusinessCalendar findCalendar(java.lang.String id)
throws RepositoryException
id - The calendar ID.
ObjectNotFoundException - if the tool ID is not registered.
RepositoryException - if some other error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||