cancel
Showing results for 
Search instead for 
Did you mean: 

Category property

hsp
Champ in-the-making
Champ in-the-making
Is the category a property that is configurable on the repository directly?
I mean, If I want to develop directly using the jackrabbit api and need to control the categorization of the contents (each category has a timelife), is it possible to configure this property without needing to control this metadata with my own database?
How does Alfresco separate this property from the others existing for the contents?

This information will be very usefull to me, thanks in advance.

Helio
2 REPLIES 2

hsp
Champ in-the-making
Champ in-the-making
Well, any comments?

Is the category property part of node property??
How is it managed separate?

davidc
Star Contributor
Star Contributor
Hi,

The categories assigned to a document are stored in a property on the node that represents the document.  This property is multi-valued.

You can see the definition of this property by taking a look at contentModel.xml (in /alfresco/model).  Search for the aspect cm:generalclassifiable and you'll see it defines the property cm:categories.  We support categorisation by adding this aspect to any node that requires it.

In your question, I assume you're referring to the JCR API, not jackrabbit (that's a completely different project - Apache).  You can get and set the values of this property via any of Alfresco's APIs.  The values are node references to category objects held in the Repository.

If you classify a document in the Alfresco Web Client and then take a look at the document via the Node Browser (from the Administration Console), you will see the category property and its values for an example.