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(@Nonnull AccessControlManager acm, @Nonnull java.lang.String path, @Nonnull java.lang.String[] privilegeNames) throws RepositoryException
RepositoryException
public PrivilegeRenderCondition(@Nonnull AccessControlManager acm, @Nonnull java.lang.String path, @Nonnull 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 occursCopyright © 2010 - 2020 Adobe. All Rights Reserved