Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="SimpleUserUtil") public interface SimpleUserUtil
This interface handles nodes with primary node type sv:simpleUser.
An instance of the Sitevision class implementing this interface can be obtained via UserFactory.getSimpleUserUtil().
See UserFactory for how to obtain an instance of the UserFactory interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMemberOfVirtualGroup(Node aSimpleUser,
String aVirtualGroupId)
Checks if a simple user is member of a virtual group with a specific id.
|
boolean |
isMemberOfVirtualGroup(String aVirtualGroupId)
Checks if current user is member of a virtual group with a specific id.
|
boolean isMemberOfVirtualGroup(String aVirtualGroupId)
This is a convenience for isMemberOfVirtualGroup(javax.jcr.Node, String) using current user
(as of PortletContextUtil.getCurrentUser()).
aVirtualGroupId - id of a virtual group (sv:virtualGroup).
Note! The id of a virtual group does not always match the name of the virtual group.true if current user is member of the virtual group resolved via aVirtualGroupId,
false otherwiseUserUtil.isMemberOfGroup(javax.jcr.Node)boolean isMemberOfVirtualGroup(Node aSimpleUser, String aVirtualGroupId)
aSimpleUser - a simple user node (sv:simpleUser)aVirtualGroupId - id of a virtual group (sv:virtualGroup).
Note! The id of a virtual group does not always match the name of the virtual group.true if aSimpleUser is member of the virtual group resolved via aVirtualGroupId,
false otherwiseUserUtil.isMemberOfGroup(javax.jcr.Node, javax.jcr.Node)Sitevision - 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.