Re: Retrieval of information about group membership and user rights

Serge Huber <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Daniel Zimmermann wrote:

>Thanks you!
>
>I'm now able to display every user and group that has some ACLs on a
>specific page. But I'm highly unsure how to filter the result given
>from getGroupnameListNoAdmin(someACLEntry). Is there any documentation
>about ACLs in general? If I use a null value, every subject with a ACL
>entry for that page is returned. They are displayed like NAME:NUMBER.
>  
>
The number is the site identifier. Because in Jahia each site has a 
different set of users, that may be shared among sites. It is possible 
to have the same name in two different sites, representing two different 
users, for example bill:1, bill:2

>What does the number mean in specific? The JahiaACLEntry which is used
>as a argument for the getGroupnameList() method has fields named
>ACL_NEUTRAL, ACL_YES, ACL_NO. What do they mean? And whats a TriState?
>I'm confused ;)
>  
>
ACLs are by default inherited. If set to neutral, it means that they 
will inherit whatever property is on the parent ACL. If set to YES or NO 
then it will define the property. A yes/no value can be represented with 
a bit, but a NEUTRAL/YES/NO can only be represented with a tri-state 
(meaning it can have three states). We use two bitsets to define 
tristate sets, and ignore the fourth possible value.

Regards,
  Serge Huber.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.