blob: 3a5800064e41922950e572f4b7a22805b3a8ecf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.cablelabs.vcpe.cos.cosbase.repository;
import com.cablelabs.vcpe.cos.cosbase.model.CoS;
import java.util.List;
/**
* Created by steve on 5/25/15.
*/
public interface CoSRespository
{
// TODO add exceptions
CoS add(CoS cos); // returns null if already exists, otherwise returns stored cos
CoS get(String cosId); // returns null if not found, otherwise stored cos
CoS update(CoS cos); // returns null if did not exit, otherwise cos as it was previous to update (put in any case)
CoS delete(String cosId); // returns null if not found, otherwise cos as it was previous to delete
int count(); // number of CoS stored in the repo
List<CoS> getAll();
public void dump(int tab); // print out contents of the repo
}
|