Package org.opencastproject.security.api
Interface OrganizationDirectoryService
- All Known Implementing Classes:
OrganizationDirectoryServiceImpl
public interface OrganizationDirectoryService
Manages organizations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAddslistenerto the list of organization listeners.Gets an organization by its identifier.getOrganization(URL url) Gets an organization by request URL.Gets all registered organizations.voidRemoveslistenerfrom the list of organization listeners.
-
Method Details
-
getOrganization
Gets an organization by its identifier.- Parameters:
id- the identifier- Returns:
- the organization with this identifier
- Throws:
NotFoundException
-
getOrganization
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
Addslistenerto the list of organization listeners.- Parameters:
listener- the organization listener
-
removeOrganizationDirectoryListener
Removeslistenerfrom the list of organization listeners.- Parameters:
listener- the organization listener
-