Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RoleAssignmentRuleCollection |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport | |
3 | * (http://www.vbs.admin.ch) | |
4 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
5 | * All rights reserved. | |
6 | * | |
7 | * Licensed under the Open Permis License which accompanies this distribution, | |
8 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
9 | */ | |
10 | package org.openpermis.policy; | |
11 | ||
12 | import java.util.Set; | |
13 | ||
14 | import org.openpermis.Subject; | |
15 | ||
16 | ||
17 | /** | |
18 | * A collection of {@link RoleAssignmentRule}'s. | |
19 | * @since 0.3.0 | |
20 | */ | |
21 | public interface RoleAssignmentRuleCollection extends Part { | |
22 | ||
23 | //---- Methods | |
24 | ||
25 | /** | |
26 | * Verifies the assignment of the given roles to the given subject according to this collection | |
27 | * of rules, using the clock. | |
28 | * @param subject a {@link Subject}. | |
29 | * @param assertedRoles a set of {@link Role}s. | |
30 | * @param timeStamp a {@link TimeStamp}. | |
31 | * @return all roles which are correctly assigned. | |
32 | * @since 0.3.0 | |
33 | */ | |
34 | public Set<Role> verifyRoleAssignments ( | |
35 | Subject subject, | |
36 | Set<Role> assertedRoles, | |
37 | TimeStamp timeStamp | |
38 | ); | |
39 | ||
40 | } |