Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Saturday, December 4, 2010

automatic document classification with Alfresco Part 2

In the first part of this article, i explained how you can use Lucene to query a document (Word, PDF etc...), and find matches for specific keywords, which was necessary for us in order to automatically identify the document's category based on its content.

We've chosen a simple approach to demonstrate the automatic classification extension : if a document contains the name of a category, then it belongs to it, of course we can use other approaches like assigning multiple keywords to a category, example : if a document contains one of the following words "java, .Net, c#..." then assign it to category "Software development", it can easily be implemented once you finish reading and understanding this article, and of course how you implement it depends on your specific needs, you might need some more advanced classification algorithm.

Tuesday, November 30, 2010

Alfresco automatic document classification : Part 1

Alfresco is capable of handling multiple classifications, or hierarchies of classification, it's a very useful feature, and can make your life a lot easier when looking for documents, especially the ones with no indexed content like pictures, scanned documents etc...
Classifying a document in Alfresco can be as easy as few clicks on the browser, however it can be very time-consuming process if you are uploading many documents every day, or if you are migrating to Alfresco : Imagine having to manually classify a few thousands of documents!
If you are still classifying documents manually, analyzing their content, and sorting them into categories, you might be interested in finding out how you can extend Alfresco to automatically classify your documents for you.

Friday, November 19, 2010

smart Card tutorial : Part 2

In my previous article smart Card tutorial : Part 1, i explained how you can use the Cryptographic Token Interface Standard PKCS#11 in order to access your smart card or USB Token, and perform some simple operations like listing the connected tokens, and displaying each device's informations (Serial Number, Vendor etc...).
This second part will cover some advanced usage of PKCS#11 like :
  • Generating on-card RSA Keypair.
  • Storing certificates and objects.

Java JNDI Tutoriel : Ldap query

Our topic of discussion today will be JNDI (Java Naming and Directory Interface), which is a standard way to query directories for different kind of available informations.
We will see how you can use Java to interact with OpenLdap or any other directory (like Apache OpenDS etc...).
In order to connect to an ldap directory server we will need to know :
  • The server url (in our case localhost)
  • The authentication used : Simple, Digest etc...
  • the base DN, or the root element.
  • Bind DN, the user we will connect to the directory as.
  • Bind password.