on 2005 May 06 1:36 PM
does anyone know a sql-statement to find out if versioning and/or approval for a folder is activated.
i checked the tables in database, but did not find a matching entry.
thanks!
matthias
hello julian!
if you could provide me more details about a scripting solution, that would help me a lot!
thanks
matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello!
i agree that it would be better to use km-api in general. in this case i would like to get the information only once after migration of content and i do not have any development environment installed. is there a possibility via sql or do i have to do it via java?
thanks!
matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
<i>Note that table layouts aren't part of the API and are subject to change without notice.</i>
To check whether the KM's "folder versioning" is activated, try the following code:
ICollection coll; // collection to check
IVersionController vc = (IVersionController)coll.as(IVersionController.class);
if (vc != null) {
System.out.println("enhanced versioning: " + vc.isEnabled());
}
Hope this helps,
Julian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
a general advise: Do not access the WCM DB directly. It is a black box, subject to change anytime without notice by SAP through patches, and almost everything is accessible via Java KM API.
This also holds for the information you are asking for:
FolderSettings folderSettings = new FolderSettings(coll);
boolean versioned = folderSettings.isEnhanced().booleanValue();
boolean appr = folderSettings.isStatemanagementEnabled().booleanValue();
Hope it helps
Detlev
Message was edited by: Detlev Beutner
Julian has been faster. Also, FolderSettings istn't public, as far as I know, but if you care, have a look at it's implementation.
User | Count |
---|---|
73 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.