Package com.redwood.scheduler.api.model
Interface SchedulerEntity
-
- All Superinterfaces:
SchedulerEntityComp
- All Known Subinterfaces:
AbstractSource
,AdHocAlertSource
,Alert
,AlertEscalation
,AlertEscalationAction
,AlertGateway
,AlertSource
,AlertSourceAction
,AlertSourceEmail
,Application
,ApplicationObject
,Association
,AuditObject
,AuditRule
,AuditSubjectLogin
,BranchedUniqueNamedApplicationObject
,BuiltInWebService
,BusinessKeyObject
,CommonImportRule
,ConstraintDefinition
,Credential
,CredentialProtocol
,CustomEntity
,Dashboard
,DashboardItem
,Database
,DatumDefinition
,Detail
,Document
,EmailAlertGateway
,EmailAlertGatewayAction
,EmailAlertGatewayEmail
,EmailAlertGatewayHeader
,EmailAlertGatewayJobFileAttachment
,EntityDefinitionConstraint
,EntityDefinitionConstraintParameterMapping
,Event
,EventDefinition
,EventSource
,EventSourceDefinition
,Export
,ExportRule
,ExportRuleItem
,ExportRuleSet
,ExtensionPoint
,ExtensionPointSource
,FileEvent
,FileEventDefinition
,FinalStatusHandler
,ForecastJob
,Format
,GlobalPrivilege
,Import
,ImportAction
,ImportActionParameter
,ImportMatchRule
,ImportOverrideRule
,ImportRule
,ImportRuleDefinition
,ImportRuleSet
,ImportRuleSetPartitionRename
,ImportSource
,IsolationGroup
,JARFile
,Job
,JobChain
,JobChainCall
,JobChainCallInExpressionParameter
,JobChainCallInParameter
,JobChainCallInReferenceParameter
,JobChainCallJobLock
,JobChainCallOutParameter
,JobChainCallOutReferenceParameter
,JobChainCallParameter
,JobChainCallPrecondition
,JobChainCallProcessMonitorUpdater
,JobChainCallRaiseEvent
,JobChainCallSchedulingParameter
,JobChainCallWaitEvent
,JobChainStatusHandler
,JobChainStep
,JobChainStepPrecondition
,JobChainStepStatusHandler
,JobDatum
,JobDefinition
,JobDefinitionAction
,JobDefinitionAlertSource
,JobDefinitionAlertSourceParameterMatch
,JobDefinitionAlertSourceRule
,JobDefinitionAlertSourceStatus
,JobDefinitionConstraint
,JobDefinitionConstraintParameterMapping
,JobDefinitionForm
,JobDefinitionJobLock
,JobDefinitionParameter
,JobDefinitionParameterSubType
,JobDefinitionProcessMonitorUpdater
,JobDefinitionRaiseEvent
,JobDefinitionRelatedObject
,JobDefinitionRuntimeLimit
,JobDefinitionType
,JobDefinitionTypeAction
,JobDefinitionWaitEvent
,JobDefinitionWithSource
,JobFile
,JobFileSearch
,JobGroup
,JobGroupParameter
,JobJobLock
,JobLock
,JobNote
,JobParameter
,JobRaiseEvent
,JobRuntimeLimit
,JobWaitEvent
,Language
,LDAPProfile
,Library
,LibrarySource
,LicenseKey
,LinkableMonitor
,LoadFactor
,MailConnectionSetting
,MailConnector
,MetaData
,ModuleState
,Monitor
,MonitorAlertSource
,MonitorAlertSourceRule
,MonitorCheck
,MonitorCondition
,MonitorEvent
,MonitorLink
,MonitorNode
,MonitorValue
,NamedDetailObject
,NamedRootObject
,NavigationBar
,NavigationBarItem
,ObjectDefinition
,ObjectFieldDefinition
,ObjectIndex
,ObjectIndexColumn
,ObjectReference
,ObjectSearch
,ObjectSearchCondition
,ObjectTag
,ObjectTagDefinition
,OperatorMessage
,OperatorMessageDatum
,OraAppsJobControlRule
,OraAppsSystem
,OracleConnection
,OraOhiSystem
,Partition
,PartitionableObject
,PartitionableRootObject
,PeopleSoftJobControlRule
,PeopleSoftJobOutputLocation
,PeopleSoftSystem
,PeriodFunction
,Precondition
,ProcessMonitor
,ProcessMonitorDefinition
,ProcessMonitorItem
,ProcessMonitorItemDefinition
,ProcessMonitorLog
,ProcessMonitorUpdater
,ProcessServer
,ProcessServerAlertSource
,ProcessServerAlertSourceStatus
,ProcessServerCheck
,ProcessServerCheckLog
,ProcessServerCheckLogParameter
,ProcessServerJobDefinitionType
,ProcessServerLoadFactor
,ProcessServerParameter
,ProcessServerResource
,ProcessServerService
,ProcessServerStatusLog
,PublishApproval
,PublishedWebService
,PublishItem
,QueryCondition
,QueryConditionValue
,QueryFilter
,Queue
,QueueAlertSource
,QueueAlertSourceStatus
,QueueProvider
,R2WCatalog
,R2WCatalogAlias
,RaiseEvent
,Readable
,RegistryEntry
,RELEntryPoint
,RemoteSystem
,Report
,ReportColumn
,ReportSelection
,ReportSort
,Resource
,RestrictedSchedulerSessionSpecification
,Root
,RuntimeParameter
,SAPAbapProgram
,SAPAbapProgramParameter
,SAPAbapVariant
,SAPAbapVariantParameter
,SAPAbapVariantParameterValue
,SAPAbapVariantSelopt
,SAPAbapVariantSeloptValue
,SAPApplicationServer
,SAPApplicationServerGroup
,SAPApplicationServerLoadFactor
,SAPApplicationServerProvider
,SAPArchiveDocumentType
,SAPArchiveObject
,SAPBAEConfiguration
,SAPBAEConnector
,SAPBatchEvent
,SAPCalendar
,SAPCommonSettings
,SAPExternalCommand
,SAPInfoPackage
,SAPInfoPackageGroup
,SAPInfoPackageGroupStep
,SAPJ2EEClient
,SAPLanguage
,SAPLogError
,SAPMassActivity
,SAPMassActivityFieldParameter
,SAPMassActivityFieldTable
,SAPMassActivityFieldTableRow
,SAPMassActivityFieldTableRowValue
,SAPMassActivityLayoutField
,SAPMassActivityObject
,SAPMassActivityParameter
,SAPMassActivityParameterSet
,SAPMassActivityStructure
,SAPNWCallbackParameterMapping
,SAPNWCallbackVariant
,SAPNWCallbackVariantDetail
,SAPOutputDevice
,SAPOutputFormat
,SAPPIChannel
,SAPProcessChain
,SAPProcessDefinition
,SAPProcessRestart
,SAPRecipient
,SAPScript
,SAPScriptAttribute
,SAPSystem
,SAPUsernamePassword
,SAPXAL
,SAPXBP
,SAPXBPEventRule
,SAPXBPJobControlRule
,SAPXMW
,SchedulerEntityAction
,Script
,Service
,SoftwareGroup
,SoftwareItem
,Statistics
,StatisticsSample
,StatusHandler
,Subject
,SubjectGlobalPrivilegeGrant
,SubjectGrant
,SubjectIsolationGroup
,SubjectObjectPrivilegeGrant
,SubjectObjectTypePrivilegeGrant
,SubjectPrivilegeGrant
,SubjectRoleGrant
,SubmitFrame
,SubmitFrameElement
,Table
,TableDefinition
,TableDefinitionColumn
,TableDefinitionConstraint
,TableDefinitionConstraintParameterMapping
,TableValue
,TimeWindow
,TimeWindowElement
,TimeZone
,Translation
,TranslationKey
,Trigger
,TriggerSource
,UniqueNamedApplicationObject
,UserMessage
,UserMessageAttachment
,UserMessageDefinition
,UserMessageDefinitionAttachment
,UserMessageDefinitionParticipant
,UserMessageDefinitionResponse
,UserMessageHistory
,UserMessageParticipant
,Visualization
,VisualizationAlert
,VisualizationAlertSource
,VisualizationProcessServerQueue
,VisualizationPSQProcessServer
,VisualizationPSQQueue
,VisualizationPSQText
,WaitEvent
,WrappedJob
,WritableJobFile
public interface SchedulerEntity extends SchedulerEntityComp
Base class that all other objects are derived from.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_AUDIT
Name of the pseudo-action used to audit objects.static String
ACTION_EXPORT
Name of the pseudo-action used to export objects.static String
ACTION_READ
Name of the pseudo-action used to read objects.static Long
BEHAVIOR_DEPRECATED
Object is has been deprecated and can be considered deleted (but cannot be for technical reasons).static Long
BEHAVIOR_NONE
Object has no specific behavior.static Long
BEHAVIOR_SYSTEM
Object is a system object and must be protected from modification or deletion.static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_SCHEDULERENTITY
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.SchedulerEntityComp
VERSION_SCHEDULERENTITYCOMP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canPerform(String methodName)
Query the object to check if the method name passed in is allowed for the current user.SubjectObjectPrivilegeGrant
createSubjectObjectPrivilegeGrant()
Grant a set of privileges for this object.void
deleteObject()
Marks this object for deletion.RWIterable<AuditObject>
getAuditTrail()
Get the Audit Trail for this object.Long
getAuditTrailSize()
Get the number of AuditObjects for this SchedulerEntityLong
getBehavior()
Get the value for Behavior.Long
getEffectiveBehavior()
Describes the behavior for this object.String
getErrorNameEN()
Get the name of this object, for use in error messages.String
getErrorNameKey()
Get the name of this object, for use in error messages.Long
getLLPVersion()
Get the value for LLPVersion.LOVCollection
getLOV(String fieldName, String query, Long startAt, Long maxSize)
Enquire about LOV support for a field on this object.LOVSupport
getLOVSupport(String fieldName)
Enquire about LOV support for a field on this object.String
getObjectType()
Get the typename for this object.RWIterable<SchedulerEntity>
getParentSchedulerEntities()
This is needed to override the behavior on the generated classes.RuntimeObject
getRuntime()
Get the API for information for this object.SubjectObjectPrivilegeGrant
getSubjectObjectPrivilegeGrantBySubject(Subject granteeSubject)
Get the set of privileges, if specified, that a subject has on this object.RWIterable<SubjectObjectPrivilegeGrant>
getSubjectObjectPrivilegeGrants()
Get the value for SubjectObjectPrivilegeGrant.Long
getUniqueId()
Get the value for UniqueId.String
getUrl(PermaLinkPurpose purpose)
Get a perma link URL for this object.String
getUrl(PermaLinkPurpose purpose, ShowPopUp displayPopup)
Get a perma link URL for this object.boolean
isCreated()
Has this object been created, and not yet persisted? If this returns true thenisDeleted()
,isModified()
andisSelectVersioned()
will all returnfalse
.boolean
isDeletable()
Get the value for Deletable.boolean
isDeleted()
Has this object been scheduled for deletion? If this returns true thenisCreated()
,isModified()
andisSelectVersioned()
will all returnfalse
.boolean
isModifiable()
Get the value for Modifiable.boolean
isModified()
Is this an existing database object that been modified but not yet persisted? If this returns true thenisCreated()
,isDeleted()
andisSelectVersioned()
will all returnfalse
.boolean
isSelectVersioned()
Does the same version of this unmodified object need to exist in the database for this session to persist successfully? If this returns true thenisCreated()
,isDeleted()
andisModified()
will all returnfalse
.void
processRelatedObjects(APIResultSetCallback callback)
!!!! PROTOTYPE IMPLEMENTATION !!!! The callback is called for every object that has a foreign key to this object.void
processRelatedObjects(APIResultSetCallback callback, Collection<String> include)
!!!! PROTOTYPE IMPLEMENTATION !!!! The callback is called for every object that has a foreign key to this object.void
processRelatedObjects(APIResultSetCallback callback, Collection<String> include, boolean exportableObjectsOnly)
!!!! PROTOTYPE IMPLEMENTATION !!!! The callback is called for every object that has a foreign key to this object.void
refreshObject()
If this object is in a read-only state, then refresh the data from the database.void
resetObject()
Reset the object.void
resetObject(boolean resetParts)
Reset the object.void
resetValuesToDefault()
Reset the object to the state that it was in when it was created.void
selectForRead()
Perform a versioned select on the object during persist, to guarantee that this version exists in the database.
-
-
-
Field Detail
-
VERSION_SCHEDULERENTITY
static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_SCHEDULERENTITY
-
BEHAVIOR_NONE
static final Long BEHAVIOR_NONE
Object has no specific behavior.
-
BEHAVIOR_SYSTEM
static final Long BEHAVIOR_SYSTEM
Object is a system object and must be protected from modification or deletion.
-
BEHAVIOR_DEPRECATED
static final Long BEHAVIOR_DEPRECATED
Object is has been deprecated and can be considered deleted (but cannot be for technical reasons).
-
ACTION_READ
static final String ACTION_READ
Name of the pseudo-action used to read objects. Describing an object involves reading it. Any object for which this returns true can be described.- See Also:
- Constant Field Values
-
ACTION_EXPORT
static final String ACTION_EXPORT
Name of the pseudo-action used to export objects. Any object for which this returns true can be exported.- See Also:
- Constant Field Values
-
ACTION_AUDIT
static final String ACTION_AUDIT
Name of the pseudo-action used to audit objects. Any object for which this returns true can be audited.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLLPVersion
Long getLLPVersion()
Get the value for LLPVersion. (LowLevelPersistence version number that gets set to the current transaction number after the commit.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSubjectObjectPrivilegeGrants
RWIterable<SubjectObjectPrivilegeGrant> getSubjectObjectPrivilegeGrants()
Get the value for SubjectObjectPrivilegeGrant. (Object-specific privilege grants for this object.)- Specified by:
getSubjectObjectPrivilegeGrants
in interfaceSchedulerEntityComp
- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUniqueId
Long getUniqueId()
Get the value for UniqueId. (A globally unique identifier for this object) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getBehavior
Long getBehavior()
Get the value for Behavior. (Describes the behavior for this object. The defined behavior is ObjectType specific. All objects will implement the following behaviors:- 0 - Object has no specific behavior.
- 1 - Object is a system object and must be protected from modification or deletion.
null
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isDeletable
boolean isDeletable()
Get the value for Deletable. (Returns whether or not this object is able to be deleted.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isModifiable
boolean isModifiable()
Get the value for Modifiable. (Returns whether or not this object is able to be modified.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
createSubjectObjectPrivilegeGrant
SubjectObjectPrivilegeGrant createSubjectObjectPrivilegeGrant()
Grant a set of privileges for this object.- Returns:
- A new set of privileges (initially empty) granted for this object.
-
getEffectiveBehavior
Long getEffectiveBehavior()
Describes the behavior for this object. The defined behavior is ObjectType specific. All objects will implement the following behaviors:- 0 - Object has no specific behavior.
- 1 - Object is a system object and must be protected from modification or deletion.
- Returns:
- The behavior code for this object.
-
getErrorNameEN
String getErrorNameEN()
Get the name of this object, for use in error messages. This may be called on an invalid object. The return value from this method will always be an English string, however it can always be generated without any access to the database.- Returns:
- The name of the object, in English
-
getErrorNameKey
String getErrorNameKey()
Get the name of this object, for use in error messages. This may be called on an invalid object. The return value from this method will be a key that can be passed directly toSchedulerSession.translateField(String)
. The key can always be generated, however to convert that key to a language you need to have a working database connection.- Returns:
- The name of the object, in English
-
getLOVSupport
LOVSupport getLOVSupport(String fieldName)
Enquire about LOV support for a field on this object.- Parameters:
fieldName
- The name of the field to enquire about.- Returns:
- Information about LOV support for the specified field.
-
getLOV
LOVCollection getLOV(String fieldName, String query, Long startAt, Long maxSize)
Enquire about LOV support for a field on this object.- Parameters:
fieldName
- The name of the field to enquire about.query
- The value to use to restrict the returned results.startAt
- The offset into the list at which to start returning values.maxSize
- The maximum number of entries to return.- Returns:
- Information about LOV support for the specified field.
-
getParentSchedulerEntities
RWIterable<SchedulerEntity> getParentSchedulerEntities()
This is needed to override the behavior on the generated classes.- Specified by:
getParentSchedulerEntities
in interfaceSchedulerEntityComp
- Returns:
- The parent entities of this class, in this case, none.
-
getObjectType
String getObjectType()
Get the typename for this object.- Returns:
- The typename of the object.
-
getUrl
String getUrl(PermaLinkPurpose purpose) throws UnsupportedPermaLinkException
Get a perma link URL for this object.- Parameters:
purpose
- For what purpose should the page be, which will be opened by the link.- Returns:
- The URL which can be used to show the object for a specific purpose.
- Throws:
UnsupportedPermaLinkException
- The URL for the requested purpose is not supported.
-
getUrl
String getUrl(PermaLinkPurpose purpose, ShowPopUp displayPopup) throws UnsupportedPermaLinkException
Get a perma link URL for this object.- Parameters:
purpose
- For what purpose should the page be, which will be opened by the link.displayPopup
- Should we show a pop up box for acknowledge- Returns:
- The URL which can be used to show the object for a specific purpose.
- Throws:
UnsupportedPermaLinkException
- The URL for the requested purpose is not supported.
-
getSubjectObjectPrivilegeGrantBySubject
SubjectObjectPrivilegeGrant getSubjectObjectPrivilegeGrantBySubject(Subject granteeSubject)
Get the set of privileges, if specified, that a subject has on this object.- Parameters:
granteeSubject
- Subject whose privileges are sought.- Returns:
- The set of privileges granted to the given Subject, if this has been specified.
-
isCreated
boolean isCreated()
Has this object been created, and not yet persisted? If this returns true thenisDeleted()
,isModified()
andisSelectVersioned()
will all returnfalse
.- Returns:
true
if this object is to be created,false
otherwise.
-
isDeleted
boolean isDeleted()
Has this object been scheduled for deletion? If this returns true thenisCreated()
,isModified()
andisSelectVersioned()
will all returnfalse
.- Returns:
true
if this object is to be deleted,false
otherwise.
-
isModified
boolean isModified()
Is this an existing database object that been modified but not yet persisted? If this returns true thenisCreated()
,isDeleted()
andisSelectVersioned()
will all returnfalse
.- Returns:
true
if this object has been modified,false
otherwise.
-
isSelectVersioned
boolean isSelectVersioned()
Does the same version of this unmodified object need to exist in the database for this session to persist successfully? If this returns true thenisCreated()
,isDeleted()
andisModified()
will all returnfalse
.- Returns:
true
if the same version of this object must exist,false
otherwise.
-
canPerform
boolean canPerform(String methodName)
Query the object to check if the method name passed in is allowed for the current user.- Parameters:
methodName
- The name of the method that the user wants to perform..- Returns:
- false when the user is definitely not allowed to perform the method,
- true when it could not be determined that the user cannot perform the method.
-
refreshObject
void refreshObject() throws SchedulerAPIPersistenceException
If this object is in a read-only state, then refresh the data from the database.- Throws:
SchedulerAPIPersistenceException
- Unable to persist.
-
resetObject
void resetObject()
Reset the object. This will reset the object to its original database state. (Note that the original database state is not the same as the current database state.) This will affect the collections of other objects that include this object, but it will not undo the effects of any recursive deletes. This operation is unlikely to be what you want or need to use; it is only intended for internal use by the API implementation.
-
resetObject
void resetObject(boolean resetParts)
Reset the object. This will reset the object and optionally all of its aggregate parts to its original database state. (Note that the original database state is not the same as the current database state.) This operation is unlikely to be what you want or need to use; it is only intended for internal use by the API implementation.- Parameters:
resetParts
- Call resetObject recursively for all parts.
-
selectForRead
void selectForRead()
Perform a versioned select on the object during persist, to guarantee that this version exists in the database.
-
resetValuesToDefault
void resetValuesToDefault()
Reset the object to the state that it was in when it was created. Calling this method will reset all attributes and relations on this class to their default values. For the purposes of this method, an attribute or relation on this class is any attribute or relation that you can modify using a set operation. Any objects that are created from this class using a create method will not be modified. The only value that will not be the same as when the object was created will begetLLPVersion()
, as this must retain its current value, otherwise the persist will fail.
-
processRelatedObjects
void processRelatedObjects(APIResultSetCallback callback)
!!!! PROTOTYPE IMPLEMENTATION !!!! The callback is called for every object that has a foreign key to this object.- Parameters:
callback
- The object to call back for every related object
-
processRelatedObjects
void processRelatedObjects(APIResultSetCallback callback, Collection<String> include)
!!!! PROTOTYPE IMPLEMENTATION !!!! The callback is called for every object that has a foreign key to this object.- Parameters:
callback
- The object to call back for every related objectinclude
- Collection of strings that consist of "ForeignKeyName" of the items to include. If null is being passed in, it will check the showInRelatedObjects field on the objectchecker
-
processRelatedObjects
void processRelatedObjects(APIResultSetCallback callback, Collection<String> include, boolean exportableObjectsOnly)
!!!! PROTOTYPE IMPLEMENTATION !!!! The callback is called for every object that has a foreign key to this object.- Parameters:
callback
- The object to call back for every related objectinclude
- Collection of strings that consist of "ForeignKeyName" of the items to include. If null is being passed in, it will check the showInRelatedObjects field on the objectcheckerexportableObjectsOnly
- Should only those objects be included that are exportable.
-
getRuntime
RuntimeObject getRuntime()
Get the API for information for this object.- Returns:
- The object runtime API.
-
getAuditTrailSize
Long getAuditTrailSize()
Get the number of AuditObjects for this SchedulerEntity- Returns:
- The Audit Trail size for this object.
-
getAuditTrail
RWIterable<AuditObject> getAuditTrail()
Get the Audit Trail for this object. The latest updates come first.- Specified by:
getAuditTrail
in interfaceSchedulerEntityComp
- Returns:
- An iterator of the AuditObjects that are for this SchedulerEntity.
-
deleteObject
void deleteObject()
Marks this object for deletion. Once an object has been marked for deletion, no further updates are possible to the object.
-
-