How to implement digital signature with my existing web project

The security restrictions of browsers do not allow javascript access to the system certificate keystore or smart cards. Formerly java applets could be used, but with the latest browser updates it is no longer possible. Current solutions for digital signature in browsers require the installation of a desktop software on the user’s computer. The operating … Read more

Auto-generation of email with username and random password on creation of new user

Below is a working solution. resource/alfresco/extension/new-user-email-context.xml: <?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-2.0.xsd”> <bean id=”newUserEmail” class=”demo.NewUserEmail”> <property name=”policyComponent” ref=”policyComponent”/> <property name=”nodeService” ref=”nodeService”/> <property name=”personService” ref=”personService”/> <property name=”passwordGenerator” ref=”passwordGenerator”/> <property name=”authenticationService” ref=”authenticationService”/> </bean> </beans> demo.NewUserEmail.java: package demo; import org.alfresco.model.ContentModel; import org.alfresco.repo.node.NodeServicePolicies; import org.alfresco.repo.policy.*; import org.alfresco.repo.security.authentication.PasswordGenerator; import org.alfresco.service.cmr.repository.*; import org.alfresco.service.cmr.security.*; import org.alfresco.util.PropertyCheck; import org.springframework.beans.factory.InitializingBean; public class … Read more

How to convert a date in this format (Tue Jul 13 00:00:00 CEST 2010) to a Java Date (The string comes from an alfresco property)

Basically your problem is that you are using a SimpleDateFormat(String pattern) constructor, where javadoc says: Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the default locale. And if you try using this code: DateFormat osLocalizedDateFormat = new SimpleDateFormat(“MMMM EEEE”); System.out.println(osLocalizedDateFormat.format(new Date())) you will notice that it prints you month … Read more