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 Summary
Fields 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.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All 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.Root
getCreationTime, getLastModificationTime, getLastModifierSubject
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, 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.WrappedJob
getComment, getDescription, getIsolationGroup, getJob, getRequestedStartTime, getWrappedJob, getWrappedJobDefinition, setComment, setDescription, setIsolationGroup, setRequestedStartTime, setWrappedJobDefinition
-
-
-
-
Field Detail
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()for "Import" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<Import> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
-
JOB_DEFINITION_NAME
static final String JOB_DEFINITION_NAME
The name of the job definition that does the import.- See Also:
- Constant Field Values
-
SEC_PRIV_VIEW
static final String SEC_PRIV_VIEW
This privilege can be granted at a group level.- See Also:
- Constant Field Values
-
SEC_PRIV_MANAGE
static final String SEC_PRIV_MANAGE
This privilege can be granted at a group level.- See Also:
- Constant Field Values
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_VIEW
static final String SEC_RANK_VIEW
This rank is made of the following privileges: view- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges: view , manage- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuditReason
String 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.
-
getFilePath
String 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.
-
getImportId
Long 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.
-
getImportRuleSet
ImportRuleSet 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.
-
getUrl
String 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.
-
isTestMode
boolean 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.
-
isInvalidateOnError
boolean 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.
-
isFetchMode
boolean 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.
-
getOptions
String 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.
-
getTargetPartition
String 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.
-
setAuditReason
void 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.
-
setFilePath
void 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.
-
setImportRuleSet
void 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.
-
setUrl
void 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.
-
setTestMode
void 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.
-
setInvalidateOnError
void 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.
-
setFetchMode
void 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.
-
setOptions
void 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.
-
setTargetPartition
void 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.
-
getImportSource
ImportSource 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.
-
getArchiveJobFile
JobFile 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.
-
setImportSource
void 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.
-
setArchiveJobFile
void 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.
-
checkViewPrivilege
RequiredPermission 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.
-
checkManagePrivilege
RequiredPermission 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.
-
-