Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,10 @@ public enum AuditAction {
RESUBMIT_SUBSCRIPTION,
CREATE_LOCATION_METADATA,
UPDATE_LOCATION_METADATA,
DELETE_LOCATION_METADATA
DELETE_LOCATION_METADATA,
THIRD_PARTY_SUBSCRIBER_CREATION,
DELETE_THIRD_PARTY_SUBSCRIBER,
VIEW_THIRD_PARTY_SUBSCRIBERS,
MANAGE_THIRD_PARTY_SUBSCRIBER_VIEW,
THIRD_PARTY_SUBSCRIBER_OAUTH_CONFIG_CREATED
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,9 @@ public class Artefact {
* Metadata that will be indexed for searching.
*/
private Map<String, List<Object>> search;

/**
* A counter to show how many times the artefact has been superseded. Default is 0.
*/
private int supersededCount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ThirdPartySubscription {
public class LegacyThirdPartySubscription {
@NotNull
String apiDestination;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ThirdPartySubscriptionArtefact {
public class LegacyThirdPartySubscriptionArtefact {
@NotNull
String apiDestination;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package uk.gov.hmcts.reform.pip.model.thirdparty;

public enum ThirdPartyAction {
NEW_PUBLICATION,
UPDATE_PUBLICATION,
DELETE_PUBLICATION
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package uk.gov.hmcts.reform.pip.model.thirdparty;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.UUID;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ThirdPartyOauthConfiguration {
private UUID userId;
private String destinationUrl;
private String tokenUrl;
private String clientIdKey;
private String clientSecretKey;
private String scopeKey;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package uk.gov.hmcts.reform.pip.model.thirdparty;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;
import java.util.UUID;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ThirdPartySubscription {
List<ThirdPartyOauthConfiguration> thirdPartyOauthConfigurationList;
UUID publicationId;
ThirdPartyAction thirdPartyAction;
}