Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TargetAccessRuleCollection |
|
| 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.net.URI; | |
13 | import java.util.List; | |
14 | ||
15 | ||
16 | /** | |
17 | * A collection of {@link TargetAccessRule}'s. | |
18 | * @since 0.3.0 | |
19 | */ | |
20 | public interface TargetAccessRuleCollection extends Part { | |
21 | ||
22 | //---- Methods | |
23 | ||
24 | /** | |
25 | * Returns a list of authorized role sets. | |
26 | * @param resourceUri an {@link URI} to identify a resource. | |
27 | * @param actionName the name of an action. | |
28 | * @param arguments an optional list of arguments for the action. | |
29 | * @param timeStamp a {@link TimeStamp} to determine the temporal time context. | |
30 | * @return a list of authorized role sets. | |
31 | * @since 0.3.0 | |
32 | */ | |
33 | public List<AuthorizedRoles> findAuthorizedRoleSets ( | |
34 | URI resourceUri, | |
35 | String actionName, | |
36 | List<?> arguments, | |
37 | TimeStamp timeStamp | |
38 | ); | |
39 | ||
40 | } |