Skip to content

Commit

Permalink
Mosip 22874 authtype lock websub issue 8 (mosip#867)
Browse files Browse the repository at this point in the history
* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

* WIP-fixing auth txn saving

* Updated logic to save auth txn

* Added Y and N status for getting description

* Test fix

* Fix for parse issue in event model with timestamp coming as list in websub callbacks

* Test fix

* Fix to include auth request in all category

* Fixed all request types

---------

Co-authored-by: Loganathan Sekar <[email protected]>
Signed-off-by: Ritik Jain <[email protected]>
  • Loading branch information
2 people authored and Ritik Jain committed Oct 31, 2023
1 parent 3658003 commit aae852d
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
* The Enum ServiceType.
Expand All @@ -19,12 +21,20 @@ public enum ServiceType {
DATA_SHARE_REQUEST(List.of(RequestType.SHARE_CRED_WITH_PARTNER)),
ASYNC(List.of(RequestType.VID_CARD_DOWNLOAD, RequestType.ORDER_PHYSICAL_CARD, RequestType.SHARE_CRED_WITH_PARTNER,
RequestType.UPDATE_MY_UIN, RequestType.AUTH_TYPE_LOCK_UNLOCK)),
ALL(List.of(RequestType.VALIDATE_OTP, RequestType.DOWNLOAD_PERSONALIZED_CARD, RequestType.ORDER_PHYSICAL_CARD,
RequestType.GET_MY_ID, RequestType.BOOK_AN_APPOINTMENT, RequestType.VID_CARD_DOWNLOAD, RequestType.UPDATE_MY_UIN,
RequestType.GENERATE_VID, RequestType.REVOKE_VID, RequestType.AUTH_TYPE_LOCK_UNLOCK,
RequestType.SHARE_CRED_WITH_PARTNER));
ALL() {
public List<RequestType> getRequestType() {
return Stream.of(ServiceType.values())
.filter(type -> !type.equals(this))
.flatMap(type -> type.getRequestType().stream())
.distinct()
.collect(Collectors.toList());
}
};

private List<RequestType> subTypes;

ServiceType() {
}

ServiceType(List<RequestType> subTypes) {
this.subTypes = Collections.unmodifiableList(subTypes);
Expand Down

0 comments on commit aae852d

Please sign in to comment.