package fr.plil.sio.persistence.jdbc; import fr.plil.sio.persistence.api.Right; import fr.plil.sio.persistence.api.RightService; import org.springframework.stereotype.Service; import java.util.List; @Service public class RightServiceJdbc implements RightService { @Override public Right create(String name) { if(name==null){ throw new IllegalArgumentException("name cannot be null"); } else{ return null; } } @Override public Right create(String name, Right parent) { return null; } @Override public boolean delete(Right right) { if(right==null){ throw new IllegalArgumentException("name cannot be null"); } else{ return true; } } @Override public List findByName(String name) { throw new IllegalStateException("not implemented !"); } @Override public Right findOne(Long id) { if(id==null){ throw new IllegalArgumentException("name cannot be null"); } else{ return null; } } }