Package com.redwood.scheduler.api.model
Interface Report
- 
- All Superinterfaces:
- BusinessKeyObject,- JobDefinitionRelatedObject,- Readable,- ReportComp,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface Report extends ReportComp, JobDefinitionRelatedObject, Readable The definition of a Report
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "Report" 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<Report>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 voidcreateAllReportColumns()Create all the report columns from the query list of fields.ReportColumncreateReportColumn()Create a newReportColumnlinked to this object.ReportSelectioncreateReportSelection()Create a newReportSelectionlinked to this object.ReportSortcreateReportSort()Create a newReportSortlinked to this object.voidgenerate(ReportDestination formatter)Generate the report and output the results to the ReportDestination.voidgenerate(ReportDestination formatter, Map<String,Object> parameters)Generate the report and output the results to the ReportDestination.Map<String,Object>getDefaultParameters()Get a map of the default parameter values.LonggetLimit()Get the value for Limit.StringgetQuery()Get the value for Query.QueryFiltergetQueryFilter()Get the QueryFilter.ReportColumngetReportColumnByColumnOrder(Long columnOrder)Get the ReportColumn by ColumnOrder.ReportColumngetReportColumnByName(String name)Get the ReportColumn by Name.RWIterable<ReportColumn>getReportColumns()Get anRWIterableover a collection ofReportColumns, the collection will be ordered by ColumnOrder.ReportQueryTypegetReportQueryType()Get the value for ReportQueryType.RWIterable<ReportSelection>getReportSelections()Get anRWIterableover an ordered collection ofReportSelections.ReportSortgetReportSortBySortOrder(Long sortOrder)Get the ReportSort by SortOrder.RWIterable<ReportSort>getReportSorts()Get anRWIterableover a collection ofReportSorts, the collection will be ordered by SortOrder.voidsetLimit(Long newLimit)Set the value for Limit.voidsetQuery(String newQuery)Set the value for Query.voidsetQueryFilter(QueryFilter newQueryFilter)Set the value for QueryFilter.voidsetReportQueryType(ReportQueryType newReportQueryType)Set the value for ReportQueryType.voidvalidate(ReportDestination formatter, Map<String,Object> parameters)Validate the report.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.JobDefinitionRelatedObjectgetJobDefinition, setJobDefinition
 - 
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 "Report" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<Report> 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- 
getQueryString getQuery() Get the value for Query. (The optional SQL for the Report.)- 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.
 
 - 
getLimitLong getLimit() Get the value for Limit. (The limit on the number of results in the final dataset.)- 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.
 
 - 
getReportQueryTypeReportQueryType getReportQueryType() Get the value for ReportQueryType. (The type of query the data for the report is retrieved from.) 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.
 
 - 
setQueryvoid setQuery(String newQuery) Set the value for Query. (The optional SQL for the Report.) This value is optional.- Parameters:
- newQuery- the new value for Query.
- 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.
 
 - 
setLimitvoid setLimit(Long newLimit) Set the value for Limit. (The limit on the number of results in the final dataset.) This value is optional.- Parameters:
- newLimit- the new value for Limit.
- 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.
 
 - 
setReportQueryTypevoid setReportQueryType(ReportQueryType newReportQueryType) Set the value for ReportQueryType. (The type of query the data for the report is retrieved from.) This value is mandatory.- Parameters:
- newReportQueryType- the new value for ReportQueryType. 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.
 
 - 
createAllReportColumnsvoid createAllReportColumns() Create all the report columns from the query list of fields.
 - 
generatevoid generate(ReportDestination formatter) throws com.redwood.scheduler.api.exception.ReportGenerationException Generate the report and output the results to the ReportDestination.- Parameters:
- formatter- The destination for the Report results.
- Throws:
- com.redwood.scheduler.api.exception.ReportGenerationException- The report generation failed.
 
 - 
generatevoid generate(ReportDestination formatter, Map<String,Object> parameters) throws com.redwood.scheduler.api.exception.ReportGenerationException Generate the report and output the results to the ReportDestination.- Parameters:
- formatter- The destination for the Report results.
- parameters- The parameters for the report.
- Throws:
- com.redwood.scheduler.api.exception.ReportGenerationException- The report generation failed.
 
 - 
getDefaultParametersMap<String,Object> getDefaultParameters() Get a map of the default parameter values.- Returns:
- A map of the default parameter values match to the uniqueid of the ReportParameter.
 
 - 
validatevoid validate(ReportDestination formatter, Map<String,Object> parameters) throws com.redwood.scheduler.api.exception.ReportValidationException Validate the report.- Parameters:
- formatter- The destination for the Report results.
- parameters- The parameters for the report.
- Throws:
- com.redwood.scheduler.api.exception.ReportValidationException- The report validation failed.
 
 - 
getQueryFilterQueryFilter getQueryFilter() Get the QueryFilter.- Returns:
- QueryFilter
- 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.
 
 - 
setQueryFiltervoid setQueryFilter(QueryFilter newQueryFilter) Set the value for QueryFilter. This value is optional.- Parameters:
- newQueryFilter- is the object to set QueryFilter to. The optional filter for a Report
 
 - 
getReportColumnsRWIterable<ReportColumn> getReportColumns() Get anRWIterableover a collection ofReportColumns, the collection will be ordered by ColumnOrder. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The columns for a Report- Specified by:
- getReportColumnsin interface- ReportComp
- Returns:
- An RWIterableover a collection ofReportColumnobjects , the collection will be ordered by ColumnOrder.
 
 - 
createReportColumnReportColumn createReportColumn() Create a newReportColumnlinked to this object.- Returns:
- a new ReportColumn.
 
 - 
getReportColumnByNameReportColumn getReportColumnByName(String name) Get the ReportColumn by Name.- Parameters:
- name-
- Returns:
- the ReportColumn, or nullif it could not be found
 
 - 
getReportColumnByColumnOrderReportColumn getReportColumnByColumnOrder(Long columnOrder) Get the ReportColumn by ColumnOrder.- Parameters:
- columnOrder-
- Returns:
- the ReportColumn, or nullif it could not be found
 
 - 
getReportSortsRWIterable<ReportSort> getReportSorts() Get anRWIterableover a collection ofReportSorts, the collection will be ordered by SortOrder. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The sorts for a Report- Specified by:
- getReportSortsin interface- ReportComp
- Returns:
- An RWIterableover a collection ofReportSortobjects , the collection will be ordered by SortOrder.
 
 - 
createReportSortReportSort createReportSort() Create a newReportSortlinked to this object.- Returns:
- a new ReportSort.
 
 - 
getReportSortBySortOrderReportSort getReportSortBySortOrder(Long sortOrder) Get the ReportSort by SortOrder.- Parameters:
- sortOrder-
- Returns:
- the ReportSort, or nullif it could not be found
 
 - 
getReportSelectionsRWIterable<ReportSelection> getReportSelections() Get anRWIterableover an ordered collection ofReportSelections. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The selections for a Report- Specified by:
- getReportSelectionsin interface- ReportComp
- Returns:
- An RWIterableover an ordered collection ofReportSelectionobjects .
 
 - 
createReportSelectionReportSelection createReportSelection() Create a newReportSelectionlinked to this object.- Returns:
- a new ReportSelection.
 
 
- 
 
-