package pl.dmcs.mati.service;

import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import pl.dmcs.mati.domain.AppCar;
import pl.dmcs.mati.domain.AppUser;

import java.util.List;

public interface AppCarService {
@Secured({"ROLE_ADMIN", "ROLE_USER"})
    void addAppCar (AppCar appCar);
    @Secured({"ROLE_ADMIN", "ROLE_USER"})
    void editAppCar (AppCar appCar);
    public List<AppCar> listAppCar();
    @Secured("ROLE_ADMIN")
    public void removeAppCar (long id);
    public  AppCar getAppCar(long id);


}
