1 | <?php |
||
20 | class PolicyService extends AbstractBrowserBindingService implements PolicyServiceInterface |
||
21 | { |
||
22 | /** |
||
23 | * Applies a specified policy to an object. |
||
24 | * |
||
25 | * @param string $repositoryId The identifier for the repository. |
||
26 | * @param string $policyId The identifier for the policy to be applied. |
||
27 | * @param string $objectId The identifier of the object. |
||
28 | * @param ExtensionDataInterface|null $extension |
||
29 | */ |
||
30 | public function applyPolicy($repositoryId, $policyId, $objectId, ExtensionDataInterface $extension = null) |
||
34 | |||
35 | /** |
||
36 | * Gets the list of policies currently applied to the specified object. |
||
37 | * |
||
38 | * @param string $repositoryId The identifier for the repository. |
||
39 | * @param string $objectId The identifier of the object. |
||
40 | * @param string|null $filter a comma-separated list of query names that defines which properties must be |
||
41 | * returned by the repository (default is repository specific) |
||
42 | * @param ExtensionDataInterface|null $extension |
||
43 | * @return ObjectDataInterface[] A list of the policy objects. |
||
44 | */ |
||
45 | public function getAppliedPolicies( |
||
53 | |||
54 | /** |
||
55 | * Removes a specified policy from an object. |
||
56 | * |
||
57 | * @param string $repositoryId The identifier for the repository. |
||
58 | * @param string $policyId The identifier for the policy to be removed. |
||
59 | * @param string $objectId The identifier of the object. |
||
60 | * @param ExtensionDataInterface|null $extension |
||
61 | */ |
||
62 | public function removePolicy($repositoryId, $policyId, $objectId, ExtensionDataInterface $extension = null) |
||
66 | } |
||
67 |