on 04-07-2006 9:39 PM
I've developed a repository service that dynamically resets the permissions of a document created in KM based on the creator of the document. I'd also like to base the new permissions on who is listed as approvers in the approval workflow of the folder. What code would I use to retrieve a list of all approvers of the KM folder the document's created in?
Thanks in advance for any help!
- Fallon
Hi Fallon,
I can't provide an actual code sample, but I have a direction.
<b>IStatemanagementUtilsResource</b>:
<b>IStepList</b>:
I didn't find how to get an actual instance of one of them, though.
Perhaps decompiling the jar files mentioned in the top of those pages can offer some more insight.
Hope that helps,
Yoav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yoav
Thanks so much for your help! Thanks to the hints you provided, I was able to discover how to create the IStepList object:
IRepositoryServiceFactory repServiceFactory = ResourceFactory.getInstance().getServiceFactory();
IStatemanagementManager statemanagementService = (IStatemanagementManager) repServiceFactory.getRepositoryService(myResource, "StatemanagementRepositoryService");
IStepList stepList = statemanagementService.getStatemanagementResource(myResource).getUtils().readApproverList();
The stepList is always empty, but that seems to be related to a different issue I'm running into. Will be posting a new topic for that.
Thanks again for your help,
Fallon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.