Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="PrincipalUtil") public interface PrincipalUtil
Principal utility interface.
An instance of the Sitevision class implementing this interface can be obtained via Utils.getPrincipalUtil().
See Utils for how to obtain an instance of the Utils interface.
| Modifier and Type | Method and Description |
|---|---|
void |
doAsDuringLogin(Node aUser,
PrivilegedExceptionAction aAction)
Perform work during the login phase as a specified user.
|
Node |
getVirtualGroupByName(String aName)
Provides access to a virtual group wrapped as a JCR node given the group name.
|
List<Node> |
getVirtualGroupsByName(List<String> aNames)
Provides access to virtual groups wrapped as a JCR node given the group name.
|
void doAsDuringLogin(Node aUser, PrivilegedExceptionAction aAction) throws IllegalStateException
Note! This method should only be used during the login phase (i.e. in a JAAS login module).
Other usages will throw an IllegalStateException.
aUser - the useraAction - a runnable containing the operations that is to be performedIllegalStateException - if this method is not called during the login phaseNode getVirtualGroupByName(String aName)
aName - the name of the virtual group, may not be nullList<Node> getVirtualGroupsByName(List<String> aNames)
aNames - a list of names, may not be nullSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.