Package com.redwood.scheduler.api.model
Interface R2WCatalog
- 
- All Superinterfaces:
- ApplicationObject,- BusinessKeyObject,- NamedRootObject,- NamedRootObjectComp,- PartitionableObject,- PartitionableObjectComp,- R2WCatalogComp,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp,- UniqueNamedApplicationObject
 
 public interface R2WCatalog extends R2WCatalogComp, UniqueNamedApplicationObject, Readable The details of the remote R2W catalog.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "R2WCatalog" objects.static StringSEC_PRIV_CREATEThis privilege can be granted at a group level.static StringSEC_PRIV_DELETEThis privilege can be granted at a group level.static StringSEC_PRIV_EDITThis privilege can be granted at a group level.static StringSEC_PRIV_PUBLISHThis privilege can be granted at an instance level.static StringSEC_PRIV_VIEWThis privilege can be granted at a group level.static StringSEC_RANK_ALLThis rank is made of the following privileges: create , view , publish , edit , deletestatic StringSEC_RANK_CREATEThis rank is made of the following privileges: createstatic StringSEC_RANK_DELETEThis rank is made of the following privileges: create , view , publish , deletestatic StringSEC_RANK_EDITThis rank is made of the following privileges: create , view , publish , editstatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_PUBLISHThis rank is made of the following privileges: view , publishstatic StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<R2WCatalog>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 booleanapprove(UserJobContext context, String reportName, String jobFileExpression, String metaData)Publish a File, or a list of files to Report2Web for approvalRequiredPermissioncheckCreatePrivilege()Check whether or not the create action can be performed on this object.RequiredPermissioncheckDeletePrivilege()Check whether or not the delete action can be performed on this object.RequiredPermissioncheckEditPrivilege()Check whether or not the edit action can be performed on this object.RequiredPermissioncheckPublishPrivilege()Check whether or not the publish action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.R2WCatalogAliascreateR2WCatalogAlias()Create a newR2WCatalogAliaslinked to this object.R2WPublishercreateR2WPublisher(String reportName)Create a R2WPublisher to assist in publishing to Report2Web.StringgetCatalogName()Get the value for CatalogName.StringgetPassword()Get the value for Password.ProcessServergetProcessServer()Get the ProcessServer.QueuegetQueue()Get the Queue.RWIterable<R2WCatalogAlias>getR2WCatalogAliases()Get anRWIterableover an ordered collection ofR2WCatalogAliases.StringgetURL()Get the value for URL.StringgetUsername()Get the value for Username.voidinit()Perform initialization tasks for the R2W Catalog.booleanisUseCredential()Get the value for UseCredential.R2WRequestprepareRequest(String uri)Prepare an R2WRequest with default (ALL) substitutions.R2WRequestprepareRequest(String uri, R2WRequestSubstitutions substitutions)Prepare an R2WRequest with custom substitutions.booleanpublish(UserJobContext context, String reportName, String jobFileExpression, String metaData)Publish a File, or a list of files to Report2WebvoidsetCatalogName(String newCatalogName)Set the value for CatalogName.voidsetPassword(String newPassword)Set the value for Password.voidsetProcessServer(ProcessServer newProcessServer)Set the value for ProcessServer.voidsetQueue(Queue newQueue)Set the value for Queue.voidsetURL(String newURL)Set the value for URL.voidsetUseCredential(boolean newUseCredential)Set the value for UseCredential.voidsetUsername(String newUsername)Set the value for Username.- 
Methods inherited from interface com.redwood.scheduler.api.model.ApplicationObjectgetParentApplication, setParentApplication
 - 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObjectcreateObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
 - 
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableObjectcreateObjectTag, getEditablePartitions, getObjectTagByObjectTagDefinition, getObjectTags, getPartition, setPartition
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
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 "R2WCatalog" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<R2WCatalog> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_PRIV_CREATEstatic final String SEC_PRIV_CREATE This privilege can be granted at a group level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_VIEWstatic final String SEC_PRIV_VIEW This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_PUBLISHstatic final String SEC_PRIV_PUBLISH This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_EDITstatic final String SEC_PRIV_EDIT This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_DELETEstatic final String SEC_PRIV_DELETE This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_CREATEstatic final String SEC_RANK_CREATE This rank is made of the following privileges: create- See Also:
- Constant Field Values
 
 - 
SEC_RANK_VIEWstatic final String SEC_RANK_VIEW This rank is made of the following privileges: view- See Also:
- Constant Field Values
 
 - 
SEC_RANK_PUBLISHstatic final String SEC_RANK_PUBLISH This rank is made of the following privileges: view , publish- See Also:
- Constant Field Values
 
 - 
SEC_RANK_EDITstatic final String SEC_RANK_EDIT This rank is made of the following privileges: create , view , publish , edit- See Also:
- Constant Field Values
 
 - 
SEC_RANK_DELETEstatic final String SEC_RANK_DELETE This rank is made of the following privileges: create , view , publish , delete- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: create , view , publish , edit , delete- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getURLString getURL() Get the value for URL. (The URL of the R2W Server) 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.
 
 - 
isUseCredentialboolean isUseCredential() Get the value for UseCredential. (Use credentials for authentication)- 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.
 
 - 
getUsernameString getUsername() Get the value for Username. (The username for the connection)- 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.
 
 - 
getPasswordString getPassword() Get the value for Password. (The password for the connection)- 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.
 
 - 
getCatalogNameString getCatalogName() Get the value for CatalogName. (The optional catalog name, if this is defined it is used when connecting to R2W as the catalog to connect to)- 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.
 
 - 
setURLvoid setURL(String newURL) Set the value for URL. (The URL of the R2W Server) This value is mandatory.- Parameters:
- newURL- the new value for URL. 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.
 
 - 
setUseCredentialvoid setUseCredential(boolean newUseCredential) Set the value for UseCredential. (Use credentials for authentication)- Parameters:
- newUseCredential- the new value for UseCredential.
- 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.
 
 - 
setUsernamevoid setUsername(String newUsername) Set the value for Username. (The username for the connection) This value is optional.- Parameters:
- newUsername- the new value for Username.
- 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.
 
 - 
setPasswordvoid setPassword(String newPassword) Set the value for Password. (The password for the connection) This value is optional.- Parameters:
- newPassword- the new value for Password.
- 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.
 
 - 
setCatalogNamevoid setCatalogName(String newCatalogName) Set the value for CatalogName. (The optional catalog name, if this is defined it is used when connecting to R2W as the catalog to connect to) This value is optional.- Parameters:
- newCatalogName- the new value for CatalogName.
- 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.
 
 - 
publishboolean publish(UserJobContext context, String reportName, String jobFileExpression, String metaData) Publish a File, or a list of files to Report2Web- Parameters:
- context- The job context to perform the publish
- reportName- The name of the Report to publish to
- jobFileExpression- The job file expression for the file(s) to publish
- metaData- The meta data for the published files
- Returns:
- Returns if the file(s) were successfully published
 
 - 
createR2WPublisherR2WPublisher createR2WPublisher(String reportName) Create a R2WPublisher to assist in publishing to Report2Web.- Parameters:
- reportName- The name of the Report to publish to
- Returns:
- Return a R2WPublisher object to control the publishing process.
 
 - 
approveboolean approve(UserJobContext context, String reportName, String jobFileExpression, String metaData) Publish a File, or a list of files to Report2Web for approval- Parameters:
- context- The job context to perform the approval under
- reportName- The name of the Report to approve
- jobFileExpression- The job file expression for the file(s) to approve
- metaData- The meta data for the approval files
- Returns:
- Returns if the file(s) were successfully submitted for approval.
 
 - 
initvoid init() Perform initialization tasks for the R2W Catalog.
 - 
prepareRequestR2WRequest prepareRequest(String uri) throws MalformedURLException Prepare an R2WRequest with default (ALL) substitutions.- Parameters:
- uri- The URI for the request (with or without leading /), the server URL will be prepended.
- Returns:
- Returns an R2WRequest prepared for the specified server and URL
- Throws:
- MalformedURLException- The URL is malformed. See java.net.MalformedURLException and java.net.URL for more information.
 
 - 
prepareRequestR2WRequest prepareRequest(String uri, R2WRequestSubstitutions substitutions) throws MalformedURLException Prepare an R2WRequest with custom substitutions.- Parameters:
- uri- The URI for the request (with or without leading /), the server URL will be prepended.
- substitutions- Substitutions
- Returns:
- Returns an R2WRequest prepared for the specified server and URL
- Throws:
- MalformedURLException- The URL is malformed. See java.net.MalformedURLException and java.net.URL for more information.
 
 - 
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.
 
 - 
getQueueQueue getQueue() Get the Queue.- Returns:
- Queue
- 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. Link the R2W Catalog to its corresponding process server. If this is- null, then the object cannot be persisted.
 
 - 
setQueuevoid setQueue(Queue newQueue) Set the value for Queue. This value is mandatory.- Parameters:
- newQueue- is the object to set Queue to. Link the R2W Catalog to its corresponding default queue. If this is- null, then the object cannot be persisted.
 
 - 
getR2WCatalogAliasesRWIterable<R2WCatalogAlias> getR2WCatalogAliases() Get anRWIterableover an ordered collection ofR2WCatalogAliases. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The aliases of a R2W Catalog- Specified by:
- getR2WCatalogAliasesin interface- R2WCatalogComp
- Returns:
- An RWIterableover an ordered collection ofR2WCatalogAliasobjects .
 
 - 
createR2WCatalogAliasR2WCatalogAlias createR2WCatalogAlias() Create a newR2WCatalogAliaslinked to this object.- Returns:
- a new R2WCatalogAlias.
 
 - 
checkCreatePrivilegeRequiredPermission checkCreatePrivilege() Check whether or not the create 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.
 
 - 
checkViewPrivilegeRequiredPermission 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.
 
 - 
checkPublishPrivilegeRequiredPermission checkPublishPrivilege() Check whether or not the publish 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.
 
 - 
checkEditPrivilegeRequiredPermission checkEditPrivilege() Check whether or not the edit 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.
 
 - 
checkDeletePrivilegeRequiredPermission checkDeletePrivilege() Check whether or not the delete 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.
 
 
- 
 
-