01-08-2008 07:27 AM
Caused by: net.sf.acegisecurity.BadCredentialsException: Bad credentials presented
at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.authenticate(DaoAuthenticationProvider.java:290)
at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:159)
at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:49)
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:372)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterc
eptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:238)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy47.getPerson(Unknown Source)
at org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript.createInputMap(AlfrescoJavaScript.java:211)
at org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript.executeScript(AlfrescoJavaScript.java:157)
at org.alfresco.repo.workflow.jbpm.AlfrescoAssignment.assign(AlfrescoAssignment.java:134)
at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:222)
at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:198)
… 99 more
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<expression>
erw_partnerGroup = peopleextension.isAuthorityMemberOfGroup(person.properties['cm:userName'], "GROUP_AAA");
</expression>
<variable name="erw_partnerGroup" access="read,write" mapped-name="erw_partnerGroup" />
</script>
</action>
<bean id="peopleExtensionScript" parent="baseJavaScriptExtension"
class="br.com.concretesolutions.alfresco.jscript.PeopleExtension">
<property name="extensionName">
<value>peopleextension</value>
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
<property name="authorityDAO">
<ref bean="authorityDAO" />
</property>
<property name="authorityService">
<ref bean="AuthorityService" />
</property>
</bean>
public boolean isAuthorityMemberOfGroup(String authorityName, String groupName) {
boolean isResponse = false;
try {
if(authorityService.authorityExists(authorityName)) {
Set<String> userAuthorities = authorityService.getAuthoritiesForUser(authorityName);
if(userAuthorities.contains(groupName)) {
isResponse = true;
}
}
} catch(Exception e) {
System.out.println("\n\n " + e.getMessage() + "\n\n");
}
return isResponse;
}
01-08-2008 09:13 AM
Set<String> authorities = m_AuthorityService.getContainingAuthorities(AuthorityType.GROUP, "admin", false);
01-14-2008 11:11 AM
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.