|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibi.broker.api.ws.ScheduleManagerClientSF
public class ScheduleManagerClientSF
Constructor Summary | |
---|---|
ScheduleManagerClientSF(java.lang.String base,
java.lang.String userName,
java.lang.String password)
|
Method Summary | |
---|---|
TimeInfo |
addCustomInterval(TimeInfo timeInfo)
|
java.lang.String |
addSchedule(Schedule schedule)
Takes a Schedule |
Schedule |
createScheduleInstance(int intervalType,
java.lang.String methodCode,
int taskType)
Creates a new Schedule object with specified integer constant values for
IntervalType , distributionType , and
taskType . |
Schedule |
createScheduleInstanceDefault()
Creates a new Schedule object with default schedule property
values. |
void |
deleteSchedule(java.lang.String scheduleId)
Deletes the schedule as identified by its unique schedule identifier from the ReportCaster repository. |
AmperParameter[] |
getAmperParameterList(Task task)
Obtains an Array of AmperParameter objects that are associated with a scheduled task. |
AmperParameter[] |
getAmperParameterList(Task task,
java.lang.String owner)
Obtains an Array of AmperParameter objects that are associated with a scheduled task. |
java.lang.String[] |
getOwnerList()
Retrieves a String Array representing the list of schedule owners from ReportCaster repository. |
Schedule |
getSchedule(java.lang.String scheduleId)
Retrieves an existing schedule from the ReportCaster repository based on a given schedule identifier. |
java.lang.String |
getScheduleId(java.lang.String owner,
java.lang.String scheduleDescription)
Retrieves the unique schedule identifier from the ReportCaster repository based on specifying the schedule description (see Schedule.getDescription() ) and owner. |
Schedule[] |
getScheduleInfoList(java.lang.String[] scheduleId)
|
Schedule[] |
getScheduleInfoList(java.lang.String owner,
java.lang.String method,
java.lang.String priority,
java.lang.String active,
java.util.Calendar startDate,
java.util.Calendar endDate)
|
Schedule[] |
getScheduleInfoListByCaller()
Retrieves an array of Schedule objects from the
ReportCaster repository that are owned by the current logon user (or API
caller). |
Schedule[] |
getScheduleInfoListByOwner(java.lang.String owner)
Retrieves an array of Schedule objects from the
ReportCaster repository that belong to a specified owner. |
Schedule[] |
getScheduleList(java.lang.String[] scheduleId)
|
java.lang.String |
run(Schedule schedule)
After a Schedule object has been created and its properties populated with data, this method immediately submits the schedule to the ReportCaster Distribution Server, which runs the schedule. |
java.lang.String |
run(Schedule schedule,
JobOptions jobOptions)
After a Schedule object has been created and its properties populated with data, this method immediately submits the schedule to the ReportCaster Distribution Server with a JobListener class name, which runs the schedule. |
java.lang.String |
run(java.lang.String[] scheduleIdList,
JobOptions jobOptions)
|
TimeInfo[] |
selectCustomIntervalList()
|
void |
updateSchedule(Schedule schedule)
Updates a Schedule object which already exists in the
ReportCaster repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduleManagerClientSF(java.lang.String base, java.lang.String userName, java.lang.String password) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public Schedule getSchedule(java.lang.String scheduleId) throws CasterException
ScheduleManager
getSchedule
in interface ScheduleManager
scheduleId
- Id that uniquely identifies the schedule in the repository.
Schedule
object.
CasterException
public Schedule[] getScheduleInfoList(java.lang.String[] scheduleId) throws CasterException
getScheduleInfoList
in interface ScheduleManager
CasterException
public Schedule[] getScheduleList(java.lang.String[] scheduleId) throws CasterException
getScheduleList
in interface ScheduleManager
CasterException
public Schedule[] getScheduleInfoListByCaller() throws CasterException
ScheduleManager
Schedule
objects from the
ReportCaster repository that are owned by the current logon user (or API
caller). Because this is designed just to retrieve information for each schedule,
for performance reasons, each schedule object has all its properties populated with data with
the exception of the task information, which are all NULL (see
Schedule.getTaskList()
).
An administrator will receive all schedules, end user will receive only those schedules
owned by him.
getScheduleInfoListByCaller
in interface ScheduleManager
Schedule
objects.
CasterException
public Schedule[] getScheduleInfoListByOwner(java.lang.String owner) throws CasterException
ScheduleManager
Schedule
objects from the
ReportCaster repository that belong to a specified owner. If the API caller is
admin, any owner can be specified. If the caller is an enduser, the owner must
be the caller itself. Otherwise, an Exception will be thrown during the
permission check. Because this is designed just to retrieve information for each schedule,
for performnce reasons,Each schedule object has all its properties populated with data with
the exception of the task information, which are all NULL (see
Schedule.getTaskList()
).
This method is available to the administrator and the schedule owner only.
An administrator will receive all schedules, an end user will receive only those
schedules owned by him.
getScheduleInfoListByOwner
in interface ScheduleManager
owner
- The schedule owner's username.
Schedule
objects.
CasterException
public Schedule[] getScheduleInfoList(java.lang.String owner, java.lang.String method, java.lang.String priority, java.lang.String active, java.util.Calendar startDate, java.util.Calendar endDate) throws CasterException
getScheduleInfoList
in interface ScheduleManager
CasterException
public java.lang.String addSchedule(Schedule schedule) throws CasterException
ScheduleManager
Schedule object and adds it to the ReportCaster repository.
The schedule object may have been created in any of several ways (for example by
using the Schedule
object's Constructor or one of
ScheduleManager's createScheduleInstance methods). The object itself exists
in memory, but does not actually exist in the repository until this method is
called. Once the schedule is added to the repository,
the newly generated scheduleId (same Id as returned by
Schedule.getId()
), which uniquely identifies this
Schedule>/code> object in the ReportCaster repository, is returned to
the caller.
This method is available to the administrator and the schedule owner only.
- Specified by:
addSchedule
in interface ScheduleManager
- Parameters:
schedule
- A Schedule object encapsulating the new Schedule
object.
- Returns:
- A newly generated schedule identifier or scheduleId.
- Throws:
CasterException
public void updateSchedule(Schedule schedule) throws CasterException
ScheduleManager
Schedule
object which already exists in the
ReportCaster repository. Before modifying the schedule, ReportCaster checks
the scheduleId (see Schedule.getId()
) to determine if this
schedule object, as identified by its unique Id, is already in the
repository/database. If it is, the caller can modify the properties.
If it is not already in the database, an exception is thrown (see CasterException below).
This method is available to the administrator and the schedule owner only.
updateSchedule
in interface ScheduleManager
schedule
- A Schedule object encapsulating the existing Schedule
.
CasterException
- The msgId for the Exception thrown if the
scheduleId is not in the database is "SCH001".public void deleteSchedule(java.lang.String scheduleId) throws CasterException
ScheduleManager
deleteSchedule
in interface ScheduleManager
scheduleId
- Id that uniquely identifies the schedule in the repository.
CasterException
public java.lang.String[] getOwnerList() throws CasterException
ScheduleManager
getOwnerList
in interface ScheduleManager
CasterException
public java.lang.String run(Schedule schedule) throws CasterException
ScheduleManager
run
in interface ScheduleManager
schedule
- A Schedule object encapsulating the job that is to be run.
CasterException
public java.lang.String run(java.lang.String[] scheduleIdList, JobOptions jobOptions) throws CasterException
run
in interface ScheduleManager
CasterException
public java.lang.String getScheduleId(java.lang.String owner, java.lang.String scheduleDescription) throws CasterException
ScheduleManager
Schedule.getDescription()
) and owner. If the API caller is
admin, any owner can be specified. If the caller is an enduser, the owner must
be the caller itself. Otherwise, an Exception will be thrown during the
permission check.
getScheduleId
in interface ScheduleManager
owner
- The username of the schedule ownerscheduleDescription
- The description of the schedule (see
Schedule.getDescription()
). Note that maximum field length is
90 characters
CasterException
public Schedule createScheduleInstanceDefault() throws CasterException
ScheduleManager
Schedule
object with default schedule property
values. The default values are: intervalType = ONCE,
distributionType = MAIL, and taskType = WEBFOCUS_SERVER_PROCEDURE,priority = 3,
and notification is off.
createScheduleInstanceDefault
in interface ScheduleManager
Schedule
object.
CasterException
public Schedule createScheduleInstance(int intervalType, java.lang.String methodCode, int taskType) throws CasterException
ScheduleManager
Schedule
object with specified integer constant values for
IntervalType
, distributionType
, and
taskType
. The acceptable CONSTANTS are as follows:
intervalType: TimeInfo.ONCE, TimeInfo.MINUTE, TimeInfo.HOUR,TimeInfo.DAY,TimeInfo.WEEK,TimeInfo.MONTH, TimeInfo.YEAR
distributionType:Distribution.MAIL,Distribution.FTP,Distribution.PRINT,Distribution.MRE,Distribution.LIBRARY
taskType: Task.WEBFOCUS_SERVER_PROCEDURE,Task.STANDARD_REPORT,Task.MY_REPORT,Task.URL,Task.FILE
If a Notification
object isn't attached the default is never, and the default priority is 3.
createScheduleInstance
in interface ScheduleManager
intervalType
- The time interval (see TimeInfo
class).methodCode
- The method of distribution (see
Distribution
class).taskType
- The type of task (see Task
class).
Schedule
object.
CasterException
TimeInfo.ONCE
,
TimeInfo.MINUTE
,
TimeInfo.HOUR
,
TimeInfo.DAY
,
TimeInfo.WEEK
,
TimeInfo.MONTH
,
TimeInfo.YEAR
,
Distribution.EMAIL
,
Distribution.FTP
,
Distribution.PRINT
,
Distribution.MRE
,
Distribution.LIBRARY
,
Task.WEBFOCUS_SERVER_PROCEDURE
,
Task.STANDARD_REPORT
,
Task.MY_REPORT
,
Task.URL
,
Task.FILE
public AmperParameter[] getAmperParameterList(Task task) throws CasterException
ScheduleManager
AmperParameter
for more information.
This method is available to the administrator and the schedule owner only.
getAmperParameterList
in interface ScheduleManager
task
- The Task
object containing the Amper variables that get
encapsulated in Array of AmperParameter objects..
AmperParameter
objects.
CasterException
AmperParameter
public AmperParameter[] getAmperParameterList(Task task, java.lang.String owner) throws CasterException
ScheduleManager
AmperParameter
for more information.
This method is available to the administrator and the schedule owner only.
getAmperParameterList
in interface ScheduleManager
task
- The Task
object containing the Amper variables that get
encapsulated in Array of AmperParameter objects..owner
- The username of the schedule owner
AmperParameter
objects.
CasterException
AmperParameter
public java.lang.String run(Schedule schedule, JobOptions jobOptions) throws CasterException
ScheduleManager
run
in interface ScheduleManager
schedule
- A Schedule object encapsulating the job that is to be run.
CasterException
public TimeInfo addCustomInterval(TimeInfo timeInfo) throws CasterException
CasterException
public TimeInfo[] selectCustomIntervalList() throws CasterException
CasterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |