Package com.basis.api.admin.client
Class BBjAdminClientTaskGroup
java.lang.Object
com.basis.api.admin.internal.BBjAdminSimplePropReader
com.basis.api.admin.internal.BBjAdminSimplePropWriter
com.basis.api.admin.client.BBjAdminClientTaskGroup
- All Implemented Interfaces:
BBjAdminPropertyReader
,BBjAdminPropertyWriter
,BBjAdminTaskGroup
,Serializable
,Remote
- See Also:
-
Field Summary
Fields inherited from class com.basis.api.admin.internal.BBjAdminSimplePropWriter
m_hasChanged
Fields inherited from class com.basis.api.admin.internal.BBjAdminSimplePropReader
m_properties, m_types
Fields inherited from interface com.basis.api.admin.BBjAdminTaskGroup
AUTORUN, DAILY, END_DATE, FRIDAY, HOURLY, ID, LAST_RUN, LAST_STATUS, MONDAY, MONTHLY, NAME, NEXT_RUN, NONE, REPEAT_DAYS, REPEAT_FREQUENCY, REPEAT_TYPE, SATURDAY, SCHEUDULING_PREFIX, START_DATE, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY, WEEKLY, YEARLY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
Stores any changes made, to the task definition file.boolean
boolean
Call this method to execute the scheduled task and its items if it is the appropriate time according to its configuration.void
Executes the task group only if it is configured as autorun.Returns a human readable description of the scheduling for this group.getTasks()
Returns a list of tasks within this group.Internal use only.boolean
Returns true if the group is currently enabled and scheduled run.newTask
(BBjAdminTask.TaskType p_type) Creates a new instance of a task but does NOT add it to the list of tasks.void
setEnabled
(boolean p_enabled) Enables or disables the task group.void
setTasks
(BBjAdminList<BBjAdminTask> p_tasks) Methods inherited from class com.basis.api.admin.internal.BBjAdminSimplePropWriter
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
Methods inherited from class com.basis.api.admin.internal.BBjAdminSimplePropReader
checkValueEqual, compareProperties, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.basis.api.admin.BBjAdminPropertyReader
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
Methods inherited from interface com.basis.api.admin.BBjAdminPropertyWriter
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
-
Constructor Details
-
BBjAdminClientTaskGroup
- Throws:
BBjAdminException
-
-
Method Details
-
executeIfAppropriate
Description copied from interface:BBjAdminTaskGroup
Call this method to execute the scheduled task and its items if it is the appropriate time according to its configuration. If it was time and it executed it returns true. Otherwise returns false.- Specified by:
executeIfAppropriate
in interfaceBBjAdminTaskGroup
- Throws:
BBjAdminException
-
executeIfAutorun
Description copied from interface:BBjAdminTaskGroup
Executes the task group only if it is configured as autorun.- Specified by:
executeIfAutorun
in interfaceBBjAdminTaskGroup
- Throws:
BBjAdminException
-
getTasks
Description copied from interface:BBjAdminTaskGroup
Returns a list of tasks within this group. When you execute the group, all of its tasks will be executed in the order they appear in the group.- Specified by:
getTasks
in interfaceBBjAdminTaskGroup
- Returns:
- List of the tasks in this group.
-
setTasks
- Specified by:
setTasks
in interfaceBBjAdminTaskGroup
-
getSchedulingDescription
Description copied from interface:BBjAdminTaskGroup
Returns a human readable description of the scheduling for this group. If it is a date, it will show the date and time. If a day of the week, the name of the day of the week. Etc.....- Specified by:
getSchedulingDescription
in interfaceBBjAdminTaskGroup
- Returns:
- The description of how this task group is scheduled. Takes all the scheduling criteria and builds a human readable string.
- Throws:
BBjAdminException
-
newTask
Description copied from interface:BBjAdminTaskGroup
Creates a new instance of a task but does NOT add it to the list of tasks. Make sure to add the instance to the list of tasks returned by a call toBBjAdminTaskGroup.getTasks()
.- Specified by:
newTask
in interfaceBBjAdminTaskGroup
- Returns:
- New instance of the specified type. Always use this method to create new task instances, never use the implementation classes of BBjAdminTask.
- Throws:
BBjAdminException
-
getXML
Description copied from interface:BBjAdminTaskGroup
Internal use only.- Specified by:
getXML
in interfaceBBjAdminTaskGroup
- Throws:
BBjAdminException
-
commit
Description copied from interface:BBjAdminTaskGroup
Stores any changes made, to the task definition file.- Specified by:
commit
in interfaceBBjAdminTaskGroup
- Throws:
BBjAdminException
-
equals
-
isEnabled
Description copied from interface:BBjAdminTaskGroup
Returns true if the group is currently enabled and scheduled run.- Specified by:
isEnabled
in interfaceBBjAdminTaskGroup
- Returns:
- True if the task group is enabled. False if not.
- Throws:
BBjAdminException
-
setEnabled
Description copied from interface:BBjAdminTaskGroup
Enables or disables the task group. A disabled task group will not run the next time it is scheduled to. NOTE: You must call commit() on the BBjAdminTaskGroup in order for the enabled state to be saved and updated.- Specified by:
setEnabled
in interfaceBBjAdminTaskGroup
- Throws:
BBjAdminException
-