public class SchedulerAbstractAction extends javax.swing.AbstractAction implements AuthenticationListener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
authenDomainForSourceKar |
protected static java.lang.String |
authenticationServiceURLForSourceKar |
protected static java.util.Hashtable<java.lang.String,java.lang.String> |
domainSessionHash |
protected static java.lang.String |
ERROR |
protected static boolean |
hasReportLayout |
protected static java.util.concurrent.atomic.AtomicBoolean |
isActionWithAuthenticationDone |
static java.lang.String |
NOREPORTWARNING |
protected TableauFrame |
parent |
protected Schedule |
schedule |
protected ScheduleChangeController |
scheduleChangeController |
protected static java.lang.String |
SCHEDULER |
protected WorkflowSchedulerParentPanel |
schedulerParentPanel |
protected java.lang.String |
schedulerURL |
protected static java.lang.String |
SLASHCONNECTOR |
protected static Repository |
source |
protected static java.lang.String |
sourceRepositoryName |
protected static java.lang.String |
URL |
CANCEL, FAILURE, SUCCESS
Constructor and Description |
---|
SchedulerAbstractAction(TableauFrame parent,
WorkflowSchedulerParentPanel schedulerParentPanel,
ScheduleChangeController scheduleChangeController)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Perform an action to a workflow
|
void |
authenticationComplete(int status,
java.lang.String sessionId,
java.lang.String domainName)
Call back method of AuthenticatListener.
|
void |
checkActionWithAuthentication()
Check if an action with authentication process is done
|
protected void |
doAction()
Do the real action.
|
static void |
setHasReportLayout(boolean hasReportingLayout)
Set true if the workflow associated with action has a report layout.
|
void |
setSchedule(Schedule schedule)
Set the schedule object
|
static void |
setSourceRespositoryName(java.lang.String name)
Set the sourceRepositoryName associated with the action
|
protected static final java.lang.String SCHEDULER
protected static final java.lang.String URL
protected static final java.lang.String ERROR
protected static java.lang.String SLASHCONNECTOR
public static final java.lang.String NOREPORTWARNING
protected static java.util.Hashtable<java.lang.String,java.lang.String> domainSessionHash
protected static java.lang.String authenDomainForSourceKar
protected static java.lang.String authenticationServiceURLForSourceKar
protected static java.lang.String sourceRepositoryName
protected static Repository source
protected java.lang.String schedulerURL
protected TableauFrame parent
protected ScheduleChangeController scheduleChangeController
protected WorkflowSchedulerParentPanel schedulerParentPanel
protected static volatile java.util.concurrent.atomic.AtomicBoolean isActionWithAuthenticationDone
protected static boolean hasReportLayout
public SchedulerAbstractAction(TableauFrame parent, WorkflowSchedulerParentPanel schedulerParentPanel, ScheduleChangeController scheduleChangeController)
parent
- the parent frame of this actionscheduleChangeController
- the GUI controller to handle the schedule change.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
protected void doAction() throws java.lang.Exception
java.lang.Exception
public void checkActionWithAuthentication() throws java.lang.Exception
java.lang.Exception
public static void setSourceRespositoryName(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public void authenticationComplete(int status, java.lang.String sessionId, java.lang.String domainName)
authenticationComplete
in interface AuthenticationListener
status
- the status of the authenticationsessionId
- the sessionId getting from authenticationdomainName
- the name of domain which processes the authenticationpublic void setSchedule(Schedule schedule)
schedule
- public static void setHasReportLayout(boolean hasReportingLayout)
hasReportingLayout
-