Groups and users, in security management, are stored and managed as a string, which prevents from determine directly when reading an ACE if it deals with a group or with a user. To get the information you can user the userManger service:
if (userManager.getGroup(name) != null) {
                type = GROUP_TYPE;
            } else {
                type = USER_TYPE;
            }

If you are coding a web client, you can use the method

getPrincipalType(String user)
of Seam component
PrincipalListManager
, the method handles a cache and is used in many places in EP Code.

Version 2.1 last modified by Alain Escaffre on 03/10/2008 at 10:46

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: Alain Escaffre on 2008/10/03 10:37
© 2008-2010 Nuxeo
1.3.8295