Folders as templates

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
soltanivahid
Senior Boarder
Senior Boarder
Posts: 50
Joined: Thu Jan 04, 2018 8:22 pm

Folders as templates

Post by soltanivahid » Sat Dec 01, 2018 7:35 pm

Hello
Can i have some folder with permission as template?

jllort
Moderator
Moderator
Posts: 10373
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Folders as templates

Post by jllort » Sun Dec 02, 2018 6:44 pm

This feature is currently only implemented in the professional edition. Now you can apply copy, but will not clone the security as you expected. Should make some modifications in the source code for it. If you want to work on it I can guide about what methods should be modified.

soltanivahid
Senior Boarder
Senior Boarder
Posts: 50
Joined: Thu Jan 04, 2018 8:22 pm

Re: Folders as templates

Post by soltanivahid » Mon Dec 03, 2018 6:35 pm

Yes ,please help me!
Thank you

jllort
Moderator
Moderator
Posts: 10373
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Folders as templates

Post by jllort » Thu Dec 06, 2018 11:39 am

Should start from ExtendedAttributes.java class adding a new boolean variable named security.
follow with DbFolderModule.java with the method extendedCopy(String token, String fldId, String dstId, ExtendedAttributes extAttr)
from here the BaseFolderModule.copy where should be cloned the security values ( here must also do not forget modify BaseDocumentModule.copy and BaseMailModule.copy methods)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests