cancel
Showing results for 
Search instead for 
Did you mean: 

Can we create custom attributes, without server restart

prateekgoyal
Champ in-the-making
Champ in-the-making
Hello All,
I want to know that is it possible to create custom attributes in alfresco without restarting the alfresco server.
If yes then how can we do that.

Thanks.
20 REPLIES 20

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I think you can upload custom model with aspects and aplay them to the nodes.

prateekgoyal
Champ in-the-making
Champ in-the-making
Can you please elaborate on this.
Suppose i have a custom model.xml file and have created an entry of it in web-client-config-custom.xml and context.xml file.
Now how can i make these attributes(in custom model.xml) visible in Alfresco without any server restart.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
this is really easy all you need is hire http://wiki.alfresco.com/wiki/Step-By-Step:_Creating_A_Custom_Model

hope it helps.

zaizi
Champ in-the-making
Champ in-the-making
In Alfresco Enterprise you can restart sub systems without restarting the server. If you are using Alfresco Enterprise see http://wiki.alfresco.com/wiki/JMX.

Ainga

prateekgoyal
Champ in-the-making
Champ in-the-making
Hi @  savic,

I have gone through the link you have mentioned.
In the steps to create a new custom model, i followed till the 5 step i.e. make an entry of new content moedl in web client xml file.
But did'nt got the idea about the 6&7 steps.
Can you please expain them.

Thanks,

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
You should first tell me what are you going to do and why you need it.

send me what you have.

I will probably send you the rest .

this approach is faster then me explaining what is on wiki if it has no connection with what you need.

prateekgoyal
Champ in-the-making
Champ in-the-making
hi,
Actually i have created a JSF based application to create the custom document attributes(metadata) in alfresco.
This utility creates a new model.xml and context.xml file and modifies the existing web-client-config-custom.xml file in "alfresco\tomcat\shared\classes\alfresco\extension" folder.
But to make the custom attributes visible in alfresco, i need to restart my alfresco server every time.
So is their any way to make them appear in alfresco without restarting the server.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
as you saw in the wiki you can upload model( with aspects or other) into alfresco , create your application that way to modify documents inside alfresco repo.

prateekgoyal
Champ in-the-making
Champ in-the-making
Hi,
I hae created the model file as given in the link "http://wiki.alfresco.com/wiki/Dynamic_Models" using web service API.
But the default value to the "Model Active" property to "No" so the model does not become active into the repository.
Can anybody tell me how to set the value to this property "YES" using API coding.

Thanks,