|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
com.tarantella.tta.webservices.client.views.PrintJobsView
public class PrintJobsView
The class maintains a view of jobs in the print queue.
| Field Summary | |
|---|---|
static java.lang.String |
EVENT_ADD_JOB
Name of event to add a job. |
static java.lang.String |
EVENT_CANCEL_ALL_JOBS
Name of event to cancel all jobs. |
static java.lang.String |
EVENT_CANCEL_JOB
Name of event to cancel a job. |
static java.lang.String |
EVENT_PAUSE_QUEUE
Name of event to pause the application's print queue. |
static java.lang.String |
EVENT_PRINT_JOB
Name of event to print a job. |
static java.lang.String |
EVENT_REMOVE_JOB
Name of event to remove a job. |
static java.lang.String |
EVENT_RESTART_QUEUE
Name of event to restart the application's print queue. |
| Method Summary | |
|---|---|
void |
addPrintJob(java.lang.String printJobName,
java.lang.String[] attributes)
Looks-up a print job and adds it to the cache. |
java.lang.String |
cancelAllJobs()
Cancels all print jobs. |
java.lang.String |
cancelJobs(java.lang.String[] printJobNames)
Cancels selected print jobs. |
int |
countJobs()
Counts existing print jobs. |
void |
generateView(java.lang.String[] attributes,
boolean forceRefresh)
Generates and caches a view of print jobs. |
IResponse |
getPrintJob(java.lang.String printJobName)
Gets a print job from the cache. |
int |
getPrintJobCount()
Gets the number of print jobs in the cache. |
java.util.Enumeration |
getPrintJobEnumeration()
Gets an enumeration of print jobs in the cache. |
java.lang.String |
getPrintQueueStatus()
Gets the status of the user's print queue. |
java.lang.String |
lookupJobs(java.lang.String[] printJobNames,
java.lang.String[] desiredAttributes)
Looks-up print jobs. |
java.lang.String |
printAllJobs()
Sends all print jobs to the printer. |
java.lang.String |
printJobs(java.lang.String[] printJobNames)
Sends selected print jobs to the printer. |
boolean |
processEvent(java.lang.String eventName,
java.lang.String eventAction,
java.lang.String eventData)
Processes events affecting this view. |
java.lang.String |
search(java.lang.String searchSpec,
java.lang.String[] desiredAttributes)
Searches for print jobs. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EVENT_PRINT_JOB
public static final java.lang.String EVENT_RESTART_QUEUE
public static final java.lang.String EVENT_PAUSE_QUEUE
public static final java.lang.String EVENT_ADD_JOB
public static final java.lang.String EVENT_CANCEL_JOB
public static final java.lang.String EVENT_CANCEL_ALL_JOBS
public static final java.lang.String EVENT_REMOVE_JOB
| Method Detail |
|---|
public void generateView(java.lang.String[] attributes,
boolean forceRefresh)
throws java.rmi.RemoteException
attributes - The attributes desired in the responseforceRefresh - Flag controlling how the request is serviced.
| true | request must be sent to the server |
| false | request may be serviced from the cached view |
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String cancelAllJobs()
throws java.rmi.RemoteException
ITarantellaPrint.cancelAllJobs(String).
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String cancelJobs(java.lang.String[] printJobNames)
throws java.rmi.RemoteException
printJobNames - Array of print job IDs.
ITarantellaPrint.cancelJobs(String, String[]).
java.rmi.RemoteException - On receipt of a SOAP fault.
public int countJobs()
throws java.rmi.RemoteException
getPrintJobCount() to get the cached count.
ITarantellaPrint.countJobs(String).
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String lookupJobs(java.lang.String[] printJobNames,
java.lang.String[] desiredAttributes)
throws java.rmi.RemoteException
printJobNames - Array of print job IDs.desiredAttributes - Array of attributes wanted in the response.
ITarantellaPrint.lookupJobs(String, String[], String[]).
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String printAllJobs()
throws java.rmi.RemoteException
ITarantellaPrint.printAllJobs(String)
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String printJobs(java.lang.String[] printJobNames)
throws java.rmi.RemoteException
printJobNames - Array of print job IDs.
ITarantellaPrint.printJobs(String, String[]).
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String search(java.lang.String searchSpec,
java.lang.String[] desiredAttributes)
throws java.rmi.RemoteException
searchSpec - Array of print job IDs.desiredAttributes - Array of attributes wanted in the response.
ITarantellaPrint.search(String, String, String[]).
java.rmi.RemoteException - On receipt of a SOAP fault.
public java.lang.String getPrintQueueStatus()
throws java.rmi.RemoteException
java.rmi.RemoteException - On receipt of a SOAP fault.
public void addPrintJob(java.lang.String printJobName,
java.lang.String[] attributes)
throws java.rmi.RemoteException
printJobName - Print job IDs.attributes - Array of attributes wanted in the response.
java.rmi.RemoteException - On receipt of a SOAP fault.public int getPrintJobCount()
countJobs() to get
the number of jobs in the print system on the SGD server.
public IResponse getPrintJob(java.lang.String printJobName)
printJobName - Print job ID.
public java.util.Enumeration getPrintJobEnumeration()
public boolean processEvent(java.lang.String eventName,
java.lang.String eventAction,
java.lang.String eventData)
throws java.rmi.RemoteException
eventName - Name of the event. Currently, no events are supported.eventAction - Event actioneventData - Event data
| true if the event was processed and the view updated |
| false if the event was not processed leaving the view corrupt |
java.rmi.RemoteException - On receipt of a SOAP fault.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||