Package com.redwood.scheduler.api.model
Interface NamedRootObject
-
- All Superinterfaces:
NamedRootObjectComp
,Root
,SchedulerEntity
,SchedulerEntityComp
- All Known Subinterfaces:
AdHocAlertSource
,AlertEscalation
,AlertGateway
,AlertSource
,Application
,ApplicationObject
,AuditRule
,BranchedUniqueNamedApplicationObject
,ConstraintDefinition
,CredentialProtocol
,Dashboard
,Database
,DatumDefinition
,Document
,EmailAlertGateway
,EventDefinition
,ExportRuleSet
,ExtensionPoint
,Format
,GlobalPrivilege
,ImportRuleDefinition
,ImportRuleSet
,ImportSource
,IsolationGroup
,JobDefinition
,JobDefinitionAlertSource
,JobDefinitionParameterSubType
,JobDefinitionType
,JobLock
,LDAPProfile
,Library
,LinkableMonitor
,MailConnector
,Monitor
,MonitorAlertSource
,MonitorCheck
,MonitorLink
,MonitorNode
,NavigationBar
,ObjectTagDefinition
,OraAppsSystem
,OraOhiSystem
,Partition
,PartitionableObject
,PeopleSoftSystem
,PeriodFunction
,ProcessMonitor
,ProcessMonitorDefinition
,ProcessServer
,ProcessServerAlertSource
,QueryCondition
,QueryFilter
,Queue
,QueueAlertSource
,R2WCatalog
,RegistryEntry
,RemoteSystem
,Resource
,SAPBAEConnector
,SAPSystem
,Service
,SoftwareGroup
,SubmitFrame
,Table
,TableDefinition
,TimeWindow
,TimeZone
,Trigger
,UniqueNamedApplicationObject
,Visualization
,VisualizationAlert
,VisualizationProcessServerQueue
public interface NamedRootObject extends NamedRootObjectComp, Root
An object which has a Name, comment and description.
-
-
Field Summary
-
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 ObjectReference
createObjectReference(NamedRootObject otherObject)
Create an ObjectReference object.String
getComment()
Get the value for Comment.String
getDescription()
Get the value for Description.ObjectReference
getLinkedObjectReferenceByLinkedObject(NamedRootObject searchObject)
Retrieve the ObjectReference that points to given NamedRootObject, if there is one, returns null otherwise.ObjectReference
getLinkedObjectReferenceByName(String searchName)
Retrieve a linked object reference by it's search name.RWIterable<ObjectReference>
getLinkedObjectReferences()
Return all ObjectReferences this NamedRootObject is the source for.String
getName()
Get the value for Name.String
getSearchName()
Get the value for SearchName.RWIterable<ObjectReference>
getSourceObjectReferences()
Return all ObjectReferences this NamedRootObject is linked in.boolean
isHidden()
Get the value for Hidden.void
setComment(String newComment)
Set the value for Comment.void
setDescription(String newDescription)
Set the value for Description.void
setName(String newName)
Set the value for Name.-
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
-
-
-
-
Method Detail
-
getComment
String getComment()
Get the value for Comment. (Optional comment)- 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.
-
getDescription
String getDescription()
Get the value for Description. (Optional description)- 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.
-
getName
String getName()
Get the value for Name. (The unique name of this object) This value is mandatory, and therefore will not benull
if 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.
-
getSearchName
String getSearchName()
Get the value for SearchName. (The name of this object, normalized to allow for convenient database searching.) This value is mandatory, and therefore will not benull
if 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.
-
isHidden
boolean isHidden()
Get the value for Hidden. ( When a NamedRootObject is flagged as hidden, this object will become an 'Internal object', the name will forcefully be changed to System_Internal_<Object Type>_<Object Unique Id>. The renaming is done only, when the object does not start with System_Internal_. If it does, the name is left as such. Hidden objects are treated differently in the user interface. In normal overviews of NamedRootObjects such as a JobDefinition these hidden entities are not shown. Also in LOV's they will not be visible. )- 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.
-
setComment
void setComment(String newComment)
Set the value for Comment. (Optional comment) This value is optional.- Parameters:
newComment
- the new value for Comment.- 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.
-
setDescription
void setDescription(String newDescription)
Set the value for Description. (Optional description) This value is optional.- Parameters:
newDescription
- the new value for Description.- 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.
-
setName
void setName(String newName)
Set the value for Name. (The unique name of this object) This value is mandatory.- Parameters:
newName
- the new value for Name. If this isnull
, 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.
-
createObjectReference
ObjectReference createObjectReference(NamedRootObject otherObject)
Create an ObjectReference object. This links the other object to this NamedRootObject such that it cannot be deleted, unless either the link is removed, or the NamedRootObject is also deleted. This is particularly useful if you want to ensure that promotion works correctly, when referring to other objects, as the import will fail unless the other object is also imported, or already exists.- Parameters:
otherObject
- The other object to create the link to- Returns:
- The created ObjectReference
-
getLinkedObjectReferenceByName
ObjectReference getLinkedObjectReferenceByName(String searchName)
Retrieve a linked object reference by it's search name. If not found, returns null.- Parameters:
searchName
- The search name of the object reference- Returns:
- The ObjectReference when found or null if not found
-
getLinkedObjectReferenceByLinkedObject
ObjectReference getLinkedObjectReferenceByLinkedObject(NamedRootObject searchObject)
Retrieve the ObjectReference that points to given NamedRootObject, if there is one, returns null otherwise.- Parameters:
searchObject
- The search object the ObjectReference must point to- Returns:
- The ObjectReference when found or null if not found
-
getLinkedObjectReferences
RWIterable<ObjectReference> getLinkedObjectReferences()
Return all ObjectReferences this NamedRootObject is the source for. Empty RWIterable if none.- Specified by:
getLinkedObjectReferences
in interfaceNamedRootObjectComp
- Returns:
- RWIterable with object references, or empty RWIterable if none.
-
getSourceObjectReferences
RWIterable<ObjectReference> getSourceObjectReferences()
Return all ObjectReferences this NamedRootObject is linked in. Empty RWIterable if none.- Specified by:
getSourceObjectReferences
in interfaceNamedRootObjectComp
- Returns:
- RWIterable with object references, or empty RWIterable if none.
-
-