cancel
Showing results for 
Search instead for 
Did you mean: 

Custom repository structure

gilles
Champ in-the-making
Champ in-the-making
Hi, I'm trying to set up my own space hierarchy. for example:
Client contains Orders . Order contains items.
I want to avoid adding something else in this structure, trough the WI or through the API.
What are the solutions?
Can I create new child-associations and remove/override the cm:contains?
Should I code some integrity rules? Where?
Thanks.
Gilles
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
To stop new sub-folders being created / modified, you can use permissions to lock down what users can and can't do. Have a look at http://wiki.alfresco.com/wiki/Permissions_and_Roles_Configuration#Default_Permissions.

gilles
Champ in-the-making
Champ in-the-making
Thanks for responding, but my goal is to keep the folder type structure.
I want to avoid having a cm:folder being created inside my my:client space.
My my:client spaces must only contains mySmiley Surprisedrder sub-spaces, and my mySmiley Surprisedrder spaces must only contains my:item types.
Any clue?

stevewickii
Champ in-the-making
Champ in-the-making
You might try defining your custom types my:client, mySmiley Surprisedrder, and my:item to extend the cm:folder type, and override the cm:contains child-relationship in each, so that the target only allows the appropriate type.  For example, the target type for cm:contains in my:client would be set to cmSmiley Surprisedrder, and the target type for cm:contains in mySmiley Surprisedrder would be set to my:item.

What you are trying to do is a lot like the Forum content model in Alfresco.  Open up your alfresco.war and look at the forumModel.xml, web-client-config-wizards.xml and web-client-config-forum-actions.xml.  These might help.

Let me know if this works.