Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.developer.resources.model
Class ACLContributor

java.lang.Object
  extended by ch.elexis.developer.resources.model.ACLContributor
All Implemented Interfaces:
IACLContributor

public class ACLContributor
extends java.lang.Object
implements IACLContributor

Add this Plugin to the Elexis access rights system. Note: This class must be declared at the Extension point ch.elexis.ACLContribution

Author:
gerry

Field Summary
static ACE CreateSDT
           
static ACE DeleteSDT
           
static ACE ModifySDT
           
static ACE MY_NODE
          The Node for our ACE's
static ACE ReadSDT
          The right to read SampleDataTypes
 
Constructor Summary
ACLContributor()
           
 
Method Summary
 ACE[] getACL()
          We insert our ACEs to the Elexis AccessControl System
 ACE[] reject(ACE[] acl)
          Here we do not react on rejects of our ACL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MY_NODE

public static final ACE MY_NODE
The Node for our ACE's


ReadSDT

public static final ACE ReadSDT
The right to read SampleDataTypes


ModifySDT

public static final ACE ModifySDT

CreateSDT

public static final ACE CreateSDT

DeleteSDT

public static final ACE DeleteSDT
Constructor Detail

ACLContributor

public ACLContributor()
Method Detail

getACL

public ACE[] getACL()
We insert our ACEs to the Elexis AccessControl System

Specified by:
getACL in interface IACLContributor
Returns:
an array of all ACE's to insert

reject

public ACE[] reject(ACE[] acl)
Here we do not react on rejects of our ACL. There should not be rejection anyway, since we used our plugin ID as prefix of our ACE Names, and we did not make any fault in defining our ACE's. If the framework would reject our ACL, since we do not return an alternative,our ACL would not be switched on at all.

Specified by:
reject in interface IACLContributor
Parameters:
acl - array of all rejected acls (these have not been integrated)
Returns:
the plugin can return an array of corrected acls or null.

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis