|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JobLibrarian
A front end to the JobLibrary. Handles locking, merging, checkout, etc. Library clients should use this class to access the library; administrators can use the library directly. Also encapsulates any network transfers necessary.
| Method Summary | |
|---|---|
void |
addJob(Job newJob)
Add a new job to the library. |
void |
addJobLibraryListener(JobLibraryListener nosey)
|
java.util.Iterator |
allHeaders()
Get a list of all the job headers in the library. |
java.util.Iterator |
allJobNumbers()
Get a list of all the job numbers. |
java.util.ArrayList |
allJobNumbersList()
Get a list of all the job numbers. |
java.util.Iterator |
allJobsAssignedTo(java.lang.String stakerName)
Get a list of all the job numbers assigned to the given staker |
void |
checkinHeader(CheckedOutJobHeader header)
Check in a job header; merges it with any other versions in the library. |
void |
checkinJob(CheckedOutJob job)
Check in job with modifications. |
CheckedOutJobHeader |
checkoutHeader(java.lang.String jobNumber)
|
CheckedOutJob |
checkoutJob(java.lang.String jobNumber)
Check out a job for modifications. |
void |
close()
Close down for the day. |
void |
createJob(java.lang.String jobName)
|
void |
fireJobChanged(java.lang.String jobNumber)
Fires a change event on a job - usually results in the job being resent to external interfaces etc. |
void |
forceReleaseJob(java.lang.String jobNumber)
Release job; this will eject the checkout for that job - use with caution. |
boolean |
jobExists(java.lang.String jobNumber)
Check if a job exists in the library. |
java.lang.String |
jobStatus(java.lang.String jobNumber)
Get status for a job. |
java.lang.Object |
processCustomRequest(CustomLibraryRequest request)
Process a special request. |
void |
releaseHeader(CheckedOutJobHeader header)
Release a job header from checkout; doesn't modify. |
void |
releaseJob(CheckedOutJob job)
Release job - checks in without modifications. |
void |
removeJobLibraryListener(JobLibraryListener nosey)
|
JobHeader |
viewHeader(java.lang.String jobNumber)
See the job header corresponding to the job number. |
Job |
viewJob(java.lang.String jobNumber)
See the job corresponding to the job number. |
| Method Detail |
|---|
java.util.Iterator allHeaders()
throws JobLibraryException
JobLibraryException
java.util.Iterator allJobNumbers()
throws JobLibraryException
JobLibraryException
java.util.ArrayList allJobNumbersList()
throws JobLibraryException
JobLibraryException
java.util.Iterator allJobsAssignedTo(java.lang.String stakerName)
throws JobLibraryException
JobLibraryException
void createJob(java.lang.String jobName)
throws JobLibraryException
JobLibraryException
void addJob(Job newJob)
throws JobLibraryException
JobLibraryException
JobHeader viewHeader(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
CheckedOutJobHeader checkoutHeader(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
void releaseHeader(CheckedOutJobHeader header)
throws JobLibraryException
JobLibraryException
void checkinHeader(CheckedOutJobHeader header)
throws JobLibraryException
JobLibraryException
Job viewJob(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
CheckedOutJob checkoutJob(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
void releaseJob(CheckedOutJob job)
throws JobLibraryException
JobLibraryException
void fireJobChanged(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
void forceReleaseJob(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
void checkinJob(CheckedOutJob job)
throws JobLibraryException
JobLibraryException
java.lang.Object processCustomRequest(CustomLibraryRequest request)
throws JobLibraryException
JobLibraryException
void close()
throws JobLibraryException
JobLibraryException
boolean jobExists(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryException
java.lang.String jobStatus(java.lang.String jobNumber)
throws JobLibraryException
JobLibraryExceptionvoid addJobLibraryListener(JobLibraryListener nosey)
void removeJobLibraryListener(JobLibraryListener nosey)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||