Skip to content

Commit

Permalink
[SELC-4660] feat: getDelegations with search and pagination filters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
giulia-tremolada authored May 6, 2024
1 parent 9c2b15b commit f3c8a79
Show file tree
Hide file tree
Showing 20 changed files with 2,049 additions and 4,919 deletions.
470 changes: 58 additions & 412 deletions app/src/main/resources/swagger/api-docs.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import it.pagopa.selfcare.dashboard.connector.model.delegation.Delegation;
import it.pagopa.selfcare.dashboard.connector.model.delegation.DelegationId;
import it.pagopa.selfcare.dashboard.connector.model.delegation.DelegationRequest;
import it.pagopa.selfcare.dashboard.connector.model.delegation.GetDelegationParameters;
import it.pagopa.selfcare.dashboard.connector.model.institution.*;
import it.pagopa.selfcare.dashboard.connector.model.product.PartyProduct;
import it.pagopa.selfcare.dashboard.connector.model.user.CreateUserDto;
import it.pagopa.selfcare.dashboard.connector.model.user.UserInfo;
import it.pagopa.selfcare.dashboard.connector.onboarding.OnboardingRequestInfo;

import java.util.Collection;
import java.util.List;
Expand All @@ -30,7 +30,7 @@ public interface MsCoreConnector {

List<BrokerInfo> findInstitutionsByProductAndType(String productId, String type);

List<Delegation> getDelegations(String from, String to, String productId);
List<Delegation> getDelegations(GetDelegationParameters delegationParameters);

void updateUser(String userId, String institutionId);

Expand All @@ -52,11 +52,5 @@ public interface MsCoreConnector {

void delete(String relationshipId);

OnboardingRequestInfo getOnboardingRequestInfo(String tokenId);

void approveOnboardingRequest(String tokenId);

void rejectOnboardingRequest(String tokenId);

Collection<UserInfo> getUsers(String institutionId, UserInfo.UserInfoFilter userInfoFilter);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class Delegation {
private String brokerId;
private String productId;
private String institutionName;
private String institutionRootName;
private String brokerName;
private DelegationType type;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package it.pagopa.selfcare.dashboard.connector.model.delegation;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class GetDelegationParameters {
private String from;
private String to;
private String productId;
private String search;
private String taxCode;
private String mode;
private String order;
private Integer page;
private Integer size;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package it.pagopa.selfcare.dashboard.connector.model.delegation;

public enum GetDelegationsMode {
FULL,
NORMAL
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package it.pagopa.selfcare.dashboard.connector.model.delegation;

public enum Order {

NONE,
ASC,
DESC

}
Loading

0 comments on commit f3c8a79

Please sign in to comment.