X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Fsubscription_repo.py;fp=o2ims%2Fdomain%2Fsubscription_repo.py;h=d12c00d53365776d65abaff562b2b038165b870a;hb=209f349b35b0919ac133bc2264f25753a73e5b8f;hp=82df3779bdd32b639d2e5f3c3ffdbd537cc1999c;hpb=a413c895f34fd2aa0eaa72254243673ae0477d27;p=pti%2Fo2.git diff --git a/o2ims/domain/subscription_repo.py b/o2ims/domain/subscription_repo.py index 82df377..d12c00d 100644 --- a/o2ims/domain/subscription_repo.py +++ b/o2ims/domain/subscription_repo.py @@ -55,43 +55,3 @@ class SubscriptionRepository(abc.ABC): @abc.abstractmethod def _delete(self, subscription_id): raise NotImplementedError - - -class RegistrationRepository(abc.ABC): - def __init__(self): - self.seen = set() # type: Set[subobj.Subscription] - - def add(self, registration: subobj.Registration): - self._add(registration) - self.seen.add(registration) - - def get(self, registration_id) -> subobj.Registration: - registration = self._get(registration_id) - if registration: - self.seen.add(registration) - return registration - - def list(self) -> List[subobj.Registration]: - return self._list() - - def update(self, registration: subobj.Registration): - self._update(registration) - - def delete(self, registration_id): - self._delete(registration_id) - - @abc.abstractmethod - def _add(self, registration: subobj.Registration): - raise NotImplementedError - - @abc.abstractmethod - def _get(self, registration_id) -> subobj.Registration: - raise NotImplementedError - - @abc.abstractmethod - def _update(self, registration: subobj.Registration): - raise NotImplementedError - - @abc.abstractmethod - def _delete(self, registration_id): - raise NotImplementedError