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
RepositoryExceptionpublic PrivilegeRenderCondition(@Nonnull
AccessControlManager acm,
@Nonnull
java.lang.String path,
@Nonnull
Privilege[] privileges)
public boolean check()
throws javax.servlet.ServletException
RenderConditiontrue if the component should be rendered; false
otherwise.check in interface RenderConditiontrue if the component should be rendered, false
otherwisejavax.servlet.ServletException - in case a servlet error occursCopyright © 2010 - 2023 Adobe. All Rights Reserved