Package com.redwood.scheduler.api.model
Interface PublishApproval
- 
- All Superinterfaces:
- SchedulerEntity,- SchedulerEntityComp
 
 public interface PublishApproval extends SchedulerEntity Approvals related to Publish jobs
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "PublishApproval" objects.static QueryObjectType<PublishApproval>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 LonggetApprovalRuleId()Get the value for ApprovalRuleId.StringgetApprovalURL()Get the value for ApprovalURL.StringgetApproverName()Get the value for ApproverName.StringgetComment()Get the value for Comment.DateTimeZonegetCreationTime()Get the value for CreationTime.LonggetDocId()Get the value for DocId.StringgetDocPath()Get the value for DocPath.JobgetJob()Get the Job.DateTimeZonegetLastModified()Get the value for LastModified.LonggetPublicationId()Get the value for PublicationId.LonggetPublishItem()Get the value for PublishItem.StringgetStatus()Get the value for Status.LonggetVersionId()Get the value for VersionId.voidsetApprovalRuleId(Long newApprovalRuleId)Set the value for ApprovalRuleId.voidsetApprovalURL(String newApprovalURL)Set the value for ApprovalURL.voidsetApproverName(String newApproverName)Set the value for ApproverName.voidsetComment(String newComment)Set the value for Comment.voidsetDocId(Long newDocId)Set the value for DocId.voidsetDocPath(String newDocPath)Set the value for DocPath.voidsetJob(Job newJob)Set the value for Job.voidsetLastModified(DateTimeZone newLastModified)Set the value for LastModified.voidsetPublicationId(Long newPublicationId)Set the value for PublicationId.voidsetPublishItem(Long newPublishItem)Set the value for PublishItem.voidsetStatus(String newStatus)Set the value for Status.voidsetVersionId(Long newVersionId)Set the value for VersionId.- 
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 "PublishApproval" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<PublishApproval> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 
- 
 - 
Method Detail- 
getPublishItemLong getPublishItem() Get the value for PublishItem. (The unique id of the publish set, publish this approval is related to) 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.
 
 - 
getDocIdLong getDocId() Get the value for DocId. (The id of the R2W Document that needs approval) 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.
 
 - 
getVersionIdLong getVersionId() Get the value for VersionId. (The version id of the R2W publication that needs approval) 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.
 
 - 
getPublicationIdLong getPublicationId() Get the value for PublicationId. (The id of the R2W publication that needs approval) 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.
 
 - 
getDocPathString getDocPath() Get the value for DocPath. (The full path to the file) 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.
 
 - 
getApprovalRuleIdLong getApprovalRuleId() Get the value for ApprovalRuleId. (The id of the approval rule) 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.
 
 - 
getApprovalURLString getApprovalURL() Get the value for ApprovalURL. (The URL to the approval) 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.
 
 - 
getCommentString getComment() Get the value for Comment. (The approval 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.
 
 - 
getStatusString getStatus() Get the value for Status. (The status of the approval)- 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.
 
 - 
getApproverNameString getApproverName() Get the value for ApproverName. (The name of the user that approved the changes)- 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.
 
 - 
getCreationTimeDateTimeZone getCreationTime() Get the value for CreationTime. (Timestamp that notes when the Event was raised.) 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.
 
 - 
getLastModifiedDateTimeZone getLastModified() Get the value for LastModified. (The status of the approval)- 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.
 
 - 
setPublishItemvoid setPublishItem(Long newPublishItem) Set the value for PublishItem. (The unique id of the publish set, publish this approval is related to) This value is mandatory.- Parameters:
- newPublishItem- the new value for PublishItem. 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.
 
 - 
setDocIdvoid setDocId(Long newDocId) Set the value for DocId. (The id of the R2W Document that needs approval) This value is mandatory.- Parameters:
- newDocId- the new value for DocId. 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.
 
 - 
setVersionIdvoid setVersionId(Long newVersionId) Set the value for VersionId. (The version id of the R2W publication that needs approval) This value is mandatory.- Parameters:
- newVersionId- the new value for VersionId. 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.
 
 - 
setPublicationIdvoid setPublicationId(Long newPublicationId) Set the value for PublicationId. (The id of the R2W publication that needs approval) This value is mandatory.- Parameters:
- newPublicationId- the new value for PublicationId. 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.
 
 - 
setDocPathvoid setDocPath(String newDocPath) Set the value for DocPath. (The full path to the file) This value is mandatory.- Parameters:
- newDocPath- the new value for DocPath. 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.
 
 - 
setApprovalRuleIdvoid setApprovalRuleId(Long newApprovalRuleId) Set the value for ApprovalRuleId. (The id of the approval rule) This value is mandatory.- Parameters:
- newApprovalRuleId- the new value for ApprovalRuleId. 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.
 
 - 
setApprovalURLvoid setApprovalURL(String newApprovalURL) Set the value for ApprovalURL. (The URL to the approval) This value is mandatory.- Parameters:
- newApprovalURL- the new value for ApprovalURL. 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.
 
 - 
setCommentvoid setComment(String newComment) Set the value for Comment. (The approval 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.
 
 - 
setStatusvoid setStatus(String newStatus) Set the value for Status. (The status of the approval) This value is optional.- Parameters:
- newStatus- the new value for Status.
- 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.
 
 - 
setApproverNamevoid setApproverName(String newApproverName) Set the value for ApproverName. (The name of the user that approved the changes) This value is optional.- Parameters:
- newApproverName- the new value for ApproverName.
- 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.
 
 - 
setLastModifiedvoid setLastModified(DateTimeZone newLastModified) Set the value for LastModified. (The status of the approval) This value is optional.- Parameters:
- newLastModified- the new value for LastModified.
- 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.
 
 - 
getJobJob getJob() Get the Job.- Returns:
- Job
- 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.
 
 - 
setJobvoid setJob(Job newJob) Set the value for Job. This value is optional.- Parameters:
- newJob- is the object to set Job to. The related PublishApproval job that created this publish approval
 
 
- 
 
-