Style Intelligence v12.0

inetsoft.sree.schedule
Class ScheduleManager

java.lang.Object
  extended by inetsoft.sree.schedule.ScheduleManager

public class ScheduleManager
extends Object

Schedule manager manages schedule tasks. The schedule task might be a normal schedule task or comes from a schedule extension. Scheduler will load and execute the schedule tasks contained in the schedule manager.


Method Summary
 void addScheduleExt(ScheduleExt ext)
          Add a schedule extension.
 void archiveRenamed(String opath, String npath, String owner)
          Method will be invoked when an archive is renamed.
 void assetRemoved(AssetEntry entry)
          Method will be invoked when asset is removed.
 void assetRenamed(AssetEntry oentry, AssetEntry nentry)
          Method will be invoked when asset is renamed.
 void folderRenamed(String opath, String npath, String owner)
          Method will be invoked when a folder is renamed.
 Vector getExtensions()
          Get all the schedule extension.
 Hashtable getScheduleActivities()
          Get all the schedule task activities.
static ScheduleManager getScheduleManager()
          Get the schedule manager.
 ScheduleTask getScheduleTask(String taskName)
          Get a schedule task with a schedule task name.
 Vector getScheduleTasks()
          Get schedule tasks.
 Vector getScheduleTasks(Principal principal)
          Get all the tasks depends on the access permission.
 Vector getSelectScheduleTasks(String selectStr, String filter, Principal principal)
          Get the select tasks depends on the access permission.
 boolean hasDependency(Vector alltasks, String taskName)
          Check task dependency for rename & delete action.
 void identityRemoved(inetsoft.uql.util.Identity identity)
          Method will be invoked when a user is removed.
 void identityRenamed(String oname, inetsoft.uql.util.Identity identity)
          Method will be invoked when a user is renamed.
 void mvRemoved(String mvName)
          Method will be invoked when mv is removed.
static ScheduleAction parseScheduleAction(Element action)
          Parses an XML representation of a schedule action.
 void refreshScheduleActivities()
          Refresh schedule activities.
 void reloadExtensions()
          Reload extensions.
 void removeScheduleTask(String taskName, Principal principal)
          Remove a schedule task.
 void removeScheduleTask(String taskName, Principal principal, boolean checkDependency)
          Remove a schedule task.
 void repletRemoved(String replet, String owner)
          Method will be invoked when a replet is removed.
 void repletRenamed(String oreplet, String nreplet, String owner)
          Method will be invoked when a replet is renamed.
 void restartScheduler()
          Restart scheduler.
 void save(Enumeration enumeration)
          Save the all the schedule tasks.
 boolean schedulerNeedsReload()
          Check if scheduler needs reload.
 void setScheduleTask(String taskName, ScheduleTask task, Principal principal)
          Save a schedule task.
 boolean taskCompare(inetsoft.util.Catalog catalog, String selectStr, String filter, String taskName)
          Through the comparison to obtain corresponding tasks.
 void viewSheetRenamed(String oviewSheet, String nviewSheet, String owner)
          Method will be invoked when a viewsheet is renamed.
static void writeScheduleAction(ScheduleAction action, PrintWriter writer)
          Writes the XML representation of a schedule action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScheduleManager

public static ScheduleManager getScheduleManager()
Get the schedule manager.


schedulerNeedsReload

public boolean schedulerNeedsReload()
Check if scheduler needs reload.

Returns:
true if scheduler needs reload, false otherwise.

restartScheduler

public void restartScheduler()
Restart scheduler.


reloadExtensions

public void reloadExtensions()
Reload extensions. The old schedule tasks come from schedule extensions will be discarded and new schedule tasks come from schedule extendsions will be loaded.


parseScheduleAction

public static ScheduleAction parseScheduleAction(Element action)
                                          throws Exception
Parses an XML representation of a schedule action.

Parameters:
action - the XML element to parse.
Returns:
the parsed action.
Throws:
Exception - if the action could not be parsed.

save

public void save(Enumeration enumeration)
          throws Exception
Save the all the schedule tasks.

Parameters:
enumeration - all the schedule tasks which might be changed.
Throws:
Exception

writeScheduleAction

public static void writeScheduleAction(ScheduleAction action,
                                       PrintWriter writer)
Writes the XML representation of a schedule action.

Parameters:
action - the action to write.
writer - the print writer used to write the XML.

getScheduleTasks

public Vector getScheduleTasks()
Get schedule tasks.


getScheduleTask

public ScheduleTask getScheduleTask(String taskName)
Get a schedule task with a schedule task name.


getScheduleActivities

public Hashtable getScheduleActivities()
Get all the schedule task activities.


refreshScheduleActivities

public void refreshScheduleActivities()
Refresh schedule activities.


addScheduleExt

public void addScheduleExt(ScheduleExt ext)
Add a schedule extension.


getExtensions

public Vector getExtensions()
Get all the schedule extension.


getScheduleTasks

public Vector getScheduleTasks(Principal principal)
                        throws Exception
Get all the tasks depends on the access permission.

Throws:
Exception

getSelectScheduleTasks

public Vector getSelectScheduleTasks(String selectStr,
                                     String filter,
                                     Principal principal)
                              throws Exception
Get the select tasks depends on the access permission.

Throws:
Exception

taskCompare

public boolean taskCompare(inetsoft.util.Catalog catalog,
                           String selectStr,
                           String filter,
                           String taskName)
                    throws Exception
Through the comparison to obtain corresponding tasks.

Throws:
Exception

setScheduleTask

public void setScheduleTask(String taskName,
                            ScheduleTask task,
                            Principal principal)
                     throws Exception
Save a schedule task.

Throws:
Exception

removeScheduleTask

public void removeScheduleTask(String taskName,
                               Principal principal,
                               boolean checkDependency)
                        throws Exception
Remove a schedule task.

Throws:
Exception

removeScheduleTask

public void removeScheduleTask(String taskName,
                               Principal principal)
                        throws Exception
Remove a schedule task.

Throws:
Exception

hasDependency

public boolean hasDependency(Vector alltasks,
                             String taskName)
Check task dependency for rename & delete action.


identityRemoved

public void identityRemoved(inetsoft.uql.util.Identity identity)
Method will be invoked when a user is removed.


identityRenamed

public void identityRenamed(String oname,
                            inetsoft.uql.util.Identity identity)
Method will be invoked when a user is renamed.


assetRenamed

public void assetRenamed(AssetEntry oentry,
                         AssetEntry nentry)
Method will be invoked when asset is renamed.

Parameters:
oentry - the specified old entry.
nentry - the specified new entry.

assetRemoved

public void assetRemoved(AssetEntry entry)
Method will be invoked when asset is removed.

Parameters:
entry - the specified asset entry.

mvRemoved

public void mvRemoved(String mvName)
Method will be invoked when mv is removed.

Parameters:
mv - name.

repletRemoved

public void repletRemoved(String replet,
                          String owner)
Method will be invoked when a replet is removed.

Parameters:
replet - the specified replet.
owner - the specified user.

archiveRenamed

public void archiveRenamed(String opath,
                           String npath,
                           String owner)
Method will be invoked when an archive is renamed.

Parameters:
opath - the specified old archive path.
npath - the specified new archive path.
owner - the specified user.

repletRenamed

public void repletRenamed(String oreplet,
                          String nreplet,
                          String owner)
Method will be invoked when a replet is renamed.

Parameters:
oreplet - the specified old replet.
nreplet - the specified new replet.
owner - the specified user.

viewSheetRenamed

public void viewSheetRenamed(String oviewSheet,
                             String nviewSheet,
                             String owner)
Method will be invoked when a viewsheet is renamed.

Parameters:
oviewSheet - the specified old viewsheet.
nviewSheet - the specified new viewsheet.
owner - the specified user.

folderRenamed

public void folderRenamed(String opath,
                          String npath,
                          String owner)
Method will be invoked when a folder is renamed.

Parameters:
opath - the specified old folder path.
npath - the specified new folder path.
owner - the specified user.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.