Announcement Announcement Module
Collapse
No announcement yet.
How to know if Sid is principal or authority from acl_entry Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to know if Sid is principal or authority from acl_entry

    I would like to know whether the retrieved sid ("currentSid") from a permission in the acl_entry table is that of a principal or authority.

    Code:
    for (int j = 0; j < acl.getEntries().size(); j++) {
            String currentPermissionPattern = acl.getEntries().get(j).getPermission().getPattern();
            String currentSid = acl.getEntries().get(j).getSid().toString();       
            }
    I am currently storing currentSid as string. Lets say I stored it as Sid, how can I know if this Sid belongs to a user or a role.

    Thanks.
Working...
X