<reponame>webu/pyopenproject<filename>pyopenproject/business/services/wiki_page_service_impl.py
from pyopenproject.business.services.command.wiki_page.add_attachment import AddAttachment
from pyopenproject.business.services.command.wiki_page.find import Find
from pyopenproject.business.services.command.wiki_page.find_attachments import FindAttachments
from pyopenproject.business.wiki_page_service import WikiPageService


class WikiPageServiceImpl(WikiPageService):

    def __init__(self, connection):
        """Constructor for class WikiPageServiceImpl, from WikiPageService

        :param connection: The connection data
        """
        super().__init__(connection)

    def find(self, wiki_page):
        return Find(self.connection, wiki_page).execute()

    def find_attachments(self, wiki_page):
        return list(FindAttachments(self.connection, wiki_page).execute())

    def add_attachment(self, wiki_page, attachment, file_path):
        return AddAttachment(self.connection, wiki_page, attachment, file_path).execute()

from pyopenproject.business.services.command.wiki_page.add_attachment import AddAttachment
from pyopenproject.business.services.command.wiki_page.find import Find
from pyopenproject.business.services.command.wiki_page.find_attachments import FindAttachments
from pyopenproject.business.wiki_page_service import WikiPageService


class WikiPageServiceImpl(WikiPageService):

    def __init__(self, connection):
        """Constructor for class WikiPageServiceImpl, from WikiPageService

        :param connection: The connection data
        """
        super().__init__(connection)

    def find(self, wiki_page):
        return Find(self.connection, wiki_page).execute()

    def find_attachments(self, wiki_page):
        return list(FindAttachments(self.connection, wiki_page).execute())

    def add_attachment(self, wiki_page, attachment, file_path):
        return AddAttachment(self.connection, wiki_page, attachment, file_path).execute()
Constructor for class WikiPageServiceImpl, from WikiPageService          :param connection: The connection data