http://onionworks.net/2006/data/application

clearRight (groupReference : xlink, target : xlink) : boolean

The method "clearRight()" removes an object right from the group specified in the parameter “groupReference”.

The group XLink is specified as a parameter as well as the ID of the document to be deleted from the group.

The web application user must be the user administrator in order to execute this method.

<xsl:stylesheet xmlns:app="http://onionworks.net/2006/data/application" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:variable name="id" select="'onion://data/objects/123'" />
<xsl:variable name="group" select="'onion://usermanagement/groups/123'" />
<xsl:if test="app:clearRight($group, $id)">
<xsl:value-of select="concat('The rights for the document with the ID ', $id, ' were removed from the group »testgroup«.')" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Removing rights.