|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.Staker.server.JobArchive
public class JobArchive
Collects and encapsulates all info related to a Job - header, checkout information, etc. A provided JobLibraryFileManager reference allows loading and saving to be encapsulated as well. It is intentionally not a bean - all state is not accessible through accessor methods. You must supply the required state (jobNumber and fileManager) to the constructor.
| Constructor Summary | |
|---|---|
JobArchive(Job newJob,
JobLibraryFileManager fileManager)
Create a totally new JobArchive. |
|
JobArchive(java.lang.String jobNumber,
JobLibraryFileManager fileManager)
Create a new JobArchive. |
|
| Method Summary | |
|---|---|
void |
addNote(Note comment)
Adds a note. |
void |
archiveJob()
Backs up the job to Hub/data/backups/`jobNumber`-`timestamp`.tof. |
boolean |
changeHeader(ChangeJobHeader changer)
Applies individual field changes to the JobHeader. |
boolean |
checkinHeader(CheckedOutJobHeader checkedOutHeader)
Check in a modified version of the header. |
void |
checkinJob(CheckedOutJob jobbie)
Check in job. |
CheckedOutJobHeader |
checkoutHeader(java.lang.String customer)
Check out the current version of the header. |
CheckedOutJob |
checkoutJob(java.lang.String customer)
Check out job. |
void |
forceReleaseJob()
Forcibly release job; damn the consequences. |
JobCheckouts |
getCheckouts()
|
JobHeader |
getHeader()
|
Job |
getJob()
Job in archive. |
java.lang.String |
getJobNumber()
|
boolean |
isChanged()
True if any part of the archive needs saving. |
void |
markChanged()
Flag it as changed regardless of what it thinks. |
void |
markHeaderChanged()
Mark that header changed. |
void |
releaseHeader(LibraryVersionReceipt receipt)
Release header without modifying. |
void |
releaseJob(CheckedOutJob job)
Release job. |
void |
removeJob()
|
void |
resetJob(Job newJob)
Use this to set up a new JobArchive, or to totally reset an old one. |
void |
runTriggers()
Runs any trigger actions - e.g., setting the staked date the first time the job comes in as "Staked". |
void |
save()
Save any changes. |
static void |
spit(Job jobber)
|
JobHeader |
viewHeader()
Use this whenever distributing JobHeaders, since it gives you a cloned version, thus protecting the original. |
Job |
viewJob()
Use this whenever distributing Jobs, since it gives you a cloned version, thus protecting the original. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobArchive(java.lang.String jobNumber,
JobLibraryFileManager fileManager)
public JobArchive(Job newJob,
JobLibraryFileManager fileManager)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static void spit(Job jobber)
public CheckedOutJobHeader checkoutHeader(java.lang.String customer)
throws java.io.IOException
java.io.IOException
public boolean checkinHeader(CheckedOutJobHeader checkedOutHeader)
throws java.io.IOException
java.io.IOException
public boolean changeHeader(ChangeJobHeader changer)
throws java.io.IOException
java.io.IOException
public void addNote(Note comment)
throws java.io.IOException
java.io.IOException
public void releaseHeader(LibraryVersionReceipt receipt)
throws java.io.IOException
java.io.IOException
public CheckedOutJob checkoutJob(java.lang.String customer)
throws java.io.IOException
java.io.IOException
public void archiveJob()
throws java.io.IOException,
JobLibraryException
java.io.IOException
JobLibraryException
public void checkinJob(CheckedOutJob jobbie)
throws java.io.IOException,
JobLibraryException
java.io.IOException
JobLibraryException
public void releaseJob(CheckedOutJob job)
throws java.io.IOException
java.io.IOException
public void forceReleaseJob()
throws java.io.IOException
java.io.IOException
public void resetJob(Job newJob)
throws java.io.IOException
java.io.IOException
public void removeJob()
throws java.io.IOException
java.io.IOException
public void save()
throws java.io.IOException
java.io.IOExceptionpublic void markChanged()
public Job viewJob()
throws java.io.IOException
java.io.IOException
public JobHeader viewHeader()
throws java.io.IOException
java.io.IOException
public void runTriggers()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getJobNumber()
public Job getJob()
throws java.io.IOException
java.io.IOException
public JobHeader getHeader()
throws java.io.IOException
java.io.IOExceptionpublic boolean isChanged()
public void markHeaderChanged()
public JobCheckouts getCheckouts()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||