Skip to content

Commit

Permalink
Remove methods from facade interface
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-blessing committed Feb 28, 2024
1 parent 7dcfc1f commit d3ac1ee
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions link/adapters/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
class DJLinkFacade(ABC):
"""A facade around a link that is persisted using DataJoint."""

@abstractmethod
def get_assignments(self) -> DJAssignments:
"""Get the assignments of primary keys to the different components."""

@abstractmethod
def get_tainted_primary_keys(self) -> list[PrimaryKey]:
"""Get all tainted primary keys."""

@abstractmethod
def get_processes(self) -> list[DJProcess]:
"""Get all processes associated with entities."""

@abstractmethod
def get_assignment(self, primary_key: PrimaryKey) -> DJAssignment:
"""Get the assignment of the entity with the given primary key to components."""
Expand All @@ -39,31 +27,31 @@ def get_process(self, primary_key: PrimaryKey) -> DJProcess:

@abstractmethod
def add_to_local(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Add the entity identified by the given primary key to the local component."""
"""Add the entities identified by the given primary keys to the local component."""

@abstractmethod
def remove_from_local(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Remove the entity identified by the given primary key from the local component."""
"""Remove the entities identified by the given primary keys from the local component."""

@abstractmethod
def start_pull_process(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Start the pull process for the entity identified by the given primary key."""
"""Start the pull process for the entities identified by the given primary keys."""

@abstractmethod
def finish_pull_process(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Finish the pull process for the entity identified by the given primary key."""
"""Finish the pull process for the entities identified by the given primary keys."""

@abstractmethod
def start_delete_process(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Start the delete process for the entity identified by the given primary key."""
"""Start the delete process for the entities identified by the given primary keys."""

@abstractmethod
def finish_delete_process(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Finish the delete process for the entity identified by the given primary key."""
"""Finish the delete process for the entities identified by the given primary keys."""

@abstractmethod
def deprecate(self, primary_keys: Iterable[PrimaryKey]) -> None:
"""Deprecate the entity identified by the given primary key."""
"""Deprecate the entities identified by the given primary keys."""


ProcessType = Literal["PULL", "DELETE", "NONE"]
Expand Down

0 comments on commit d3ac1ee

Please sign in to comment.