I'd like to have re开发者_C百科liable document workflow within Alfresco Share (Community Edition). What shall I do to let site users have electronic signatures when they process documents?
I googled awhile but in vain.
The PDF Toolkit provides digital signature functionality for PDFs, which may provide some ideas on how to extend Alfresco to support a more general digital signature feature.
You can use a custom java class to load in a document and put the digital signature there e.g.:
<node name="signDocument">
<event type="node-enter">
<action class="mypackage.SignDigitalDocument">
<document>
// Document node
</document>
<user>
// User name, maybe for adding a signature label
</user>
<signature>
// Digital signature.........
</signature>
</action
</event>
</node>
Within the custom Java class you can read the entries and do e.g. a FileInputStream and get the document. Just look at Content Transformers Here you should have enough info to code your own tranformer.
精彩评论