Class TenantServiceImpl

    • Constructor Detail

      • TenantServiceImpl

        public TenantServiceImpl​(TenantRepository tenantRepository)
    • Method Detail

      • save

        public Tenant save​(Tenant tenant)
        Description copied from interface: TenantService
        Save a tenant.
        Specified by:
        save in interface TenantService
        Parameters:
        tenant - the entity to save.
        Returns:
        the persisted entity.
      • update

        public Tenant update​(Tenant tenant)
        Description copied from interface: TenantService
        Updates a tenant.
        Specified by:
        update in interface TenantService
        Parameters:
        tenant - the entity to update.
        Returns:
        the persisted entity.
      • findAll

        @Transactional(readOnly=true)
        public List<Tenant> findAll()
        Description copied from interface: TenantService
        Get all the tenants.
        Specified by:
        findAll in interface TenantService
        Returns:
        the list of entities.
      • findOne

        @Transactional(readOnly=true)
        public Optional<Tenant> findOne​(Long id)
        Description copied from interface: TenantService
        Get the "id" tenant.
        Specified by:
        findOne in interface TenantService
        Parameters:
        id - the id of the entity.
        Returns:
        the entity.
      • delete

        public void delete​(Long id)
        Description copied from interface: TenantService
        Delete the "id" tenant.
        Specified by:
        delete in interface TenantService
        Parameters:
        id - the id of the entity.