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
RepositoryException
public PrivilegeRenderCondition(AccessControlManager acm, java.lang.String path, Privilege[] privileges)
public boolean check() throws ServletException
RenderCondition
true
if the component should be rendered; false
otherwise.check
in interface RenderCondition
true
if the component should be rendered, false
otherwiseServletException
- in case a servlet error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"