All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.n2oapp.security.admin.rest.impl.OrganizationPersistRestServiceImpl Maven / Gradle / Ivy

There is a newer version: 8.0.1
Show newest version
package net.n2oapp.security.admin.rest.impl;

import net.n2oapp.security.admin.api.model.Organization;
import net.n2oapp.security.admin.api.service.OrganizationService;
import net.n2oapp.security.admin.rest.api.OrganizationPersistRestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Controller;

/**
 * Реализация REST сервиса управления организациями
 */
@Controller
@ConditionalOnProperty(name = "access.organization-persist-mode", havingValue = "rest")
public class OrganizationPersistRestServiceImpl implements OrganizationPersistRestService {

    @Autowired
    private OrganizationService service;

    @Override
    public Organization create(Organization organization) {
        return service.create(organization);
    }

    @Override
    public Organization update(Organization organization) {
        return service.update(organization);
    }

    @Override
    public void delete(Integer id) {
        service.delete(id);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy