Package com.redwood.scheduler.api.model
Interface Import
- 
- All Superinterfaces:
- Root,- SchedulerEntity,- SchedulerEntityComp,- WrappedJob
 
 public interface Import extends WrappedJob An import of a set of objects. An import is performed using a system job. This object acts as a place-holder to gather up the imports scheduled and completed for this system. The source of the import is specified by: FilePath, Url or ImportSource. One (and only one) of these must be set.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringJOB_DEFINITION_NAMEThe name of the job definition that does the import.static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "Import" objects.static StringSEC_PRIV_MANAGEThis privilege can be granted at a group level.static StringSEC_PRIV_VIEWThis privilege can be granted at a group level.static StringSEC_RANK_ALLThis rank is made of the following privileges: view , managestatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<Import>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 RequiredPermissioncheckManagePrivilege()Check whether or not the manage action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.JobFilegetArchiveJobFile()Get the ArchiveJobFile.StringgetAuditReason()Get the value for AuditReason.StringgetFilePath()Get the value for FilePath.LonggetImportId()Get the value for ImportId.ImportRuleSetgetImportRuleSet()Get the value for ImportRuleSet.ImportSourcegetImportSource()Get the ImportSource.StringgetOptions()Get the value for Options.StringgetTargetPartition()Get the value for TargetPartition.StringgetUrl()Get the value for Url.booleanisFetchMode()Get the value for FetchMode.booleanisInvalidateOnError()Get the value for InvalidateOnError.booleanisTestMode()Get the value for TestMode.voidsetArchiveJobFile(JobFile newArchiveJobFile)Set the value for ArchiveJobFile.voidsetAuditReason(String newAuditReason)Set the value for AuditReason.voidsetFetchMode(boolean newFetchMode)Set the value for FetchMode.voidsetFilePath(String newFilePath)Set the value for FilePath.voidsetImportRuleSet(ImportRuleSet newImportRuleSet)Set the value for ImportRuleSet.voidsetImportSource(ImportSource newImportSource)Set the value for ImportSource.voidsetInvalidateOnError(boolean newInvalidateOnError)Set the value for InvalidateOnError.voidsetOptions(String newOptions)Set the value for Options.voidsetTargetPartition(String newTargetPartition)Set the value for TargetPartition.voidsetTestMode(boolean newTestMode)Set the value for TestMode.voidsetUrl(String newUrl)Set the value for Url.- 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
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
 - 
Methods inherited from interface com.redwood.scheduler.api.model.WrappedJobgetComment, getDescription, getIsolationGroup, getJob, getRequestedStartTime, getWrappedJob, getWrappedJobDefinition, setComment, setDescription, setIsolationGroup, setRequestedStartTime, setWrappedJobDefinition
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "Import" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<Import> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
JOB_DEFINITION_NAMEstatic final String JOB_DEFINITION_NAME The name of the job definition that does the import.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_VIEWstatic final String SEC_PRIV_VIEW This privilege can be granted at a group level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_MANAGEstatic final String SEC_PRIV_MANAGE This privilege can be granted at a group level.- 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_VIEWstatic final String SEC_RANK_VIEW This rank is made of the following privileges: view- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: view , manage- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getAuditReasonString getAuditReason() Get the value for AuditReason. (The audit reason that is applied to this import.)- 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.
 
 - 
getFilePathString getFilePath() Get the value for FilePath. (Path of the file to import from.)- 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.
 
 - 
getImportIdLong getImportId() Get the value for ImportId. (The Import ID for this Import. This is unique for every Import.) 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.
 
 - 
getImportRuleSetImportRuleSet getImportRuleSet() Get the value for ImportRuleSet. (The ImportRuleSet that is applied to this import.)- 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.
 
 - 
getUrlString getUrl() Get the value for Url. (URL to import the objects from.)- 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.
 
 - 
isTestModeboolean isTestMode() Get the value for TestMode. (Print a report of what will be changed, and additional objects that are required.)- 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.
 
 - 
isInvalidateOnErrorboolean isInvalidateOnError() Get the value for InvalidateOnError. (Invalidate when compiling if an error occurs.)- 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.
 
 - 
isFetchModeboolean isFetchMode() Get the value for FetchMode. (Fetch additional objects that are required for the selection to be imported.)- 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.
 
 - 
getOptionsString getOptions() Get the value for Options. (This field would contain command line parameters in the same format as accepted by the command line tool.)- 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.
 
 - 
getTargetPartitionString getTargetPartition() Get the value for TargetPartition. (The target partition this import is imported in.)- 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.
 
 - 
setAuditReasonvoid setAuditReason(String newAuditReason) Set the value for AuditReason. (The audit reason that is applied to this import.) This value is optional.- Parameters:
- newAuditReason- the new value for AuditReason.
- 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.
 
 - 
setFilePathvoid setFilePath(String newFilePath) Set the value for FilePath. (Path of the file to import from.) This value is optional.- Parameters:
- newFilePath- the new value for FilePath.
- 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.
 
 - 
setImportRuleSetvoid setImportRuleSet(ImportRuleSet newImportRuleSet) Set the value for ImportRuleSet. (The ImportRuleSet that is applied to this import.) This value is optional.- Parameters:
- newImportRuleSet- the new value for ImportRuleSet.
- 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.
 
 - 
setUrlvoid setUrl(String newUrl) Set the value for Url. (URL to import the objects from.) This value is optional.- Parameters:
- newUrl- the new value for Url.
- 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.
 
 - 
setTestModevoid setTestMode(boolean newTestMode) Set the value for TestMode. (Print a report of what will be changed, and additional objects that are required.)- Parameters:
- newTestMode- the new value for TestMode.
- 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.
 
 - 
setInvalidateOnErrorvoid setInvalidateOnError(boolean newInvalidateOnError) Set the value for InvalidateOnError. (Invalidate when compiling if an error occurs.)- Parameters:
- newInvalidateOnError- the new value for InvalidateOnError.
- 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.
 
 - 
setFetchModevoid setFetchMode(boolean newFetchMode) Set the value for FetchMode. (Fetch additional objects that are required for the selection to be imported.)- Parameters:
- newFetchMode- the new value for FetchMode.
- 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.
 
 - 
setOptionsvoid setOptions(String newOptions) Set the value for Options. (This field would contain command line parameters in the same format as accepted by the command line tool.) This value is optional.- Parameters:
- newOptions- the new value for Options.
- 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.
 
 - 
setTargetPartitionvoid setTargetPartition(String newTargetPartition) Set the value for TargetPartition. (The target partition this import is imported in.) This value is optional.- Parameters:
- newTargetPartition- the new value for TargetPartition.
- 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.
 
 - 
getImportSourceImportSource getImportSource() Get the ImportSource.- Returns:
- ImportSource
- 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.
 
 - 
getArchiveJobFileJobFile getArchiveJobFile() Get the ArchiveJobFile.- Returns:
- ArchiveJobFile
- 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.
 
 - 
setImportSourcevoid setImportSource(ImportSource newImportSource) Set the value for ImportSource. This value is optional.- Parameters:
- newImportSource- is the object to set ImportSource to. Source from which the import will retrieve the objects to import.
 
 - 
setArchiveJobFilevoid setArchiveJobFile(JobFile newArchiveJobFile) Set the value for ArchiveJobFile. This value is optional.- Parameters:
- newArchiveJobFile- is the object to set ArchiveJobFile to. The jobfile containing the archive used for the import.
 
 - 
checkViewPrivilegeRequiredPermission checkViewPrivilege() Check whether or not the view action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkManagePrivilegeRequiredPermission checkManagePrivilege() Check whether or not the manage action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 
- 
 
-