CPD Results

The following document contains the results of PMD's CPD 7.0.0.

Duplications

File Line
de/dlr/shepard/endpoints/TimeseriesRestImpl.java 123
de/dlr/shepard/endpoints/TimeseriesRestImpl.java 148
public Response getTimeseries(@PathParam(Constants.TIMESERIES_CONTAINER_ID) long timeseriesContainerId,
			@QueryParam(Constants.MEASUREMENT) @Parameter(required = true) String measurement,
			@QueryParam(Constants.LOCATION) @Parameter(required = true) String location,
			@QueryParam(Constants.DEVICE) @Parameter(required = true) String device,
			@QueryParam(Constants.SYMBOLICNAME) @Parameter(required = true) String symbolicName,
			@QueryParam(Constants.FIELD) @Parameter(required = true) String field,
			@QueryParam(Constants.START) @Parameter(required = true) long start,
			@QueryParam(Constants.END) @Parameter(required = true) long end,
			@QueryParam(Constants.FUNCTION) SingleValuedUnaryFunction function,
			@QueryParam(Constants.GROUP_BY) Long groupBy, @QueryParam(Constants.FILLOPTION) FillOption fillOption) {
File Line
de/dlr/shepard/endpoints/FileRestImpl.java 46
de/dlr/shepard/endpoints/StructuredDataRestImpl.java 43
de/dlr/shepard/endpoints/TimeseriesRestImpl.java 53
public Response getAllFileContainers(@QueryParam(Constants.QP_NAME) String name,
			@QueryParam(Constants.QP_PAGE) Integer page, @QueryParam(Constants.QP_SIZE) Integer size,
			@QueryParam(Constants.QP_ORDER_BY_ATTRIBUTE) ContainerAttributes orderBy,
			@QueryParam(Constants.QP_ORDER_DESC) Boolean orderDesc) {
		var params = new QueryParamHelper();
		if (name != null)
			params = params.withName(name);
		if (page != null && size != null)
			params = params.withPageAndSize(page, size);
		if (orderBy != null)
			params = params.withOrderByAttribute(orderBy, orderDesc);
		var containers = fileContainerService.getAllContainers(params, securityContext.getUserPrincipal().getName());
File Line
de/dlr/shepard/endpoints/TimeseriesReferenceRestImpl.java 89
de/dlr/shepard/endpoints/TimeseriesReferenceRestImpl.java 107
public Response getTimeseriesPayload(@PathParam(Constants.COLLECTION_ID) long collectionId,
			@PathParam(Constants.DATAOBJECT_ID) long dataObjectId,
			@PathParam(Constants.TIMESERIES_REFERENCE_ID) long timeseriesReferenceId,
			@QueryParam(Constants.FUNCTION) SingleValuedUnaryFunction function,
			@QueryParam(Constants.GROUP_BY) Long groupBy, @QueryParam(Constants.FILLOPTION) FillOption fillOption,
			@QueryParam(Constants.DEVICE) Set<String> deviceFilterTag,
			@QueryParam(Constants.LOCATION) Set<String> locationFilterTag,
			@QueryParam(Constants.SYMBOLICNAME) Set<String> symbolicNameFilterTag) {