public class PrivilegeRenderCondition extends java.lang.Object implements RenderCondition
AccessControlManager#hasPrivileges(String, Privilege[]).| Constructor and Description |
|---|
PrivilegeRenderCondition(AccessControlManager acm,
java.lang.String path,
Privilege[] privileges) |
PrivilegeRenderCondition(AccessControlManager acm,
java.lang.String path,
java.lang.String[] privilegeNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check()
Returns
true if the component should be rendered; false
otherwise. |
public PrivilegeRenderCondition(AccessControlManager acm,
java.lang.String path,
java.lang.String[] privilegeNames)
throws RepositoryException
RepositoryExceptionpublic PrivilegeRenderCondition(AccessControlManager acm,
java.lang.String path,
Privilege[] privileges)
public 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 occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"