03-02-2009 01:29 AM
03-02-2009 08:30 AM
03-03-2009 01:13 AM
03-03-2009 06:52 AM
Hi Derek,
Thanks for your reply.
The scenario is as follows:
A user uploads a document in "Drafts" workspace , digitally signs it and sends it to the "Approver" workspace for approval.
Approver reviews the document sent , again digitally signs it as his approval and Publishes it into the "Publish" workspace.
When i am looking into the functionality of alfresco i cudnt find any direct support for embedding digital signatures in a document (of any type) thorugh Alfresco.
Also i want that once a document is converted into a PDF (using rules from ALfresco) the document should contain digital signatures present in the document before conversion.
Kindly give me your email id so that i can contact you directly….
Thanks..
04-30-2009 10:35 AM
For each pdf, Alfresco shows a new icon "Sign". Clicking on that icon, a dialog appears showing if the document has been signed. In any case, if a token (eg, smartcard, usb) is availaible, the certificate details are displayed and the user can enters his pin and sign the document. Of course, this is the result of a "not so simple" communication from the client, where the signature has created, and the server where the document is stored, the hash is calculated and finally the signature is saved within the document.
04-30-2009 11:48 AM
For each pdf, Alfresco shows a new icon "Sign". Clicking on that icon, a dialog appears showing if the document has been signed. In any case, if a token (eg, smartcard, usb) is availaible, the certificate details are displayed and the user can enters his pin and sign the document. Of course, this is the result of a "not so simple" communication from the client, where the signature has created, and the server where the document is stored, the hash is calculated and finally the signature is saved within the document.
Hello,
How did you get to show the icon only for pdf files? I found this, but I don't know the rigth value for the condition
<config evaluator="node-type" condition="wca:webfolder">
<actions>
<!– Override actions for WCM Website space type in the Browse screen –>
<action-group id="space_browse">
<show-link>false</show-link>
<!– hide the cut and copy operations for website space –>
<action idref="cut_node" hide="true" />
<action idref="copy_node" hide="true" />
</action-group>
</actions>
</config>
thanks in advanced
05-04-2009 06:40 AM
05-04-2009 07:59 AM
but how can I know the content-type is pdf from the java code??
public boolean evaluate(Node node) {
try {
String mimeType = getMimeType(node.getProperties().get("cm:content").toString());
return (mimeType.equalsIgnoreCase("application/pdf") && !node.isLocked());
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
private String getMimeType(String s) {
int p1 = s.indexOf("mimetype=") + 9;
int p2 = s.indexOf("|", p1);
if (p2 != -1)
return s.substring(p1, p2);
else
return s.substring(p1);
}
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.