Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.UserIsMember
Determines whether the current user is a member of one or more access groups (ACLs).
Variables.errno
is set to 1 (one) if the user is a member of any of the listed groups.Syntax
public boolean UserIsMember(String grouplist)Parameters
grouplist
- A comma-delimited list of groups to check against.
Returns
Returns
true
if the user is a member,false
if not.Example
The following code determines if the current user is a member of the
ElementEditor
,Browser
, orSiteGod
ACLs:
boolean member = ics.UserIsMember("ElementEditor,Browser,SiteGod"); if (member) // Yes, this user is a member of one of these ACLs else // This user is not a member of any of these ACLs
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.