Package org.imixs.workflow.ldap
Class LDAPGroupInterceptor
java.lang.Object
org.imixs.workflow.ldap.LDAPGroupInterceptor
This Intercepter class provides a mechanism to compute the LDAP groups a user
belongs to. The Result is put into the EJB contextData which is read by the
DocumentSerivce EJB to grant access by dynamic user roles.
The interceptor can be enabled by the deployment descriptor of the
DocumentService. See the following example for a ejb-jar.xml configuration
<assembly-descriptor>
<!-- LDAPGroupInterceptor -->
<interceptor-binding>
<description>Intercepter to add project-role mapping into EJB Context Data</description>
<ejb-name>DocumentService</ejb-name>
<interceptor-class>org.imixs.workflow.ldap.LDAPGroupInterceptor</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
- Version:
- 1.0
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LDAPGroupInterceptor
public LDAPGroupInterceptor()
-
-
Method Details
-
intercept
The interceptor method injects the LDAP groups into the contextData map. The method only runs for the method calls 'findAllEntities', 'save' and 'load'- Parameters:
ctx-- Returns:
- Throws:
Exception
-