[Yanel-dev] Loading of users and groups as XML

Michael Wechner michael.wechner at wyona.com
Thu Feb 11 23:14:04 CET 2010


Bruno von Rotz wrote:
> Would the existing policyManagerResource then call/use the new 
> IdentityManagerResource?

yes
> And what is the impact on the specific project time line?

I would hope that it doesn't have an effect in the short term and in the 
long term it will make
things easier, but to be honest I didn't consider time constraints yet, 
but only considered it from
an architecture PoV.

Cheers

Michi
> Bruno
> Michael Wechner schrieb:
>> Hi
>>
>> The PolicyManager resource
>>
>> src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java 
>>
>>
>> is loading users and groups via the following query string
>>
>> /foo/bar?yanel.policy=update&get=identities
>>
>> which then is handled by the YanelServlet#doAccessPolicyRequest()
>>
>> first, but then forwarded again to the PolicyManager resource
>>
>> if (getXML != null && getXML.equals("identities")) {
>> sb.append(getIdentitiesAndRightsAsXML(getRealm().getIdentityManager(), 
>> getRealm().getPolicyManager(), get
>> RequestedLanguage()));
>>
>> Now I would like to re-use this for editing users and groups, but it 
>> seems to me that the main purpose of the policy manager
>> resource is to manage policies and not users and groups and hence I 
>> think we should re-factor this by introducing a IdentityManagerResource.
>>
>> WDYT?
>>
>> Thanks
>>
>> Michi
>>
>>
>
>



More information about the Yanel-development mailing list