Class DomainServiceImpl

    • Field Detail

      • uriInfo

        @Context
        protected javax.ws.rs.core.UriInfo uriInfo
    • Constructor Detail

      • DomainServiceImpl

        public DomainServiceImpl​(DomainLogic logic)
    • Method Detail

      • list

        public List<Domain> list()
        Description copied from interface: DomainService
        Returns the list of defined domains.
        Specified by:
        list in interface DomainService
        Returns:
        list of defined domains
      • read

        public Domain read​(String key)
        Description copied from interface: DomainService
        Returns the domain matching the given key.
        Specified by:
        read in interface DomainService
        Parameters:
        key - key of the domain to be read
        Returns:
        domain matching the given key
      • create

        public javax.ws.rs.core.Response create​(Domain domain)
        Description copied from interface: DomainService
        Creates a new domain.
        Specified by:
        create in interface DomainService
        Parameters:
        domain - domain to be created
        Returns:
        Response object featuring Location header of created domain
      • changeAdminPassword

        public void changeAdminPassword​(String key,
                                        String password,
                                        CipherAlgorithm cipherAlgorithm)
        Description copied from interface: DomainService
        Change admin's password for the given domain.
        Specified by:
        changeAdminPassword in interface DomainService
        Parameters:
        key - key of domain to be updated
        password - encoded password value
        cipherAlgorithm - password cipher algorithm
      • adjustPoolSize

        public void adjustPoolSize​(String key,
                                   int poolMaxActive,
                                   int poolMinIdle)
        Description copied from interface: DomainService
        Adjusts the connection pool to the domain database.
        Specified by:
        adjustPoolSize in interface DomainService
        Parameters:
        key - key of domain to be updated
        poolMaxActive - database pool max size
        poolMinIdle - database pool max size
      • delete

        public void delete​(String key)
        Description copied from interface: DomainService
        Deletes the domain matching the provided key.
        Specified by:
        delete in interface DomainService
        Parameters:
        key - key of domain to be deleted