I've attached a couple of files to:
https://issues.apache.org/jira/browse/STANBOL-897

There isn't much new functionality in the patch, but it's an
improvement over the previous version and this seemed a good point to
update.
The tests are fairly crude & limited, but there is some coverage of
each of the HTML, API and true RESTful interfaces to the user manager,
so any systematic problems should get flagged up.

(I couldn't get a parser to work - kept get something like JSON/RDF
provider not available, even though it was a Turtle one I was asking
for...)

I've got the code in place for editing permissions for individual
users, but before that'll work I have a little question:

It seems to make sense that most permissions will be given to users
via roles,i.e. :

user -> role -> permission

I don't think it makes sense to list/allow editing of these directly
from the user (a role -> permission editor is top of my todo list).
The permissions of immediate interest for the user are ones like:

user -> permission

The question is, how to filter into a ftl LD template the values that
fit this patterm:

[]    a       <http://xmlns.com/foaf/0.1/Agent> ;
      <http://clerezza.org/2009/08/platform#userName>
              "joe" ;
      <http://clerezza.org/2008/10/permission#hasPermission>
              [ a       <http://clerezza.org/2008/10/permission#Permission> ;
                <http://clerezza.org/2008/10/permission#javaPermissionEntry>
                        "(org.osgi.framework.AdminPermission \"*\"
\"resource\")"
              ] ;
...
just to pull out the (org.osgi.framework.AdminPermission \"*\"
\"resource\") part.

Is there any documentation of the templating? Couldn't find anything
with a quick hunt.
What I'm after will look something like this:

<@ldpath path="fn:sort(^rdf:type)">

<#assign permission>
<@ldpath path="permission:javaPermissionEntry :: xsd:string"/>
</#assign>

    <input class="permission" type="checkbox" id="${permission}"
name="${permission}" value="${permission}" checked="checked"  />
    <label for="${permission}">${permission}</label>
    <br/>

</@ldpath>

Cheers,
Danny.

-- 
http://dannyayers.com

http://webbeep.it  - text to tones and back again

Reply via email to