Announcement Announcement Module
Collapse
No announcement yet.
32 bits mask? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 32 bits mask?

    Given that getMask method on AclEntry class returns an integer,
    does that mean that I'm limited to 32 different permissions per entry, or is it somehow extensible?

    Thanks

  • #2
    You can write any implementation of AclEntry that you like. Use a Long if you'd prefer. Although you've got 2**32 with an integer, so you have a lot possible combinations already. You are not forced to allocate a specific bit to a specific permission. Every bit mask (comprising all 32 bits) is a separate allowed permission.

    Comment

    Working...
    X