Skip to Content
Former Member
Dec 08, 2009 at 05:06 AM

Permission to edit and delete only users own file using form builder



I need to allow users to create documents in a KM folder, but they must be able to edit and delete their own file.

Permission to edit and delete only users own file. Other users in different department can able to view file, it should not allow to edit or delete. 'How to Implement a Single Folder - Multiple Authors Scenario'. For this, Developed my application in form builder .

Purpose of form builder requirementwise browsing file folder location pointing to portal km location. But it cannot be possible in webdynpro / pdk application.

In webdynpro, file permission can able possible below code

IUMPrincipal Everyone = WPUMFactory.getGroupFactory().getGroup("Everyone");

IUMPrincipal Creator = WPUMFactory.getUserFactory().getUser(resource.getCreatedBy());

ISecurityManager sm = resource.getRepositoryManager().getSecurityManager(resource);

if(sm != null && sm instanceof IAclSecurityManager){

IAclSecurityManager asm = (IAclSecurityManager)sm;

IResourceAclManager ram = asm.getAclManager();


IResourceAcl ra = ram.createAcl(resource);

IResourceAclEntryList rel = ra.getEntries();

IResourceAclEntryListIterator it = rel.iterator();




ra.addEntry(ram.createAclEntry(Everyone, false, ram.getPermission(IAclPermission.ACL_PERMISSION_READ), 0));

ra.addEntry(ram.createAclEntry(Creator , false, ram.getPermission(IAclPermission.ACL_PERMISSION_FULL_CONTROL), 2));


Please adivse how to achieve above functionality in form builder.


kumar. G