Interface OrganizationDirectoryService


public interface OrganizationDirectoryService
Manages organizations.
  • Method Details

    • getOrganization

      Organization getOrganization(String id) throws NotFoundException
      Gets an organization by its identifier.
      Parameters:
      id - the identifier
      Returns:
      the organization with this identifier
      Throws:
      NotFoundException
    • getOrganization

      Organization getOrganization(URL url) throws NotFoundException
      Gets an organization by request URL.
      Parameters:
      url - a request URL
      Returns:
      the organization that is mapped to this URL
      Throws:
      NotFoundException
    • getOrganizations

      List<Organization> getOrganizations()
      Gets all registered organizations.
      Returns:
      the organizations
    • addOrganizationDirectoryListener

      void addOrganizationDirectoryListener(OrganizationDirectoryListener listener)
      Adds listener to the list of organization listeners.
      Parameters:
      listener - the organization listener
    • removeOrganizationDirectoryListener

      void removeOrganizationDirectoryListener(OrganizationDirectoryListener listener)
      Removes listener from the list of organization listeners.
      Parameters:
      listener - the organization listener