Package com.redwood.scheduler.api.model
Interface JobFile
- 
- All Superinterfaces:
- Detail,- Readable,- SchedulerEntity,- SchedulerEntityComp
 - All Known Subinterfaces:
- WritableJobFile
 
 public interface JobFile extends Detail, Readable Output file of a job. Jobs can generate any number of output and log files of any format.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringAPPS_EXTRAOUTPUTExtra Oracle Applications output file.static LongAPPS_EXTRAOUTPUT_ORDERExtra Oracle Applications output file order constant.static StringAPPS_JOBLOGStandard Oracle Applications job log file.static LongAPPS_JOBLOG_ORDERStandard Oracle Applications joblog file order constant.static StringAPPS_OUTPUTStandard Oracle Applications output file.static LongAPPS_OUTPUT_ORDERStandard Oracle Applications output file order constant.static LongAS400_FILENUMBER_STARTStandard AS/400 filenumber start file order constant.static LongCUSTOMER_ORDER_ENDFile order: end of customer defined files.static LongCUSTOMER_ORDER_STARTFile order: start of customer defined files.static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "JobFile" objects.static StringOHI_JOBLOGStandard Oracle Health Insurance job log file.static LongOHI_JOBLOG_ORDERStandard Oracle Health Insurance joblog file order constant.static StringOHI_OUTPUTStandard Oracle Health Insurance output file.static LongOHI_OUTPUT_ORDERStandard Oracle Health Insurance output file order constant.static StringPREFERRED_CHARACTERSETThe character encoding that we prefer for output files.static CharsetPREFERRED_CHARSETThe character encoding that we prefer for output files.static StringSAP_APPLLOGStandard SAP job application log file.static StringSAP_APPLLOG_CSVStandard SAP job application log file in CSV format.static StringSAP_APPLLOG_DATStandard SAP job application log file in DAT format.static StringSAP_APPLLOG_HTMLStandard SAP job application log file in HTML format.static StringSAP_APPLLOG_MHTMLStandard SAP job application log file in MHTML format.static StringSAP_APPLLOG_PDFStandard SAP job application log file in PDF format.static LongSAP_APPLLOGS_ORDER_STARTStandard SAP filenumber start of application logs file order constant.static StringSAP_CC_BASIC_LISTStandard SAP FCC basic list file in PDF format.static LongSAP_CC_BASIC_LIST_ORDERStandard SAP filenumber of FCC basic lists file order constant.static StringSAP_CC_DETAIL_LISTStandard SAP FCC detail list file in PDF format.static LongSAP_CC_DETAIL_LIST_ORDERStandard SAP filenumber of FCC detail list file order constant.static LongSAP_FILENUMBER_STARTStandard SAP filenumber start file order constant.static StringSAP_JOBLOGStandard SAP joblog file.static StringSAP_JOBLOG_DATStandard SAP joblog file in DAT format.static LongSAP_JOBLOG_ORDERStandard SAP joblog file order constant.static StringSAP_JOBLOG_PDFStandard SAP joblog file in PDF format.static StringSAP_SPOOLLISTStandard SAP spoollist file.static StringSAP_SPOOLLIST_BINStandard SAP spoollist file in BIN format.static StringSAP_SPOOLLIST_CSVStandard SAP spoollist file in CSV format.static StringSAP_SPOOLLIST_HTMLStandard SAP spoollist file in HTML format.static StringSAP_SPOOLLIST_MHTMLStandard SAP spoollist file in MHTML format.static StringSAP_SPOOLLIST_PDFStandard SAP spoollist file in PDF format.static StringSAP_SPOOLLIST_RTXStandard SAP spoollist file in RTX format.static StringSAP_SPOOLLIST_XLSStandard SAP spoollist file in XLS format.static StringSAP_SPOOLLIST_XLSXStandard SAP spoollist file in XLSX format.static StringSAP_SPOOLLISTID_MAPPINGAdditional output file with the mapping of the job file name to the spool id.static LongSAP_SPOOLLISTID_MAPPING_ORDERStandard spool id mapping file order constant.static LongSAP_SPOOLLISTS_ORDER_STARTStandard SAP filenumber start of spoollists file order constant.static StringSAP_STATISTICSStandard SAP job statistics file.static LongSAP_STATISTICS_ORDERStandard SAP job statistics file order constant.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSTANDARD_AUDIT_ARCHIVEStandard audit archive file name.static LongSTANDARD_AUDIT_ARCHIVE_ORDERStandard audit archive file order constant.static StringSTANDARD_CARINStandard carin file name.static LongSTANDARD_CARIN_ORDERStandard carin file order constant.static StringSTANDARD_CAROUTStandard carout file name.static LongSTANDARD_CAROUT_ORDERStandard carout file order constant.static StringSTANDARD_DATAINStandard data input file name.static StringSTANDARD_ERRORThe conventional name for the first job error file.static LongSTANDARD_ERROR_ORDERStandard error file order constant.static LongSTANDARD_EXPORT_INFOStandard export-info.xml output file order constant.static StringSTANDARD_INTERNAL_LOGThe conventional name for the first job log file used for internal purposes.static LongSTANDARD_INTERNAL_LOG_ORDERStandard internal log file order constant.static StringSTANDARD_JARINStandard jarin file name.static LongSTANDARD_JARIN_ORDERStandard jarin file order constant.static StringSTANDARD_ON_BEFORE_USER_JOB_CHANGEStandard OnBeforeUserJobChange file name.static LongSTANDARD_ON_BEFORE_USER_JOB_CHANGE_ORDERStandard log file order constant for trigger OnBeforeUserJobChange constant.static StringSTANDARD_OUTPUTThe conventional name for the first job output file.static LongSTANDARD_OUTPUT_ORDERStandard output file order constant.static StringSTANDARD_REPORTStandard report file name.static LongSTANDARD_REPORT_ORDERStandard report file order constant.static LongSTANDARD_REPORT_ORDER_XMLStandard report file as xml order constant.static StringSTANDARD_SEARCH_RESULTSStandard object search results file name.static LongSTANDARD_SEARCH_RESULTS_ORDERStandard object search results file order constant.static StringSTANDARD_TUTORIALSDeprecated.This constant is deprecated, do not use.static LongSTANDARD_TUTORIALS_ORDERDeprecated.This constant is deprecated, do not use.static LongSTANDARD_UPLOAD_ORDER_ENDFile order: end of uploaded files range.static LongSTANDARD_UPLOAD_ORDER_STARTFile order: start of uploaded files range.static QueryObjectType<JobFile>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCharacterSet()Get the value for CharacterSet.CommonLoggetCommonLog()Wraps up the output file, using the common log format.DateTimeZonegetFileLastModificationTime()Get the value for FileLastModificationTime.StringgetFileName()Get the value for FileName.LonggetFileOrder()Get the value for FileOrder.FormatgetFormat()Get the Format.InputStreamgetInputStream()Retrieve an input stream for this jobfile.InputStreamgetInputStream(Long offset, Long length)Retrieve an input stream for this jobfile.InputStreamgetInputStream(String searchPattern, long beginLine, long endLine, long searchOptions)Retrieve an input stream for this jobfile.InputStreamgetInputStream(String searchPattern, long beginLine, long endLine, SearchFile[] searchOptions)Retrieve an input stream for this jobfile.JobgetJob()Get the Job.StringgetName()Get the value for Name.SubjectgetOwnerSubject()Get the OwnerSubject.LonggetSize()Get the value for Size.JobFileTypegetType()Get the value for Type.StringgetURLTail()Request the tail portion of an URL to retrieve the job-file.StringgetViewerURL()Get the value for ViewerURL.booleanisInCommonLogFormat()Get the value for InCommonLogFormat.booleanisLinkedJobFile()Get the value for LinkedJobFile.SearchResultSetsearch(String pattern)Search the entire job file for a pattern (including?and*) from the beginning to the end, in a case insensitive way.SearchResultSetsearch(String pattern, long beginLine, long endLine, int options)Search the job file for a pattern.voidsetCharacterSet(String newCharacterSet)Set the value for CharacterSet.voidsetFileNameAutomatic()Set the file name to an automatically generated local name.voidsetFileType(JobFileType type)Set the file type.voidsetFormat(Format newFormat)Set the value for Format.voidsetInCommonLogFormat(boolean newInCommonLogFormat)Set the value for InCommonLogFormat.voidsetName(String newName)Set the value for Name.voidsetOrder(Long fileOrder)Set the file order (model attribute FileOrder).voidsetOwnerSubject(Subject newOwnerSubject)Set the value for OwnerSubject.voidupdateFromLocalFile()Set the size and last modification time (and time zone) information from a local file.voidupdateFromLocalFile(TimeZone timeZone)Set the size and last modification time (and time zone) information from a local file.- 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "JobFile" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<JobFile> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
PREFERRED_CHARACTERSETstatic final String PREFERRED_CHARACTERSET The character encoding that we prefer for output files.- See Also:
- Constant Field Values
 
 - 
PREFERRED_CHARSETstatic final Charset PREFERRED_CHARSET The character encoding that we prefer for output files.
 - 
STANDARD_INTERNAL_LOGstatic final String STANDARD_INTERNAL_LOG The conventional name for the first job log file used for internal purposes. (eg. by the job processor on UNIX).- See Also:
- Constant Field Values
 
 - 
STANDARD_ERRORstatic final String STANDARD_ERROR The conventional name for the first job error file. (eg. the standard error stream on UNIX).- See Also:
- Constant Field Values
 
 - 
STANDARD_OUTPUTstatic final String STANDARD_OUTPUT The conventional name for the first job output file. (eg. the standard output stream on UNIX).- See Also:
- Constant Field Values
 
 - 
STANDARD_OUTPUT_ORDERstatic final Long STANDARD_OUTPUT_ORDER Standard output file order constant.
 - 
STANDARD_ERROR_ORDERstatic final Long STANDARD_ERROR_ORDER Standard error file order constant.
 - 
STANDARD_INTERNAL_LOG_ORDERstatic final Long STANDARD_INTERNAL_LOG_ORDER Standard internal log file order constant.
 - 
STANDARD_JARIN_ORDERstatic final Long STANDARD_JARIN_ORDER Standard jarin file order constant.
 - 
STANDARD_JARINstatic final String STANDARD_JARIN Standard jarin file name.- See Also:
- Constant Field Values
 
 - 
STANDARD_DATAINstatic final String STANDARD_DATAIN Standard data input file name.- See Also:
- Constant Field Values
 
 - 
STANDARD_CARIN_ORDERstatic final Long STANDARD_CARIN_ORDER Standard carin file order constant.
 - 
STANDARD_CARINstatic final String STANDARD_CARIN Standard carin file name.- See Also:
- Constant Field Values
 
 - 
STANDARD_TUTORIALS_ORDER@Deprecated static final Long STANDARD_TUTORIALS_ORDER Deprecated.This constant is deprecated, do not use.Standard tutorials file order constant. 
 - 
STANDARD_TUTORIALS@Deprecated static final String STANDARD_TUTORIALS Deprecated.This constant is deprecated, do not use.Standard tutorials file name. - See Also:
- Constant Field Values
 
 - 
STANDARD_CAROUT_ORDERstatic final Long STANDARD_CAROUT_ORDER Standard carout file order constant.
 - 
STANDARD_CAROUTstatic final String STANDARD_CAROUT Standard carout file name.- See Also:
- Constant Field Values
 
 - 
STANDARD_AUDIT_ARCHIVE_ORDERstatic final Long STANDARD_AUDIT_ARCHIVE_ORDER Standard audit archive file order constant.
 - 
STANDARD_AUDIT_ARCHIVEstatic final String STANDARD_AUDIT_ARCHIVE Standard audit archive file name.- See Also:
- Constant Field Values
 
 - 
STANDARD_REPORT_ORDERstatic final Long STANDARD_REPORT_ORDER Standard report file order constant.
 - 
STANDARD_REPORT_ORDER_XMLstatic final Long STANDARD_REPORT_ORDER_XML Standard report file as xml order constant.
 - 
STANDARD_REPORTstatic final String STANDARD_REPORT Standard report file name.- See Also:
- Constant Field Values
 
 - 
STANDARD_ON_BEFORE_USER_JOB_CHANGE_ORDERstatic final Long STANDARD_ON_BEFORE_USER_JOB_CHANGE_ORDER Standard log file order constant for trigger OnBeforeUserJobChange constant.
 - 
STANDARD_ON_BEFORE_USER_JOB_CHANGEstatic final String STANDARD_ON_BEFORE_USER_JOB_CHANGE Standard OnBeforeUserJobChange file name.- See Also:
- Constant Field Values
 
 - 
AS400_FILENUMBER_STARTstatic final Long AS400_FILENUMBER_START Standard AS/400 filenumber start file order constant.
 - 
SAP_FILENUMBER_STARTstatic final Long SAP_FILENUMBER_START Standard SAP filenumber start file order constant.
 - 
SAP_JOBLOG_ORDERstatic final Long SAP_JOBLOG_ORDER Standard SAP joblog file order constant.
 - 
SAP_JOBLOGstatic final String SAP_JOBLOG Standard SAP joblog file.- See Also:
- Constant Field Values
 
 - 
SAP_JOBLOG_PDFstatic final String SAP_JOBLOG_PDF Standard SAP joblog file in PDF format.- See Also:
- Constant Field Values
 
 - 
SAP_JOBLOG_DATstatic final String SAP_JOBLOG_DAT Standard SAP joblog file in DAT format.- See Also:
- Constant Field Values
 
 - 
SAP_STATISTICS_ORDERstatic final Long SAP_STATISTICS_ORDER Standard SAP job statistics file order constant.
 - 
SAP_STATISTICSstatic final String SAP_STATISTICS Standard SAP job statistics file.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLISTS_ORDER_STARTstatic final Long SAP_SPOOLLISTS_ORDER_START Standard SAP filenumber start of spoollists file order constant.
 - 
SAP_SPOOLLISTstatic final String SAP_SPOOLLIST Standard SAP spoollist file.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_PDFstatic final String SAP_SPOOLLIST_PDF Standard SAP spoollist file in PDF format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_XLSstatic final String SAP_SPOOLLIST_XLS Standard SAP spoollist file in XLS format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_XLSXstatic final String SAP_SPOOLLIST_XLSX Standard SAP spoollist file in XLSX format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_CSVstatic final String SAP_SPOOLLIST_CSV Standard SAP spoollist file in CSV format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_HTMLstatic final String SAP_SPOOLLIST_HTML Standard SAP spoollist file in HTML format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_MHTMLstatic final String SAP_SPOOLLIST_MHTML Standard SAP spoollist file in MHTML format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_RTXstatic final String SAP_SPOOLLIST_RTX Standard SAP spoollist file in RTX format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLIST_BINstatic final String SAP_SPOOLLIST_BIN Standard SAP spoollist file in BIN format.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLISTID_MAPPINGstatic final String SAP_SPOOLLISTID_MAPPING Additional output file with the mapping of the job file name to the spool id.- See Also:
- Constant Field Values
 
 - 
SAP_SPOOLLISTID_MAPPING_ORDERstatic final Long SAP_SPOOLLISTID_MAPPING_ORDER Standard spool id mapping file order constant.
 - 
SAP_APPLLOGS_ORDER_STARTstatic final Long SAP_APPLLOGS_ORDER_START Standard SAP filenumber start of application logs file order constant.
 - 
SAP_CC_BASIC_LISTstatic final String SAP_CC_BASIC_LIST Standard SAP FCC basic list file in PDF format.- See Also:
- Constant Field Values
 
 - 
SAP_CC_BASIC_LIST_ORDERstatic final Long SAP_CC_BASIC_LIST_ORDER Standard SAP filenumber of FCC basic lists file order constant.
 - 
SAP_CC_DETAIL_LISTstatic final String SAP_CC_DETAIL_LIST Standard SAP FCC detail list file in PDF format.- See Also:
- Constant Field Values
 
 - 
SAP_CC_DETAIL_LIST_ORDERstatic final Long SAP_CC_DETAIL_LIST_ORDER Standard SAP filenumber of FCC detail list file order constant.
 - 
CUSTOMER_ORDER_STARTstatic final Long CUSTOMER_ORDER_START File order: start of customer defined files.
 - 
CUSTOMER_ORDER_ENDstatic final Long CUSTOMER_ORDER_END File order: end of customer defined files.
 - 
SAP_APPLLOGstatic final String SAP_APPLLOG Standard SAP job application log file.- See Also:
- Constant Field Values
 
 - 
SAP_APPLLOG_PDFstatic final String SAP_APPLLOG_PDF Standard SAP job application log file in PDF format.- See Also:
- Constant Field Values
 
 - 
SAP_APPLLOG_HTMLstatic final String SAP_APPLLOG_HTML Standard SAP job application log file in HTML format.- See Also:
- Constant Field Values
 
 - 
SAP_APPLLOG_MHTMLstatic final String SAP_APPLLOG_MHTML Standard SAP job application log file in MHTML format.- See Also:
- Constant Field Values
 
 - 
SAP_APPLLOG_DATstatic final String SAP_APPLLOG_DAT Standard SAP job application log file in DAT format.- See Also:
- Constant Field Values
 
 - 
SAP_APPLLOG_CSVstatic final String SAP_APPLLOG_CSV Standard SAP job application log file in CSV format.- See Also:
- Constant Field Values
 
 - 
APPS_JOBLOGstatic final String APPS_JOBLOG Standard Oracle Applications job log file.- See Also:
- Constant Field Values
 
 - 
APPS_JOBLOG_ORDERstatic final Long APPS_JOBLOG_ORDER Standard Oracle Applications joblog file order constant.
 - 
APPS_OUTPUTstatic final String APPS_OUTPUT Standard Oracle Applications output file.- See Also:
- Constant Field Values
 
 - 
APPS_OUTPUT_ORDERstatic final Long APPS_OUTPUT_ORDER Standard Oracle Applications output file order constant.
 - 
APPS_EXTRAOUTPUTstatic final String APPS_EXTRAOUTPUT Extra Oracle Applications output file.- See Also:
- Constant Field Values
 
 - 
APPS_EXTRAOUTPUT_ORDERstatic final Long APPS_EXTRAOUTPUT_ORDER Extra Oracle Applications output file order constant.
 - 
OHI_JOBLOGstatic final String OHI_JOBLOG Standard Oracle Health Insurance job log file.- See Also:
- Constant Field Values
 
 - 
OHI_JOBLOG_ORDERstatic final Long OHI_JOBLOG_ORDER Standard Oracle Health Insurance joblog file order constant.
 - 
OHI_OUTPUTstatic final String OHI_OUTPUT Standard Oracle Health Insurance output file.- See Also:
- Constant Field Values
 
 - 
OHI_OUTPUT_ORDERstatic final Long OHI_OUTPUT_ORDER Standard Oracle Health Insurance output file order constant.
 - 
STANDARD_UPLOAD_ORDER_STARTstatic final Long STANDARD_UPLOAD_ORDER_START File order: start of uploaded files range.
 - 
STANDARD_UPLOAD_ORDER_ENDstatic final Long STANDARD_UPLOAD_ORDER_END File order: end of uploaded files range.
 - 
STANDARD_EXPORT_INFOstatic final Long STANDARD_EXPORT_INFO Standard export-info.xml output file order constant.
 - 
STANDARD_SEARCH_RESULTS_ORDERstatic final Long STANDARD_SEARCH_RESULTS_ORDER Standard object search results file order constant.
 - 
STANDARD_SEARCH_RESULTSstatic final String STANDARD_SEARCH_RESULTS Standard object search results file name.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getNameString getName() Get the value for Name. (Short, standardized name of the file.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getFileNameString getFileName() Get the value for FileName. (Name of the file (usually a full operating system dependent name)) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getFileOrderLong getFileOrder() Get the value for FileOrder. (Order in which this file (relative to siblings) should be presented.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getFileLastModificationTimeDateTimeZone getFileLastModificationTime() Get the value for FileLastModificationTime. (When the file was last modified.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getSizeLong getSize() Get the value for Size. (Length of the file in bytes.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getTypeJobFileType getType() Get the value for Type. (The type of file that this represents.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
isInCommonLogFormatboolean isInCommonLogFormat() Get the value for InCommonLogFormat. (The file uses the common log format.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getCharacterSetString getCharacterSet() Get the value for CharacterSet. (Character set of the content of the file.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getViewerURLString getViewerURL() Get the value for ViewerURL. ( Viewer URL of this JobFile. The URL returned can either point to the contents of the JobFile or the processed information of this JobFile by one or more ExtensionPoints. )- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
isLinkedJobFileboolean isLinkedJobFile() Get the value for LinkedJobFile. (Check if this JobFile is linked to another JobFile.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setNamevoid setName(String newName) Set the value for Name. (Short, standardized name of the file.) This value is mandatory.- Parameters:
- newName- the new value for Name. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setInCommonLogFormatvoid setInCommonLogFormat(boolean newInCommonLogFormat) Set the value for InCommonLogFormat. (The file uses the common log format.)- Parameters:
- newInCommonLogFormat- the new value for InCommonLogFormat.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setCharacterSetvoid setCharacterSet(String newCharacterSet) Set the value for CharacterSet. (Character set of the content of the file.) This value is optional.- Parameters:
- newCharacterSet- the new value for CharacterSet.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getCommonLogCommonLog getCommonLog() throws com.redwood.scheduler.api.exception.JobFileException, com.redwood.scheduler.api.exception.JobFileTransientException Wraps up the output file, using the common log format.- Returns:
- Wrapper for common log format.
- Throws:
- com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
- com.redwood.scheduler.api.exception.JobFileTransientException- Failure to retrieve the job-file, likely transient in nature.
 
 - 
getInputStreamInputStream getInputStream() throws com.redwood.scheduler.api.exception.JobFileException, com.redwood.scheduler.api.exception.JobFileTransientException Retrieve an input stream for this jobfile. This is equivalent to calling:getInputStream(0L,-1L)- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
- com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
- com.redwood.scheduler.api.exception.JobFileTransientException- Failure to retrieve the job-file, likely transient in nature.
 
 - 
getInputStreamInputStream getInputStream(Long offset, Long length) throws com.redwood.scheduler.api.exception.JobFileException, com.redwood.scheduler.api.exception.JobFileTransientException Retrieve an input stream for this jobfile. For example, to return anInputStreamon the JobFile ignoring first 6 and last 6 lines:JobFile.getInputStream("Hello World", 7L, -7L)- Parameters:
- offset- Offset within the file at which the stream should be positioned.
- length- Length of the stream required.
- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
- com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
- com.redwood.scheduler.api.exception.JobFileTransientException- Failure to retrieve the job-file, likely transient in nature.
 
 - 
getInputStreamInputStream getInputStream(String searchPattern, long beginLine, long endLine, long searchOptions) throws com.redwood.scheduler.api.exception.JobFileException Retrieve an input stream for this jobfile. Parameters for this method allow for setting of filters to stream only certain information. For example, to search for"Hello World"case-insensitively in the whole JobFile and return anInputStreamof all matching lines:JobFile.getInputStream("Hello World", 1L, -1L, SearchFile.IgnoreCaseCode + SearchFile.RangeResultCode)- Parameters:
- searchPattern- A character pattern to search for.
- beginLine- The line to start searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. If- SearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)
- endLine- The line to end searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. If- SearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)
- searchOptions- A long representing the search options. You add-up the constants to specify multiple options.- SearchFile.NoOptionsCode= 0 - no options,
- SearchFile.WildCardCode= 1 - wild card search,
- SearchFile.ReverseCode= 4 - reverse search,
- SearchFile.IgnoreCaseCode= 8 - case-insensitive search,
- SearchFile.EntireLineCode= 16 - match entire line,
- SearchFile.RangeResultCode= 32 - return all results,
- SearchFile.ByteOffsetCode= 64 - beginLine and endLine refer to byte offsets, not lines, and
- SearchFile.LiveViewCode= 128 - response may be incomplete lines and all full lines are terminated by EOL;
 - 1L+8L+32L so 41L(L for 'long' value) or a mathematical addition of the above constants.
- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
- com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
 
 - 
getInputStreamInputStream getInputStream(String searchPattern, long beginLine, long endLine, SearchFile[] searchOptions) throws com.redwood.scheduler.api.exception.JobFileException Retrieve an input stream for this jobfile. Parameters for this method allow for setting of filters to stream only certain information. For example, to search for"Hello World"case-insensitively in the whole JobFile and return anInputStreamof all matching linesJobFile.getInputStream("Hello World", 1L, -1L, new SearchFile[]{SearchFile.IgnoreCase, SearchFile.RangeResultCode})- Parameters:
- searchPattern- A character pattern to search for.
- beginLine- The line to start searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. If- SearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)
- endLine- The line to end searching at: 0 or 1 mean beginning of file and -1 means end of the file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. If- SearchFile.ByteOffsetCodeis included in the searchOptions then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)
- searchOptions- An array of- SearchFilerepresenting the search options.- SearchFile.NoOptions- no options,
- SearchFile.WildCard- wild card search,
- SearchFile.Reverse- reverse search,
- SearchFile.IgnoreCase- case-insensitive search,
- SearchFile.EntireLine- match entire line,
- SearchFile.RangeResult- return all results,
- SearchFile.ByteOffset- beginLine and endLine refer to byte offsets, not lines, and
- SearchFile.LiveView- response may be incomplete lines and all full lines are terminated by EOL;
 
- Returns:
- An input stream that corresponds to the jobfile.
- Throws:
- com.redwood.scheduler.api.exception.JobFileException- Failure to retrieve the job-file, likely permanent in nature.
 
 - 
getURLTailString getURLTail() Request the tail portion of an URL to retrieve the job-file. This can be appended to an URL that refers to the job-file servlet to form a complete URL that allows the job-file contents to be retrieved. This operation will be removed in the future; it will be replaced with an operation that returns an absolute URL.- Returns:
- Portion of URL, without a leading '/' character.
 
 - 
searchSearchResultSet search(String pattern) Search the entire job file for a pattern (including?and*) from the beginning to the end, in a case insensitive way. This is equivalent to calling:search(pattern, 1L, -1L, SearchFile.WildCardCode + SearchFile.IgnoreCaseCode)- Parameters:
- pattern- The pattern to search for.
- Returns:
- A SearchResultSet, from where you can get the individual SearchResults.
 
 - 
searchSearchResultSet search(String pattern, long beginLine, long endLine, int options) Search the job file for a pattern.- Parameters:
- pattern- The pattern to search for. If- SearchFile.WildCardCodeis in the options then- ?matches any character and- *matches any sequence of characters. For example, to search for- "Hello *@example.com"case insensitively and using- *as a wildcard in the entire JobFile, returning all matched lines in a- SearchResultSet:- JobFile.search("Hello *@example.com", 1L, -1L, SearchFile.IgnoreCaseCode + SearchFile.RangeResultCode + SearchFile.WildCardCode)
- beginLine- The line to start searching at: 0 or 1 mean beginning and -1 means end of file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. If- SearchFile.ByteOffsetCodeis included in the options then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)
- endLine- The line to start searching at: 0 or 1 mean beginning and -1 means end of file. Positive numbers are line number offsets from the beginning. Negative numbers are line number offsets from the end of the file. If- SearchFile.ByteOffsetCodeis included in the options then this is a byte offset starting at 0. A negative value is a byte offset from the end of the file. The line returned will start at or beyond the indicated byte offset, and will be a full line (assuming normal line lengths less than 1024.)
- options- Search file options, any combination of SearchFile options. See the 'searchOptions' of- JobFile.getInputStream
- Returns:
- A SearchResultSet, from where you can get the individual SearchResults.
 
 - 
updateFromLocalFilevoid updateFromLocalFile() Set the size and last modification time (and time zone) information from a local file. The size and last modification time will be set from the local file specified by the job's FileName attribute. This method assumes that the file is local. The time zone will be set based on the System process server.
 - 
updateFromLocalFilevoid updateFromLocalFile(TimeZone timeZone) Set the size and last modification time (and time zone) information from a local file. The size and last modification time will be set from the local file specified by the job's FileName attribute. This method assumes that the file is local. The time zone will be set to the specified time zone.- Parameters:
- timeZone- Time zone.
 
 - 
setOrdervoid setOrder(Long fileOrder) Set the file order (model attribute FileOrder). The value must not be null, and be between JobFile.CUSTOMER_ORDER_START and JobFile.CUSTOMER_ORDER_END (inclusive). If the value is not in this range then a RuntimeException will be thrown. The file order must be set to a different value for each file and the value must come from the range allocated to customer files.- Parameters:
- fileOrder- The file order.
 
 - 
setFileNameAutomaticvoid setFileNameAutomatic() Set the file name to an automatically generated local name. The name will be generated based on process server parameters and values from the job and job file. This should be called after setting the short name (Name) and file order.
 - 
setFileTypevoid setFileType(JobFileType type) Set the file type.- Parameters:
- type- The type
 
 - 
getJobJob getJob() Get the Job.- Returns:
- Job
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getFormatFormat getFormat() Get the Format.- Returns:
- Format
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getOwnerSubjectSubject getOwnerSubject() Get the OwnerSubject.- Returns:
- OwnerSubject
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
setFormatvoid setFormat(Format newFormat) Set the value for Format. This value is mandatory.- Parameters:
- newFormat- is the object to set Format to. The default format for a job file is the format given to the JobDefinition If this is- null, then the object cannot be persisted.
 
 - 
setOwnerSubjectvoid setOwnerSubject(Subject newOwnerSubject) Set the value for OwnerSubject. This value is optional.- Parameters:
- newOwnerSubject- is the object to set OwnerSubject to. Job files associated with / input by the subject.
 
 
- 
 
-