on 01-17-2005 10:52 AM
Dear all,
When I enabled the "versioning" and "approval" of a folder in KM repository, I can see the word "Versioning Enabled" and "Approval Enabled" at the detail page of a folder. However, I can't found any property or method can get this information from code. Do any one know how to get these informations?
Thanks
Sam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam, hi Arul,
it's even easier:
FolderSettings folderSettings = new FolderSettings((ICollection) resource);
boolean isVersioningActivated = folderSettings.isEnhanced();
boolean isApprovalProcessActivated = folderSettings.isStatemanagementEnabled();
with folderSettings from com.sapportals.wcm.control.util.FolderSettings.
Hope it helps
Detlev
Hi Sam,
> Does the class "FolderSettings" exist in EP5?
The easiest way is to look inside
If you would have done, you would have found it within knowledgemanagement/lib/wcmcontrol.jar; complete package is com/sapportals/wcm/control/util/FolderSettings.class.
> Since I can't found it in the javadoc of PDK.
In SAP EP Development, the golden rule sounds: "The less something is documented, the more helpful it will be."
> how can I check the access right of user
> "everyone" is removed from a folder?
For ACL introduction, see and referenced thread.
ACLs can exist on a resource or can be inherited (aclMan.getInheritedAcl(resource)!
If someone has certain rights you can check by acl.checkPermission(...).
Hope it helps
Detlev
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.