public class PrivilegeRenderCondition extends java.lang.Object implements RenderCondition
AccessControlManager.hasPrivileges(String, Privilege[]).| Constructor and Description |
|---|
PrivilegeRenderCondition(javax.jcr.security.AccessControlManager acm,
java.lang.String path,
javax.jcr.security.Privilege[] privileges) |
PrivilegeRenderCondition(javax.jcr.security.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
javax.jcr.security.AccessControlManager acm,
@Nonnull
java.lang.String path,
@Nonnull
java.lang.String[] privilegeNames)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic PrivilegeRenderCondition(@Nonnull
javax.jcr.security.AccessControlManager acm,
@Nonnull
java.lang.String path,
@Nonnull
javax.jcr.security.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 - 2025 Adobe. All Rights Reserved