public interface CugPolicy
extends org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPrincipals(Principal... principals)
Add
Principals that are allowed to access the restricted area. |
Set<Principal> |
getPrincipals()
Returns the set of
Principals that are allowed to access the items
in the restricted area defined by this policy. |
boolean |
removePrincipals(Principal... principals)
Remove the specified
Principals for the set of allowed principals
thus revoking their ability to read items in the restricted area defined
by this policy. |
@Nonnull Set<Principal> getPrincipals()
Principals that are allowed to access the items
in the restricted area defined by this policy.Principals that are allowed to access the
restricted area.boolean addPrincipals(@Nonnull Principal... principals) throws AccessControlException
Principals that are allowed to access the restricted area.principals - The Principals that are granted read access.true if this policy was modified; false otherwise.AccessControlException - If any of the specified principals is
invalid.boolean removePrincipals(@Nonnull Principal... principals) throws AccessControlException
Principals for the set of allowed principals
thus revoking their ability to read items in the restricted area defined
by this policy.principals - The Principals for which access should be revoked.true if this policy was modified; false otherwise.AccessControlException - If an error occurs.Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.