[Design of JBoss ESB] - Re: FtpClientUtil refactoring
by kurt.stam@jboss.com
Bruno, I think it makes sense to add a property to the PropertyManager configuration, which defines which implementation should be returned in the factory. All the other configuration should be added to the deployment-properties.xml, which I think is pretty much what you are going for. I can help you out with when it's integration time.
Also by that time we need to refactor it to use the new Courier on the trunk. It supports setting up transports both ways (down and up). Take a look at the JmsCourier for instance. I think the FtpUploader and FtpDownloader fit right in there as an FtpCourier. But this is at a higher level then what you are working on right now, so let's not worry about that just yet.
So basically I'm saying nothing but keep up the good work :).
--Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985021#3985021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985021
19 years, 5 months
[Design of JBoss Portal] - Re: LDAP Support expectations
by bdaw
Sorry for not responding for so long.
| For now, can you please give me an understanding of the MembershipModule?
|
| - where is, e.g., getName() ?
| - I can see: assignRoles(User user, Set roles)
| does this mean, that all roles are only assigned to the user?
|
The whole idea of MembershipModule interface is to decouple Role and User. The reason is that in LDAP the relationship beetween them can be defined in several different ways - it's not so straight forward like in DB. So the main difference is NOT to have Role.getUsers() method. So Role and RoleModule know nothing about User and vice versa. And the functionallity is moved to MembershipModule to be able to resolve different ways of relationships just by swaping this module.
I don't understand what .getName() method are you looking for there?
anonymous wrote :
| Let's imagine a "dynamic role assignment" feature with:
| - assignRoles(Group group, Set roles), which adds roles to a group
| - assignUser(Group group, Set users), which adds members to a group
|
|
I was discussing your ideas with julien. There are few things in this subject:
1) Roadmap and features for 2.6 are already defined and we don't want to change them. The things you propose can be discussed to be placed in 3.0 roadmap - there is a plan to rethink and redesign this part already. Adding groups in the shape you descrived will need some changes in management portlets and other work so it's not an option at the moment.
2) Still, you can implement this functionality and we can integrate it in portal codebase as OPTIONAL. So simply it won't be enabled by default, but it can be used by changing portal configuration. If you agreed on this your code will need to meet few conditions:
- it must be written in non intrusive way for what is in portal codebase. So it can't require changes to portal classes (or at least not much).
- if you use DB your code can't breake the current schema. So you will probably need to add separate hibernate configuration with own tables - not a big effort as currently identity, portal objects and security schemas are also separated.
I think it can be easily done. You can just add Group object and GroupModule that manage the relationship with User and Role. We can advise you how to plug into hibernate and etc in non intrusive way.
3) It may be possible to achive what you want just by providing implementation of LoginModule. Look at org.jboss.portal.identity.auth.IdentityLoginModule. It's portal implementation that plugs into JAAS in AS.
So it could simply discover the group membership of the authenticating user and bind the relation with portal roles.
How do you feal about it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984994#3984994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984994
19 years, 5 months