public class PrivilegeRenderCondition extends Object implements RenderCondition
AccessControlManager.hasPrivileges(String, Privilege[]).| Constructor and Description |
|---|
PrivilegeRenderCondition(AccessControlManager acm,
String path,
Privilege[] privileges) |
PrivilegeRenderCondition(AccessControlManager acm,
String path,
String[] privilegeNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check()
Returns
true if the component should be rendered; false
otherwise. |
public PrivilegeRenderCondition(@Nonnull AccessControlManager acm, @Nonnull String path, @Nonnull String[] privilegeNames) throws RepositoryException
RepositoryExceptionpublic boolean check()
throws ServletException
RenderConditiontrue if the component should be rendered; false
otherwise.check in interface RenderConditiontrue if the component should be rendered, false
otherwiseServletException - in case a servlet error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved