Hi, Peter, hi, all! 

Thanks a lot!

Yours sincerely,
Andrey.

> -----Original Message-----
> From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 26, 2004 3:30 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to add/remove a user - role relationship
> Importance: Low
> 
> > -----Original Message-----
> > From: Andrey Shulinsky [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 26, 2004 01:29
> > To: 'Slide Users Mailing List'
> > Subject: How to add/remove a user - role relationship
> > 
> > 
> > Hi, all!
> > 
> > I've started to use Slide API in my app and got a couple of 
> questions. 
> > After looking into this mailing list and Slide code I've made some 
> > assumptions, if somebody could confirm/contradict/complete them, it 
> > would be really appreciated.
> > 
> > Use case: one wants to add/remove a user-role relationship
> > 1) This can't be done directly via the Slide API. Security 
> interface 
> > can only check whether or not the current user has the 
> specified role, 
> > enumerate all roles but can't assign a role to a user. And 
> I haven't 
> > found anything in the other classes as well. Have I missed anything?
> 
> That's right. You haven't missed anything.
> 
> > 2) Two properties of the principal resources can be used to 
> implement 
> > this
> > relationship: DAV:group-member-set and DAV:group-membership. 
> > But it looks
> > like only one of them - DAV:group-member-set - is actually used in 
> > methods getGroupMembership (ACLSecurityImpl class) matchPrincipal 
> > (SecurityImpl class) that provide the information about 
> actual group 
> > membership.
> > So to add/remove a user-role relationship I should change the 
> > group-membership property value of a corresponding Role Node, 
> > shouldn't I?
> 
> Right.
> 
> > 3) The best way to do it is to use an XMLValue object created from 
> > this property value, right?
> 
> Right.
> 
> > Thanks.
> > 
> > Sincerely yours,
> > Andrey.
> 
> I must admit that maintaining the user/role relationship 
> isn't very sexy when using the Slide API. It is a TODO to add 
> convenience methods here.
> 
> Regards,
> Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to