net.n2oapp.security.admin.rest.impl.ClientRestServiceImpl Maven / Gradle / Ivy
package net.n2oapp.security.admin.rest.impl;
import net.n2oapp.security.admin.api.model.Client;
import net.n2oapp.security.admin.api.service.ClientService;
import net.n2oapp.security.admin.rest.api.ClientRestService;
import net.n2oapp.security.admin.rest.api.criteria.RestClientCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
/**
* Реализация REST сервиса управления клиентами
*/
@Controller
public class ClientRestServiceImpl implements ClientRestService {
@Autowired
private ClientService service;
@Override
public Page findAll(RestClientCriteria clientCriteria) {
return service.findAll(clientCriteria);
}
@Override
public Client getByClientId(String clientId) {
return service.findByClientId(clientId);
}
@Override
public Client create(Client clientForm) {
return service.create(clientForm);
}
@Override
public Client update(Client clientForm) {
return service.update(clientForm);
}
@Override
public void delete(String clientId) {
service.delete(clientId);
}
@Override
public Client persist(Client clientForm) {
return service.persist(clientForm);
}
@Override
public Client getDefaultClient(String clientId) {
return service.getDefaultClient(clientId);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy