Interface DomainService

    • Method Detail

      • create

        Domain create​(Domain domain)
        Creates a new domain
        Parameters:
        domain - the Domain to create
        Returns:
        the new domain
      • create

        Domain create​(String name,
                      String description,
                      boolean enabled)
        Creates a new domain
        Parameters:
        name - the name of the new domain
        description - the description of the new domain
        enabled - the enabled status of the new domain
        Returns:
        the new domain
      • update

        Domain update​(Domain domain)
        Updates an existing domain
        Parameters:
        domain - the domain set to update
        Returns:
        the updated domain
      • get

        Domain get​(String domainId)
        Get detailed information on a domain by id
        Parameters:
        domainId - the domain identifier
        Returns:
        the domain
      • getByName

        List<? extends Domain> getByName​(String domainName)
        Get detailed information on a domain by name
        Parameters:
        domainName - the domain name
        Returns:
        the domain
      • delete

        ActionResponse delete​(String domainId)
        Deletes a domain by id
        Parameters:
        domainId - the domain id
        Returns:
        the ActionResponse
      • list

        List<? extends Domain> list()
        lists all domains the current token has access to
        Returns:
        list of domains