Hi Jose,
For a group you would do the following.
IResource resource = ResourceFactory.getInstance().getResource(rid, ctxt); IResourceAclManager aclmanager = aclsecurityManager.getAclManager(); IResourceAcl racl = aclmanager.createAcl(resource); IUMPrincipal everyone = WPUMFactory.getGroupFactory().getGroup("Everyone"); racl.addEntry(aclmanager.createAclEntry(everyone, false, aclmanager.getPermission(IAclPermission.ACL_PERMISSION_READ), 0));
For a user you would do the following.
IResource resource = ResourceFactory.getInstance().getResource(rid, ctxt); IResourceAclManager aclmanager = aclsecurityManager.getAclManager(); IResourceAcl racl = aclmanager.createAcl(resource); com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(request.getUser()); racl.addEntry(aclmanager.createAclEntry(user, false, aclmanager.getPermission(IAclPermission.ACL_PERMISSION_READ), 0));
@Pankaj:
Did you maintain the web dynpro references? If not, this may help: select your wd project folder, and got to properties. Select Web Dynpro References and then Tab Sharing references. Add PORTAL:sap.com/com.sap.km.application.
Best regards
Iris
Add a comment