...
Bloc de code |
---|
<visibility> <allowed/> <autoSubscribed/> <obliged> <group name="local.0"/> <group .../> ... <regular attribute="sn" value="user" /> <regular .../> ... </obliged> </visibility> <regex attribute="isMemberOf" pattern="[ a-zA-Z0-9:]*:Eleves" /> <regex .../> ... </obliged> </visibility> |
In this elementIn this element, you define 3 groups of visibility;
- allowed : users are not automatically subscribed to this category, but are allowed to subscribe.
- autoSubscribed : users are automatically subscribed to this category and are allowed to unsubscribe
- obliged : users are automatically subscribe to this category and can't unsubscribe
A user is in a visibility group by two ways :user is in a visibility group by two ways :
- group : user is in the portal group referenced by attribute name, in the example : user in in group "local.0" - see "portlet.xml" section.
- regular : user check regular, in the example : user value of portal attribute "sn" is "user" - see "portlet.xml" section.
Balise Wiki regex : user check a java regular expression from a portal user attribute, in the example user value of portal attribute "isMemberOf" is matching the pattern corresponding of all members of a group when the name contains these characters "\[ a-zA-Z0-9:\]" 0 or n times and when the name finish by ":Eleves" - see "portlet.xml"
- group : user is in the portal group referenced by attribute name, in the example : user in in group "local.0" - see "portlet.xml" section.
- regular : user check regular, in the example : user value of portal attribute "sn" is "user" - see "portlet.xml"
section.
<category>.xml
described by dtd category.dtd, provided by remote server, requested by urlCategory of esup-lecture.xml
...