Package org.openiam.srvc.report
Class ReportWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.report.ReportWebServiceImpl
-
- All Implemented Interfaces:
ReportWebService
@Service("reportWS") public class ReportWebServiceImpl extends AbstractApiService implements ReportWebServiceWS for report system- Author:
- vitaly.yakunin
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description ReportWebServiceImpl(ReportQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsecreateOrUpdateReportInfo(ReportInfoDto report)Creates or updates report info.ResponsecreateOrUpdateReportInfoParam(ReportCriteriaParamDto reportParam)Creates or updates report info. parameter.ResponsecreateOrUpdateSubCriteriaParam(ReportSubCriteriaParamDto subCriteriaParamReport)Creates or updates sub criteria report param.ResponsedeleteReport(String reportId)Deletes report with given report Id.ResponsedeleteReportParam(String reportParamId)Deletes report parameter.ResponsedeleteSubCriteriaParamReport(String reportId)Deletes sub criteria report.GetReportDataResponseexecuteQuery(ReportQueryDto reportQuery)Executes query and returns data.List<ReportCriteriaParamDto>getAllReportCriteriaParam()Retrieves all report criteria params list.GetAllSubCriteriaParamReportsResponsegetAllSubCriteriaParamReport(String reportId)Retrieves all parameters that are sub criteria reports for given report Id.GetReportInfoResponsegetReport(String reportId)Retrieves report info for given report Id.GetReportInfoResponsegetReportByName(String reportName)Retrieve report info.IntegergetReportCount()Counts number of reports.GetReportParameterMetaTypesResponsegetReportParameterMetaTypes()Retrieves report parameter meta types.GetReportParametersResponsegetReportParametersByReportId(String reportId)Retrieves report parameter for given report Id.GetReportParametersResponsegetReportParametersByReportName(String reportName)Retrieves report parameters for given report name.GetReportParameterTypesResponsegetReportParameterTypes()Retrieves report parameter types.GetAllReportsResponsegetReports(int from, int size)Retrieves all reports in given range.GetAllReportsResponsegetReportsByUserId(String requestorId)Retrieves all reports for given user ID.StringgetReportUrl(ReportQueryDto reportQuery, String taskName, String reportBaseUrl, String locale)Retrieves report URL.IntegergetSubCriteriaParamReportCount()Retrieves number of sub criteria report parameters.GetAllSubCriteriaParamReportsResponsegetSubCriteriaParamReports()Retrieves all sub criteria parameter reports.ResponsevalidateUpdateReportInfo(ReportInfoDto report)Validates update report info.-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
ReportWebServiceImpl
@Autowired public ReportWebServiceImpl(ReportQueue queue)
-
-
Method Detail
-
executeQuery
public GetReportDataResponse executeQuery(ReportQueryDto reportQuery)
Description copied from interface:ReportWebServiceExecutes query and returns data.- Specified by:
executeQueryin interfaceReportWebService- Parameters:
reportQuery- Query to use for data retrieval.- Returns:
- Returns data for report.
-
getReportUrl
public String getReportUrl(ReportQueryDto reportQuery, String taskName, String reportBaseUrl, String locale)
Description copied from interface:ReportWebServiceRetrieves report URL.- Specified by:
getReportUrlin interfaceReportWebService- Parameters:
reportQuery- Query to use for report URL retrieval.taskName- Task name.reportBaseUrl- Report base URL.locale- - Locale.- Returns:
- Report URL.
-
getReports
public GetAllReportsResponse getReports(int from, int size)
Description copied from interface:ReportWebServiceRetrieves all reports in given range.- Specified by:
getReportsin interfaceReportWebService- Parameters:
from- From range option.size- Size range option.- Returns:
- Reports for given range.
-
getReportCount
public Integer getReportCount()
Description copied from interface:ReportWebServiceCounts number of reports.- Specified by:
getReportCountin interfaceReportWebService- Returns:
- Number of reports.
-
getReportsByUserId
public GetAllReportsResponse getReportsByUserId(String requestorId)
Description copied from interface:ReportWebServiceRetrieves all reports for given user ID.- Specified by:
getReportsByUserIdin interfaceReportWebService- Parameters:
requestorId- User ID.- Returns:
- All reports for given requestorId (User ID).
-
createOrUpdateReportInfo
public Response createOrUpdateReportInfo(ReportInfoDto report)
Description copied from interface:ReportWebServiceCreates or updates report info.- Specified by:
createOrUpdateReportInfoin interfaceReportWebService- Parameters:
report- Report info to create or update.- Returns:
- Response.
-
validateUpdateReportInfo
public Response validateUpdateReportInfo(ReportInfoDto report)
Description copied from interface:ReportWebServiceValidates update report info.- Specified by:
validateUpdateReportInfoin interfaceReportWebService- Parameters:
report- Report info that will be validated.- Returns:
- Response.
-
createOrUpdateReportInfoParam
public Response createOrUpdateReportInfoParam(ReportCriteriaParamDto reportParam)
Description copied from interface:ReportWebServiceCreates or updates report info. parameter.- Specified by:
createOrUpdateReportInfoParamin interfaceReportWebService- Parameters:
reportParam- Report info. parameter that will be created or updated.- Returns:
- Response.
-
getReportParametersByReportId
public GetReportParametersResponse getReportParametersByReportId(String reportId)
Description copied from interface:ReportWebServiceRetrieves report parameter for given report Id.- Specified by:
getReportParametersByReportIdin interfaceReportWebService- Parameters:
reportId- Report Id.- Returns:
- Report parameters.
-
getReportParametersByReportName
public GetReportParametersResponse getReportParametersByReportName(String reportName)
Description copied from interface:ReportWebServiceRetrieves report parameters for given report name.- Specified by:
getReportParametersByReportNamein interfaceReportWebService- Parameters:
reportName- Report name.- Returns:
- Report parameters.
-
getReportByName
public GetReportInfoResponse getReportByName(String reportName)
Description copied from interface:ReportWebServiceRetrieve report info.- Specified by:
getReportByNamein interfaceReportWebService- Parameters:
reportName- Report name.- Returns:
- Report info.
-
getReport
public GetReportInfoResponse getReport(String reportId)
Description copied from interface:ReportWebServiceRetrieves report info for given report Id.- Specified by:
getReportin interfaceReportWebService- Parameters:
reportId- Report Id.- Returns:
- Report info.
-
deleteReportParam
public Response deleteReportParam(String reportParamId)
Description copied from interface:ReportWebServiceDeletes report parameter.- Specified by:
deleteReportParamin interfaceReportWebService- Parameters:
reportParamId- Report parameter Id.- Returns:
- Response.
-
deleteReport
public Response deleteReport(String reportId)
Description copied from interface:ReportWebServiceDeletes report with given report Id.- Specified by:
deleteReportin interfaceReportWebService- Parameters:
reportId- Report Id.- Returns:
- Response.
-
getReportParameterTypes
public GetReportParameterTypesResponse getReportParameterTypes()
Description copied from interface:ReportWebServiceRetrieves report parameter types.- Specified by:
getReportParameterTypesin interfaceReportWebService- Returns:
- Report parameter types.
-
getReportParameterMetaTypes
public GetReportParameterMetaTypesResponse getReportParameterMetaTypes()
Description copied from interface:ReportWebServiceRetrieves report parameter meta types.- Specified by:
getReportParameterMetaTypesin interfaceReportWebService- Returns:
- Report parameter meta types.
-
getAllReportCriteriaParam
public List<ReportCriteriaParamDto> getAllReportCriteriaParam()
Description copied from interface:ReportWebServiceRetrieves all report criteria params list.- Specified by:
getAllReportCriteriaParamin interfaceReportWebService- Returns:
- List of report criteria params.
-
getSubCriteriaParamReports
public GetAllSubCriteriaParamReportsResponse getSubCriteriaParamReports()
Description copied from interface:ReportWebServiceRetrieves all sub criteria parameter reports.- Specified by:
getSubCriteriaParamReportsin interfaceReportWebService- Returns:
- All reports sub criteria params.
-
getAllSubCriteriaParamReport
public GetAllSubCriteriaParamReportsResponse getAllSubCriteriaParamReport(String reportId)
Description copied from interface:ReportWebServiceRetrieves all parameters that are sub criteria reports for given report Id.- Specified by:
getAllSubCriteriaParamReportin interfaceReportWebService- Parameters:
reportId- Report Id.- Returns:
- Parameters that are sub criteria reports for given report Id
-
getSubCriteriaParamReportCount
public Integer getSubCriteriaParamReportCount()
Description copied from interface:ReportWebServiceRetrieves number of sub criteria report parameters.- Specified by:
getSubCriteriaParamReportCountin interfaceReportWebService- Returns:
- Number of parameters.
-
deleteSubCriteriaParamReport
public Response deleteSubCriteriaParamReport(String reportId)
Description copied from interface:ReportWebServiceDeletes sub criteria report.- Specified by:
deleteSubCriteriaParamReportin interfaceReportWebService- Parameters:
reportId- sub criteria report id.- Returns:
- Response.
-
createOrUpdateSubCriteriaParam
public Response createOrUpdateSubCriteriaParam(ReportSubCriteriaParamDto subCriteriaParamReport)
Description copied from interface:ReportWebServiceCreates or updates sub criteria report param.- Specified by:
createOrUpdateSubCriteriaParamin interfaceReportWebService- Parameters:
subCriteriaParamReport- Report sub criteria param that will be created or updated.- Returns:
- Response.
-
-