Package com.redwood.scheduler.api.model
Interface FileEvent
- 
- All Superinterfaces:
- Detail,- EventSource,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface FileEvent extends EventSource, Readable Information about the file that triggered the parent Event. This class contains no reference to the FileEventDefinition which caused it to be created; instead the relevant information is copied across. (This prevents foreign-key violations and confusion when the FileEventDefinition is changed or deleted.)
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "FileEvent" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<FileEvent>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 StringgetDirectory()Get the value for Directory.StringgetFinalPath()Get the value for FinalPath.StringgetMoveDirectory()Get the value for MoveDirectory.StringgetOriginalPath()Get the value for OriginalPath.StringgetPattern()Get the value for Pattern.LonggetPollInterval()Get the value for PollInterval.ProcessServergetProcessServer()Get the ProcessServer.booleanisCheckLock()Get the value for CheckLock.voidsetFinalPath(String newFinalPath)Set the value for FinalPath.voidsetOriginalPath(String newOriginalPath)Set the value for OriginalPath.voidsetProcessServer(ProcessServer newProcessServer)Set the value for ProcessServer.- 
Methods inherited from interface com.redwood.scheduler.api.model.EventSourcegetEvent
 - 
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 "FileEvent" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<FileEvent> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
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- 
getDirectoryString getDirectory() Get the value for Directory. (Original directory that contained the file for this FileEvent.) 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.
 
 - 
getFinalPathString getFinalPath() Get the value for FinalPath. (Path of the file after the file was detected.) 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.
 
 - 
getPatternString getPattern() Get the value for Pattern. (Pattern matched by the file for this FileEvent.) 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.
 
 - 
getMoveDirectoryString getMoveDirectory() Get the value for MoveDirectory. (Directory where the file for this FileEvent.)- 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.
 
 - 
getOriginalPathString getOriginalPath() Get the value for OriginalPath. (Original path of file that caused this FileEvent.) 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.
 
 - 
getPollIntervalLong getPollInterval() Get the value for PollInterval. (Polling interval in use when the file for this FileEvent was detected.) 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.
 
 - 
isCheckLockboolean isCheckLock() Get the value for CheckLock. ( Whether a check was made for if the file for this FileEvent was in use when the event was raised. )- 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.
 
 - 
setFinalPathvoid setFinalPath(String newFinalPath) Set the value for FinalPath. (Path of the file after the file was detected.) This value is mandatory.- Parameters:
- newFinalPath- the new value for FinalPath. 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.
 
 - 
setOriginalPathvoid setOriginalPath(String newOriginalPath) Set the value for OriginalPath. (Original path of file that caused this FileEvent.) This value is mandatory.- Parameters:
- newOriginalPath- the new value for OriginalPath. 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.
 
 - 
getProcessServerProcessServer getProcessServer() Get the ProcessServer.- Returns:
- ProcessServer
- 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.
 
 - 
setProcessServervoid setProcessServer(ProcessServer newProcessServer) Set the value for ProcessServer. This value is mandatory.- Parameters:
- newProcessServer- is the object to set ProcessServer to. Which process server generated this file event. If this is- null, then the object cannot be persisted.
 
 
- 
 
-