Skip to Content
author's profile photo Former Member
Former Member

How to get property of a KM folder?

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?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2005 at 11:09 AM

    You may have to use different services to get these properties. Use Statemanagementservice to check weather approval process is enabled or not. You may have look at the web log at Automating Document Approval Process through Custom Java iView to get the reference to the service. you can use the method sResource.getUtils().isStatemanagementEnabled()


    Add a comment
    10|10000 characters needed characters exceeded

    • 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 KM ACL - permissions for an KM directory 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


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.