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