cancel
Showing results for 
Search instead for 
Did you mean: 

Folder 'Watchdog'?

gerhardk
Champ in-the-making
Champ in-the-making
Hello!

My problem: I want do create some sort of, call it "watchdog".
In my content model i have a special Type("specialFolder") inherited from cm:folder and another Type("specialType") inherited from cm:content.
Now i want to create a solution, that allows only the "specialType" to be stored into "specialFolder", and no other types.
I tried to do this by creating a behaviour which is bound to "specialFolder", but it seems, that behaviours only react to the active type.
Binding cm_content to the onCreateNode-Behaviour is not that good idea - i already tried Smiley Happy

What I want to do in simple: Watch specialFolder about incoming content and reject if type is not "specialType", otherwise store it.

[Edit]  this should be done in Java-Code - and not with rules in Share[/Edit]
Has anybody an Idea about it?
Thank you for your help!

BR Gerhard
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
Well It would be lot easier if you use the rule.
Or else you need to create the scheduler which keep on running and checking each time in all the specialized type folder for all the contents residing under that and can filter out the rest of the contents.


// get all the specialized type folder
//iterate through each
// get all the documents inside specific folder
//remove all the non specialized content from the folder