06-07-2011 05:59 AM
public class LDAPStandaloneProcessEngineConfiguration extends StandaloneProcessEngineConfiguration
{
protected IdentityService identityService = new IdentityServiceLDAPImpl();
}
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.ldap.LDAPStandaloneProcessEngineConfiguration">
<property name="customSessionFactories">
<list>
<bean class="org.activiti.engine.impl.ldap.LDAPUserManagerFactory" />
<bean class="org.activiti.engine.impl.ldap.LDAPGroupManagerFactory" />
</list>
</property>
public class IdentityServiceLDAPImpl extends ServiceImpl implements IdentityService
throw new LDAPOperationNotSupportedException("This action is not implemented under LDAP");
public class LDAPUserManagerFactory implements SessionFactory
{
@Override
public Class<?> getSessionType()
{
return UserManager.class;
}
@Override
public Session openSession()
{
return new LDAPUserManager();
}
}
public class LDAPGroupManagerFactory implements SessionFactory
{
@Override
public Class<?> getSessionType()
{
return GroupManager.class;
}
@Override
public Session openSession()
{
return new LDAPGroupManager();
}
}
public class LDAPUserManager extends org.activiti.engine.impl.persistence.entity.UserManager
public class LDAPGroupManager extends org.activiti.engine.impl.persistence.entity.GroupManager
06-09-2011 08:21 AM
06-09-2011 01:37 PM
06-10-2011 03:20 AM
07-29-2011 05:20 PM
Hi!
marcinj:
1) variable identityService overrides same variables defined in class: ProcessEngineConfigurationImpl
I do this for use my own implementation for this service.
2) customSessionFactories belongs to ProcessEngineConfigurationImpl
note: StandaloneProcessEngineConfiguration extends ProcessEngineConfigurationImpl
I'm using activiti 5.6 but, this configuration I made for activiti 5.3.
p4w3l:
It's true, 1 and 3 is redundant… I don't know if in some case you need change identifyservice for use a particular cmd…
08-01-2011 01:43 AM
08-02-2011 04:06 PM
For validate user&password Activiti uses CheckPassword (org.activiti.engine.impl.cmd)
Then, compare password with a user object retrieved with UserManager.
Each particular UserManager known location for password.
For this, you only need implement you own UserManager.
02-19-2013 06:19 AM
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration"
class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="databaseSchemaUpdate" value="false" />
<property name="jdbcUrl" value="jdbcracle:thin:@0.0.0.0:1521/OracleSchema" />
<property name="jdbcDriver" value="oracle.jdbc.driver.OracleDriver" />
<property name="jdbcUsername" value="user" />
<property name="jdbcPassword" value="secret" />
<property name="databaseType" value="oracle" />
<property name="jobExecutorActivate" value="true" />
<property name="history" value="full" />
<property name=”customSessionFactories”>
<list>
<bean class=”pucco.activiti.LDAPUserManagerFactory”>
<constructor-arg ref=”ldapConnectionParams” />
</bean>
<bean class=”pucco.activiti.LDAPGroupManagerFactory”>
<constructor-arg ref=”ldapConnectionParams” />
</bean>
</list>
</property>
</bean>
<bean id="ldapConnectionParams" class="pucco.activiti.LDAPConnectionParams">
<property name="ldapServer" value="0.0.0.0" />
<property name="ldapPort" value="389" />
<property name="ldapUser" value="cn=user,o=system" />
<property name="ldapPassword" value="secret" />
</bean>
</beans>
02-19-2013 04:32 PM
The database Schema includes all Tabels except the identity.
02-20-2013 06:56 AM
It seems like, that the Activiti Engine doesn't understand that it has to use the Factory classes for the IdentityService
Why you touch Activiti db schema?
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.