Revision 8442341f src/main/scala/gr/grnet/aquarium/store/PolicyStore.scala
b/src/main/scala/gr/grnet/aquarium/store/PolicyStore.scala | ||
---|---|---|
49 | 49 |
* Load all accounting policies valid after the specified time instance. |
50 | 50 |
* The results are returned sorted by PolicyEntry.validFrom |
51 | 51 |
*/ |
52 |
def loadPolicies(after: Long): List[PolicyEntry]
|
|
52 |
def loadPolicyEntriesAfter(after: Long): List[PolicyEntry]
|
|
53 | 53 |
|
54 | 54 |
/** |
55 | 55 |
* Store an accounting policy. |
56 | 56 |
*/ |
57 |
def storePolicy(policy: PolicyEntry): Maybe[RecordID] |
|
57 |
def storePolicyEntry(policy: PolicyEntry): Maybe[RecordID]
|
|
58 | 58 |
|
59 | 59 |
/** |
60 | 60 |
* Updates the policy record whose id is equal to the id |
61 | 61 |
* of the provided policy entry. |
62 | 62 |
*/ |
63 |
def updatePolicy(policy: PolicyEntry): Unit |
|
63 |
def updatePolicyEntry(policy: PolicyEntry): Unit
|
|
64 | 64 |
|
65 | 65 |
/** |
66 | 66 |
* Find a policy by its unique id |
67 | 67 |
*/ |
68 |
def findPolicy(id: String): Maybe[PolicyEntry] |
|
68 |
def findPolicyEntry(id: String): Maybe[PolicyEntry]
|
|
69 | 69 |
} |
Also available in: Unified diff