Blame view

src/main/java/fr/plil/sio/persistence/jdbc/RightRepository.java 479 Bytes
ef4eb263   rvangrev   Nouvelles modific...
1
2
3
4
5
6
7
  /*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package fr.plil.sio.persistence.jdbc;
  
fa02d31b   rvangrev   Commit avant le m...
8
  import java.util.List;
ef4eb263   rvangrev   Nouvelles modific...
9
10
11
12
  import fr.plil.sio.persistence.api.Right;
  
  public interface RightRepository {
      
fa02d31b   rvangrev   Commit avant le m...
13
      List<Right> findByName(String name);
ef4eb263   rvangrev   Nouvelles modific...
14
  
fa02d31b   rvangrev   Commit avant le m...
15
16
17
      Right findOne(Long id);
      
      boolean delete(Long id);
ef4eb263   rvangrev   Nouvelles modific...
18
  
fa02d31b   rvangrev   Commit avant le m...
19
      void save(Right right, int parentId);
ef4eb263   rvangrev   Nouvelles modific...
20
  }