Interface OrganizationService

All Known Implementing Classes:
OrganizationServiceImpl

public interface OrganizationService
Service interface for managing Organization entities. Defines methods for CRUD operations and querying organizations.
  • Method Details

    • create

      Organization create(Organization organization)
      Creates a new organization.
      Parameters:
      organization - the organization to create
      Returns:
      the created Organization
    • findById

      Organization findById(Long id)
      Retrieves an organization by its unique identifier.
      Parameters:
      id - the unique identifier of the organization
      Returns:
      the found Organization
      Throws:
      EntityNotFoundException - if no organization with the given ID is found
    • checkExistanceById

      void checkExistanceById(Long id)
      Check if organization with this unique identifier exists.
      Parameters:
      id - the unique identifier of the organization
      Throws:
      EntityNotFoundException - if no organization with the given ID is found
    • findAll

      Page<Organization> findAll(int pageNumber, int pageSize)
      Retrieves a paginated list of organizations.
      Parameters:
      pageNumber - the page number (starting from 0)
      pageSize - the number of organizations per page
      Returns:
      a Page containing the requested subjects
    • update

      void update(Organization organization, Long id)
      Updates an existing organization.
      Parameters:
      organization - the updated organization data
      id - the unique identifier of the organization
      Throws:
      EntityNotFoundException - if no organization with the given ID is found
    • delete

      void delete(Long id)
      Deletes an organization by its unique identifier.
      Parameters:
      id - the unique identifier of the organization to delete