|
Oracle Secure Global Desktop Web Services API Documentation Release 4.6 E23734-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.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. |
java.lang.String |
getAbsoluteURL(IResponse obj) Gets the absolute URL of an SGD document. |
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.util.ArrayList<WSObject> |
getPrintJobs() Gets a list of print jobs in the cache. |
java.lang.String |
getPrintQueueStatus() Gets the status of the user's print queue. |
java.util.Enumeration<IResponse> |
getSortedEnumeration(java.util.Enumeration enm, java.lang.String attName) Gets an enumeration of IResponse objects, sorted by the value of the attribute. |
java.lang.String |
lookupFullName(java.lang.String hashName) Looks up the full name based on the hash name. |
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 java.util.ArrayList<WSObject> getPrintJobs()
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 datatrue 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.public java.lang.String lookupFullName(java.lang.String hashName)
hashName
- The hash name of the object.public java.lang.String getAbsoluteURL(IResponse obj)
obj
- The document object.public java.util.Enumeration<IResponse> getSortedEnumeration(java.util.Enumeration enm, java.lang.String attName)
enm
- Initial enumerationattName
- Name of the attribute on which to sort
|
Oracle Secure Global Desktop Web Services API Documentation Release 4.6 E23734-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |