Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2018-2019 adorsys GmbH & Co KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.adorsys.psd2.event.service;
import de.adorsys.psd2.event.core.model.EventOrigin;
import de.adorsys.psd2.event.core.model.EventType;
import de.adorsys.psd2.event.service.model.AspspEvent;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.time.OffsetDateTime;
import java.util.List;
/**
* Base version of AspspEventService that contains all method declarations.
* Should not be implemented directly, consider using one of the interfaces that extends this one.
*
*/
public interface AspspEventService {
/**
* Returns a list of Event objects, recorded in given time period
*
* @param start First date of the period
* @param end Last date of the period
* @param instanceId The id of particular service instance
* @return List of Event objects, recorded in given time period
*/
List getEventsForPeriod(@NotNull OffsetDateTime start, @NotNull OffsetDateTime end, @Nullable String instanceId,
@Nullable Integer pageIndex, @Nullable Integer itemsPerPage);
/**
* Returns a list of Event objects, recorded in given time period and with the given consentId
*
* @param start First date of the period
* @param end Last date of the period
* @param consentId Id of the consent
* @param instanceId The id of particular service instance
* @return List of Event objects, recorded in given time period and with a given consentId
*/
List getEventsForPeriodAndConsentId(@NotNull OffsetDateTime start, @NotNull OffsetDateTime end, @NotNull String consentId, @Nullable String instanceId,
@Nullable Integer pageIndex, @Nullable Integer itemsPerPage);
/**
* Returns a list of Event objects, recorded in given time period and with the given paymentId
*
* @param start First date of the period
* @param end Last date of the period
* @param paymentId Id of the payment
* @param instanceId The id of particular service instance
* @return List of Event objects, recorded in given time period and with a given paymentId
*/
List getEventsForPeriodAndPaymentId(@NotNull OffsetDateTime start, @NotNull OffsetDateTime end, @NotNull String paymentId, @Nullable String instanceId,
@Nullable Integer pageIndex, @Nullable Integer itemsPerPage);
/**
* Returns a list of Event objects of the specific type, recorded in given time period
*
* @param start First date of the period
* @param end Last date of the period
* @param eventType The searched type of the events
* @param instanceId The id of particular service instance
* @return List of Event objects, recorded in given time period and of a specific type
*/
List getEventsForPeriodAndEventType(@NotNull OffsetDateTime start, @NotNull OffsetDateTime end, @NotNull EventType eventType, @Nullable String instanceId,
@Nullable Integer pageIndex, @Nullable Integer itemsPerPage);
/**
* Returns a list of Event objects from a specific origin, recorded in given time period
*
* @param start First date of the period
* @param end Last date of the period
* @param eventOrigin The searched origin of the events
* @param instanceId The id of particular service instance
* @return List of Event objects, recorded in given time period and from a specific origin
*/
List getEventsForPeriodAndEventOrigin(@NotNull OffsetDateTime start, @NotNull OffsetDateTime end, @NotNull EventOrigin eventOrigin, @Nullable String instanceId,
@Nullable Integer pageIndex, @Nullable Integer itemsPerPage);
}