public interface SecurityModel
CHANNEL_MANAGER_ADMIN_ROLE
or CHANNEL_WEBMASTER_ROLE
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_MANAGER_ADMIN_ROLE |
static String |
CHANNEL_WEBMASTER_ROLE |
Modifier and Type | Method and Description |
---|---|
Principal |
getUserPrincipal(javax.jcr.Session session) |
boolean |
isUserInRole(javax.jcr.Session session,
String functionalRole) |
static final String CHANNEL_MANAGER_ADMIN_ROLE
static final String CHANNEL_WEBMASTER_ROLE
Principal getUserPrincipal(javax.jcr.Session session)
Principal
of currently active userboolean isUserInRole(javax.jcr.Session session, String functionalRole)
true
when the user for the current context
is in role functionalRole
where the
functionalRole
can be either CHANNEL_MANAGER_ADMIN_ROLE
or CHANNEL_WEBMASTER_ROLE
Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.