|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.AdminModuleBase org.bibalex.daf.entities.job.Job
public class Job
Handles the job related tasks such as starting and finishing a job
Nested Class Summary | |
---|---|
static class |
Job.JobOldOrNew
Enumerator lists the possible states of the Job in the system. |
Field Summary | |
---|---|
private int |
batchID
|
private java.lang.String |
batchName
|
private java.lang.String |
collectionName
|
private int |
conditionID
|
private DBConnection |
conn
|
private java.lang.String |
creator
|
private java.util.Date |
date
|
private java.util.Date |
dueDate
|
private java.lang.String |
externalID
|
private int |
externalIDType
|
private java.lang.String |
externalIDTypeName
|
private int |
id
|
private java.lang.String |
identifyingLob
|
private java.lang.String |
Info1
|
private java.lang.String |
Info2
|
private java.lang.String |
Info3
|
private int |
jobTypeID
|
private java.lang.String |
jobTypeName
|
private int |
languageID
|
private java.lang.String |
languageName
|
private java.lang.String |
path
|
private int |
priority
|
private int |
storageID
|
private boolean |
textualValuesInitialized
Whether the textual values have been initialized or not. |
private java.lang.String |
title
|
private int |
transactionLog
|
Constructor Summary | |
---|---|
Job()
Creates a new instance of Job. |
|
Job(DataTable table)
Creates a new instance of Job. |
|
Job(int jobID)
Creates a new instance of Job. This constructor fills all the fields from the database. Remarks: Fields that correspond to null database columns are left to default values, i.e. |
Method Summary | |
---|---|
OperationInfo |
add()
Adds this instance to the Job table. |
OperationInfo |
addMedia(int mediaType,
int mediaID,
int TLID)
Add the job to Job_Media table |
OperationInfo |
addWithID()
Adds this instance to the Job table With a given ID. |
OperationInfo |
assign(int user,
int phase,
java.lang.String comment)
Assign the specified phase for this Job to the given User. |
OperationInfo |
assignFromScratch(int user,
int phase,
java.lang.String comment)
Assign the job from scratch. |
private OperationInfo |
assignInDatabase(java.lang.String spName,
int user,
int phase,
java.lang.String comment,
boolean ignorePropagationErrors)
Assign the job. |
OperationInfo |
assignRestricetd(int user,
int phase)
Assign the specified phase for this Job to the given User. |
boolean |
canChangeType(int oldOrNew)
Determines whether the given job can change its type or not. |
boolean |
canCheckOut(int jobID)
Determines if the job can check out ro not. |
boolean |
canDownload()
Determines if the job can be downloaded or not. |
boolean |
canFinish(int workstationID)
Determines whether the job can finish from the given workstation or not. |
boolean |
canStart(int userID,
int wrkstID,
int phaseID)
Determines whether the job can start or not. |
boolean |
canUpload()
Determines if the job can be uploaded or not. |
static OperationInfo |
checkIn(int jobID)
Move the job history from OldTransactionLog to TransactionLog. |
OperationInfo |
checkNonConfirmedMedias()
Check if the job medias are all confirmed to delete or not |
static OperationInfo |
checkOut(int jobID,
int userID,
int wsID,
java.lang.String comment)
Move the job history from TransactionLog to OldTransactionLog. |
static OperationInfo |
checkOutRollback(int jobID)
Roll back job check out. |
OperationInfo |
delete()
Deletes this instance from the Job table. |
boolean |
deleteBackupFolder()
Deletes the job version folder(s) located at the backup server. Notes: 1) All the job versions are deleted from the backup server. 2) If a version folder couldn't be deleted, the error is logged and the program continues and attempts to delete the next next version, if any, and so on. |
OperationInfo |
deleteCascade()
Deletes this instance (Cascaded). |
boolean |
deleteLocalFolder(WorkStation workstation,
User user)
Deletes the job folder located at the given workstation. Notes: 1) The folder is deleted using a FileHandlerLocalImpl 2) Failure to delete the job folder will be logged to the LogManager. |
boolean |
deleteRemoteFolder()
Deletes the job folder located at the server. Notes: 1) The folder is deleted using a FileHandlerFTPImpl 2) Failure to delete the job folder will be logged to the LogManager. |
boolean |
download(WorkStation workstation,
User user)
Downloads the job. |
OperationInfo |
downloadInDatabase(int phaseID,
int noOfFiles)
Sets the job state to download in the database. |
boolean |
finish(User user,
WorkStation workstation,
boolean fromCommandLine)
Finishes the job. |
OperationInfo |
finishInDatabase(int userID,
int workstationID,
int noOfFiles,
java.lang.String statusData)
Sets the job state to finish in the database. |
OperationInfo |
getAllPhasesWithUsers()
Gets All Phases for this Job, and the Last User on This Phase if there exists one. |
static OperationInfo |
getArchivedAndActiveJobs()
Get the medias that the job has been saved on |
OperationInfo |
getArchivingMatrix()
Get the archiving history matrix |
int |
getBatchID()
Gets the batch ID of the job. |
java.lang.String |
getBatchName()
Retrieves the Batch name for this job. |
static OperationInfo |
getByID(int jobID)
Gets the job specified by the ID. |
java.lang.String |
getCollectionName()
Retrieves the Collection Name for this Job. |
int |
getConditionID()
Gets the collection ID of the job. |
DBConnection |
getConnection()
Gets the connection of the job. |
java.lang.String |
getCreator()
Gets the creator of the job. |
java.util.Date |
getDate()
Gets the date of the job. |
OperationInfo |
getDoneJobs(int MediaTypeID)
Gets jobs that are finished and ready to archive. |
OperationInfo |
getDoneJobs(int MediaTypeID,
java.lang.String jobCount)
Gets jobs that are finished and ready to archive (with limit = jobCount). |
java.util.Date |
getDueDate()
Gets the due date of the job. |
OperationInfo |
getExpandedWorkFlowJobs(int jobType,
int collID,
int batchID)
Gets the Expanded System WorkFlow. |
java.lang.String |
getExternalID()
Gets the external ID of the job. |
int |
getExternalIDType()
Gets the external Id type of the job. |
java.lang.String |
getExternalIDTypeName()
Retrieves the External ID Type name for this job. |
FileHandlerFTPImpl |
getFTPFileHandler()
Gets the FileHandlerFTPImpl used to manipulate the job folder at the server. |
int |
getID()
Gets the ID of the job. |
java.lang.String |
getIdentifyingLob()
Gets the identifying lob of the job. |
java.lang.String |
getInfo1()
Gets the firts info associated with the job. |
java.lang.String |
getInfo2()
Gets the second info associated with the job. |
java.lang.String |
getInfo3()
Gets the third info associated with the job. |
OperationInfo |
getJobHistory()
Gets the job history. |
java.lang.String |
getJobInformation(boolean includeHistory)
Gets information about the job. The information are formed as an Xml string with the following structure: <job> <Nama#1>Value1</Name#1> . <Nama#n>Value1</Name#n> <History> <Entry#1 User="" Workstation="" Status="" Phase="" Date="" NumberOfFile="" /> . <Entry#n User="" Workstation="" Status="" Phase="" Date="" NumberOfFile="" /> </History> </job> Notes: 1) History node will be included if and only if the includeHistory parameter is true.2) Values are the names that corrspond to the ID, i.e. |
Job.JobOldOrNew |
getJobOldOrNewState()
Retrieves wether this Job is Checked-Out or still in the System. |
int |
getJobTypeID()
Gets the jobType ID. |
java.lang.String |
getJobTypeName()
Retrieves the Batch name for this job. |
int |
getLanguageID()
Gets the language ID of the job. |
java.lang.String |
getLanguageName()
Retrieves the Language Name for this Job. |
OperationInfo |
getLastData()
Gets the last data, the TransactionLog row to which the job points, of the job. |
OperationInfo |
getLastFinishedInfo()
Gets the TransactionLog entry that corresponds to the last finished status of the job. |
OperationInfo |
getLastFinishedInfoForPhase(int phaseID)
Gets the last finished information for the given phase. |
Phase |
getLastPhaseBeforeBackup()
Gets the last phase before the backup phase. |
OperationInfo |
getLateJobs()
Gets the Late job. |
java.lang.String |
getLocalPath(WorkStation workstation,
User user)
Gets the job path at the workstation not including the job name. |
OperationInfo |
getMedias()
Get the medias that the job has been saved on |
OperationInfo |
getMediaTypes()
Get the media types which the current job should be archived on |
int |
getMinPhase(int minPhaseID,
Phase currentPahse)
Gets the ID of the phase with the minimum sequence. |
int |
getNextVersion()
Gets the next version of the job. Next version = number of backup entries of the job in the transaction log + 1. |
java.lang.String |
getPath()
Gets the language ID of the job. |
OperationInfo |
getPendingJobs()
Gets the pending job. |
Phase |
getPhase()
Gets the current phase of the job. |
int |
getPriority()
|
OperationInfo |
getRedirectedJobs()
Gets the rejected job. |
OperationInfo |
getRejectedJobs()
Gets the rejected jobs. |
java.lang.String |
getServerPath()
Gets the job path at the server not including the job name. |
java.util.Date |
getStartDate()
Gets the start date of the job. |
Phase |
getStartingPhase()
Gets the phase in which the job will strat. If the job points to an assign entry then the phase in this entry is considered the satrting phase. If the job doesn't point to an assign entry then the phase next to the phase in this entry is considered the starting phase. |
int |
getStorageID()
|
private void |
getTextualValues()
Retrieves the textual values for this job. |
java.lang.String |
getTitle()
|
int |
getTransactionLogID()
|
OperationInfo |
getWorkFlowJobs(int jobType,
int collID,
int batchID)
Gets the System WorkFlow. |
OperationInfo |
getZips(int jobVersion)
Gets the zipped folders in a specific backed up bersion |
boolean |
isArchivingMatrixComplete()
Check if the history matrix is complete or not |
boolean |
isRephase(int phaseID)
Determines whether the job has started in the given phase at least once. |
static OperationInfo |
loadAll()
Loads all the entries form the Job table. |
static int |
nextID()
Gets an integer that can be used as the job ID. |
static java.lang.String |
PadID(long id)
Converts the given ID into a 0 paded string. |
OperationInfo |
preAssign(int user,
int phase)
Pre-Assign the specified phase for this Job to the given User. |
boolean |
redirect(User user,
WorkStation workstation,
int nextUser,
int nextPhase,
java.lang.String comment)
Redirects the job. |
OperationInfo |
redirectInDatabase(int userID,
int phaseID,
int noOfFiles,
int workstationID,
int nextUserID,
int nextPhaseID,
java.lang.String finishStatusData,
java.lang.String redirectStatusData,
java.lang.String assignStatusData)
Sets the job state to redirect in the database. The stored procedure does the following: 1) Adds a finish entry for the job. 2) Adds the redirect entry for the job. 3) Adds an assign entry if the job has the right to do so. |
boolean |
reject(User user,
WorkStation workstation,
User nextUser,
Phase nextPhase,
java.lang.String comment)
Rejects the job. |
boolean |
rejectForced(User user,
WorkStation workstation,
User nextUser,
Phase nextPhase,
java.lang.String comment)
Rejects the job by froce. |
OperationInfo |
rejectInDatabase(int nextPhaseID,
int nextUserID,
int workstationID,
int noOfFiles,
java.lang.String rejectStatusData,
java.lang.String assignStatusData,
boolean forced)
Sets the job state to reject in the database. The stored procedure does the following: 1) Adds the reject entry for the job. 2) Adds an assign entry if the job has the right to do so. |
void |
setBatchID(int batchID)
Sets the batch ID of the job. |
void |
setConditionID(int conditionID)
Sets the collection ID of the job. |
void |
setCreator(java.lang.String creator)
Sets the creator of the job. |
void |
setDate(java.util.Date date)
Sets the Date of the job. |
void |
setDueDate(java.util.Date dueDate)
Sets the due date of the job. |
void |
setExternalID(java.lang.String externalID)
Sets the external ID of the job. |
void |
setExternalIDType(int externalIDType)
Sets the external ID type of the job. |
void |
setFieldsFromDataTable(DataTable table)
Uses the given DataTable to set the fields. |
void |
setID(int id)
Sets the ID of the job. |
void |
setIdentifyingLob(java.lang.String identifyingLob)
Sets the identifying lob of the job. |
void |
setInfo1(java.lang.String info1)
Sets the first info associated with the job. |
void |
setInfo2(java.lang.String info2)
Sets the second info associated with the job. |
void |
setInfo3(java.lang.String info3)
Sets the third info associated with the job. |
void |
setJobTypeID(int jobTypeID)
Sets the jobType ID. |
void |
setLanguageID(int languageID)
Sets the language ID of the job. |
void |
setPath(java.lang.String path)
Sets the path of the job. |
void |
setPriority(int priority)
|
void |
setStorageID(int storageID)
|
void |
setTitle(java.lang.String title)
|
void |
setTransactionLogID(int transactionLogID)
|
boolean |
start(WorkStation workstation,
User user)
Starts the job. |
OperationInfo |
startInDatabase(int userID,
int phaseID,
int workstationID,
java.lang.String statusData)
Sets the job state to start in the database. |
OperationInfo |
update()
Updates this instance in the Job table. |
boolean |
upload(WorkStation workstation,
User user)
Uploads the job. |
OperationInfo |
uploadInDatabase(int phaseID,
int noOfFiles)
Sets the job state to upload in the database. |
static OperationInfo |
validateUserWSPhase(int jobID,
int userID,
int wsID,
int phaseID)
Validate the combination job, user, WS and phase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean textualValuesInitialized
private DBConnection conn
private int id
private java.lang.String externalID
private int externalIDType
private java.lang.String title
private java.lang.String creator
private java.util.Date date
private java.lang.String Info1
private java.lang.String Info2
private java.lang.String Info3
private java.lang.String path
private int priority
private java.util.Date dueDate
private java.lang.String identifyingLob
private int batchID
private int jobTypeID
private int languageID
private int conditionID
private int transactionLog
private int storageID
private java.lang.String languageName
private java.lang.String batchName
private java.lang.String collectionName
private java.lang.String externalIDTypeName
private java.lang.String jobTypeName
Constructor Detail |
---|
public Job()
public Job(int jobID) throws java.lang.Exception
jobID
- The ID of the job.
java.lang.Exception
- If the job couldn't be retrieved from the database.public Job(DataTable table) throws java.lang.Exception
table
- The DataTable used to construct the object.
java.lang.Exception
- If the job couldn't be constructed from the DataTable.Method Detail |
---|
public void setFieldsFromDataTable(DataTable table) throws java.lang.Exception
table
- The DataTable used to set the fields.
java.lang.Exception
- If the fields couldn't be filled from the DataTable.public DBConnection getConnection()
public static java.lang.String PadID(long id)
id
- The ID to pad.
public int getID()
public void setID(int id)
id
- The ID to set.public int getBatchID()
public void setBatchID(int batchID)
batchID
- The batchID to set.public int getConditionID()
public void setConditionID(int conditionID)
conditionID
- The conditionID to set.public java.lang.String getCreator()
public void setCreator(java.lang.String creator)
creator
- The creator to set.public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- The date to set.public java.util.Date getDueDate()
public void setDueDate(java.util.Date dueDate)
dueDate
- The dueDate to set.public java.lang.String getExternalID()
public void setExternalID(java.lang.String externalID)
externalID
- The externalID to set.public int getExternalIDType()
public void setExternalIDType(int externalIDType)
externalIDType
- The externalIDType to set.public java.lang.String getIdentifyingLob()
public void setIdentifyingLob(java.lang.String identifyingLob)
identifyingLob
- The identifyingLob to set.public java.lang.String getInfo1()
public void setInfo1(java.lang.String info1)
info1
- The info1 to set.public java.lang.String getInfo2()
public void setInfo2(java.lang.String info2)
info2
- The info2 to set.public java.lang.String getInfo3()
public void setInfo3(java.lang.String info3)
info3
- The info3 to set.public int getJobTypeID()
public void setJobTypeID(int jobTypeID)
jobTypeID
- The jobTypeID to set.public int getLanguageID()
public void setLanguageID(int languageID)
languageID
- The languageID to set.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path to set.public int getPriority()
public void setPriority(int priority)
priority
- The priority to set.public int getStorageID()
public void setStorageID(int storageID)
storageID
- The storageID to set.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The title to set.public int getTransactionLogID()
public void setTransactionLogID(int transactionLogID)
transactionLogID
- The transactionLog to set.public static OperationInfo loadAll()
public static OperationInfo getByID(int jobID)
jobID
- The ID of the job to get its data.
public static OperationInfo validateUserWSPhase(int jobID, int userID, int wsID, int phaseID)
jobID
- The ID of the job to validate.userID
- The ID of the user.wsID
- The ID of the workstation.phaseID
- The ID of the phase.
public static OperationInfo checkIn(int jobID)
jobID
- The ID of the job to move its entries
public boolean canCheckOut(int jobID)
jobID
- The ID of the job.
public static OperationInfo checkOut(int jobID, int userID, int wsID, java.lang.String comment)
jobID
- The ID of the job.userID
- teh user who check the job outwsID
- the workstation that the job had been checked out therecomment
- A Comment to be added to the Check-Out operation
public static OperationInfo checkOutRollback(int jobID)
jobID
- The job ID
public OperationInfo checkNonConfirmedMedias()
public static OperationInfo getArchivedAndActiveJobs()
public OperationInfo getMedias()
public OperationInfo getMediaTypes()
public OperationInfo getArchivingMatrix()
public java.lang.String getJobInformation(boolean includeHistory)
includeHistory
parameter is true.
includeHistory
- Whether to include the TransactionLog entries of the job in the returned information or not.
public boolean isArchivingMatrixComplete()
public OperationInfo addMedia(int mediaType, int mediaID, int TLID)
mediaType
- type is type of media (mediaID)mediaID
- The ID of the media .TLID
- the ID of the TransactionLog to add media for.
public static int nextID()
public OperationInfo add()
add
in class AdminModuleBase
public OperationInfo addWithID()
public OperationInfo update()
update
in class AdminModuleBase
public OperationInfo delete()
delete
in class AdminModuleBase
public OperationInfo deleteCascade()
public OperationInfo getDoneJobs(int MediaTypeID)
MediaTypeID
- The media type ID.
public OperationInfo getDoneJobs(int MediaTypeID, java.lang.String jobCount)
MediaTypeID
- The media type ID.jobCount
- the count limit to be retrieved
public OperationInfo getRedirectedJobs()
public OperationInfo getPendingJobs()
public OperationInfo getLateJobs()
public OperationInfo getWorkFlowJobs(int jobType, int collID, int batchID)
jobType
- The job type ID to filter on.collID
- The collection to filter on .batchID
- The batch to filter on.
public OperationInfo getExpandedWorkFlowJobs(int jobType, int collID, int batchID)
jobType
- The job type ID.collID
- The collection to filter on .batchID
- The batch to filter on.
public OperationInfo getRejectedJobs()
public OperationInfo getZips(int jobVersion)
jobVersion
-
public OperationInfo getJobHistory()
public OperationInfo getAllPhasesWithUsers()
public int getNextVersion()
public Phase getLastPhaseBeforeBackup()
public OperationInfo getLastData()
public OperationInfo getLastFinishedInfo()
public OperationInfo getLastFinishedInfoForPhase(int phaseID)
phaseID
- The ID of the phase to get its information, which is a TransactionLog entry.
public boolean canChangeType(int oldOrNew)
oldOrNew
- Whether the job is in the OldTransactionLog or the TransactionLog.
public OperationInfo preAssign(int user, int phase)
user
- The User ID to assign for.phase
- The Phase to Assign on.
public OperationInfo assignFromScratch(int user, int phase, java.lang.String comment)
user
- The user to whom the job will be assigned.phase
- The phase to which the job will be assigned.comment
- The comment.
public OperationInfo assign(int user, int phase, java.lang.String comment)
user
- The User ID to assign for.phase
- The Phase to Assign on.comment
- The comment.
public OperationInfo assignRestricetd(int user, int phase)
user
- The User ID to assign for.phase
- The Phase to Assign on.
private OperationInfo assignInDatabase(java.lang.String spName, int user, int phase, java.lang.String comment, boolean ignorePropagationErrors)
spName
- The name of the stord procedure to call.user
- The user to assign the job tophase
- The phase to assign the job to.comment
- The comment.ignorePropagationErrors
- Ignore any error that might happen while propagating FileLevelInfo.public boolean canUpload()
public boolean upload(WorkStation workstation, User user)
workstation
- The workstation from which the job will uploaded.user
- The user who is uploading the job.
public OperationInfo uploadInDatabase(int phaseID, int noOfFiles)
phaseID
- The ID of the phase.noOfFiles
- The number of files to upload.
public boolean canDownload()
public boolean download(WorkStation workstation, User user)
workstation
- The workstation to which the job will downloaded.user
- The user who is downloading the job.
public OperationInfo downloadInDatabase(int phaseID, int noOfFiles)
phaseID
- The ID of the phase.noOfFiles
- The number of files to download.
public Phase getStartingPhase()
public boolean canStart(int userID, int wrkstID, int phaseID)
userID
- The ID of the user who is starting the job.wrkstID
- The ID of the workstation on which the job is to be started.phaseID
- The ID of the phase to start the job in.
public boolean start(WorkStation workstation, User user)
workstation
- The workstation on which the job will start.user
- The user who is starting the job.
public OperationInfo startInDatabase(int userID, int phaseID, int workstationID, java.lang.String statusData)
userID
- The ID of the user who is starting the jobphaseID
- The ID of the phase in which the job is starting.workstationID
- The ID of the workstation on which the job is started.statusData
- The status data.
public boolean canFinish(int workstationID)
workstationID
- The ID of the workstation from which the job is to be finished.
public boolean finish(User user, WorkStation workstation, boolean fromCommandLine)
user
- The user who is finishing the job.workstation
- The workstation form which the job is being finished.fromCommandLine
- Whether the job is being finished from the command line or not.
If true the ToDo FileLevelInfo will be set to true without the user interaction.
public OperationInfo finishInDatabase(int userID, int workstationID, int noOfFiles, java.lang.String statusData)
userID
- The ID of the user who is finishing the jobworkstationID
- The ID of the workstation from which the job is finished.noOfFiles
- The number of files created/changed by the user.statusData
- The status data.
public boolean redirect(User user, WorkStation workstation, int nextUser, int nextPhase, java.lang.String comment)
user
- The user who is redirecting the job.workstation
- The workstation form which the job is being redirected.nextUser
- The ID of the suggested user.nextPhase
- The ID of the suggested phase.comment
- The reason the job is to be redirected.
public OperationInfo redirectInDatabase(int userID, int phaseID, int noOfFiles, int workstationID, int nextUserID, int nextPhaseID, java.lang.String finishStatusData, java.lang.String redirectStatusData, java.lang.String assignStatusData)
userID
- The ID of the user who is redircting the job.phaseID
- The ID of the phase the job is finishing.noOfFiles
- The number of files modified when the job was finihsed.workstationID
- The ID of the workstation from which the job is redirected.nextUserID
- The ID of the user to whom the job is redircted.nextPhaseID
- The ID of the phase to which the job is redirected.finishStatusData
- The status data for the finish entry.redirectStatusData
- The status data for the redirect entry.assignStatusData
- The status data for the assign entry.
public boolean reject(User user, WorkStation workstation, User nextUser, Phase nextPhase, java.lang.String comment)
user
- The User who is rejecting the job.workstation
- The workstation from which the job is being rejected.nextUser
- The User entity representing the suggested user.nextPhase
- The Phase entity representing the suggested phase.comment
- The reason the job is to be redirected.
public boolean rejectForced(User user, WorkStation workstation, User nextUser, Phase nextPhase, java.lang.String comment)
user
- The User who is rejecting the job.workstation
- The workstation from which the job is being rejected.nextUser
- The User entity representing the suggested user.nextPhase
- The Phase entity representing the suggested phase.comment
- The reason the job is to be redirected.
public OperationInfo rejectInDatabase(int nextPhaseID, int nextUserID, int workstationID, int noOfFiles, java.lang.String rejectStatusData, java.lang.String assignStatusData, boolean forced)
nextPhaseID
- The ID of the phase to which the job is redirected.nextUserID
- The ID of the user to whom the job is redircted.workstationID
- The ID of the workstation from which the job is redirected.noOfFiles
- The number of files.rejectStatusData
- The status data for the reject entry.assignStatusData
- The status data for the assign entry.forced
- Determines which stored procedure to be called. If true Job_RejectForced is called otherwise Job_Reject is called.
public int getMinPhase(int minPhaseID, Phase currentPahse)
minPhaseID
- The ID of the phase that is candidate to be a minmum phase.
-1 indicates that there is no minimum phase.currentPahse
- The current phase.
public boolean isRephase(int phaseID)
phaseID
- The phase ID.
public java.lang.String getLocalPath(WorkStation workstation, User user)
workstation
- The workstation at which the job reside.user
- The user holding the job.
public boolean deleteLocalFolder(WorkStation workstation, User user)
workstation
- The workstation at which the job resides.user
- The user logged on to the machine.
public boolean deleteRemoteFolder()
public boolean deleteBackupFolder()
public FileHandlerFTPImpl getFTPFileHandler()
public java.lang.String getServerPath()
public Phase getPhase()
public java.util.Date getStartDate()
public Job.JobOldOrNew getJobOldOrNewState()
JobOldOrNew
determinig the state of the Job, or null.Job.JobOldOrNew
private void getTextualValues()
public java.lang.String getCollectionName()
public java.lang.String getLanguageName()
public java.lang.String getExternalIDTypeName()
public java.lang.String getBatchName()
public java.lang.String getJobTypeName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |