From portal-commits at lists.jboss.org Tue Jan 30 18:55:58 2007 Content-Type: multipart/mixed; boundary="===============0817123182208254494==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r6131 - docs/trunk/referenceGuide/en/modules. Date: Tue, 30 Jan 2007 18:55:58 -0500 Message-ID: --===============0817123182208254494== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2007-01-30 18:55:58 -0500 (Tue, 30 Jan 2007) New Revision: 6131 Modified: docs/trunk/referenceGuide/en/modules/identity.xml Log: updated the identity doc wording Modified: docs/trunk/referenceGuide/en/modules/identity.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- docs/trunk/referenceGuide/en/modules/identity.xml 2007-01-30 23:25:48 U= TC (rev 6130) +++ docs/trunk/referenceGuide/en/modules/identity.xml 2007-01-30 23:55:58 U= TC (rev 6131) @@ -10,19 +10,17 @@ This chapter addresses identity management in JBoss Portal 2.6 Identity management API - In JBoss Portal currently there are 4 identity modules and 2= identity reletad objects. The goal about - having such wide API is to - enable flexible implementations related to different underlayi= ng technologies like RDBS or LDAP. With such - data storage mechanisms things like - User/Role relationship are defined in slightly different way. = Another thing is User Profile where - information about user can be grabbed from database - column or LDAP entry or even mixed. + Since JBoss Portal 2.6 there are 4 identity services and 2 i= dentity related interfaces. The goal of + having such a fine grained API is to enable flexible implement= ations based on different + identity storage like relational databases or LDAP servers. Th= e Membership service takes care of managing the relationship + between user objects and role objects. The User Profile servic= e is responsible for managing the profile of a user, + it has database and LDAP implementations as well as a mode tha= t combines data from both. - User - interface which exposes such operations on User object: + The org.jboss.portal.identity.= User + interface represents a user and exposes the following = operations: - Important Note!!! Proper usage of getId() method is: + Important Note! The proper usage of getId() method is: - This is because of that ID depends on User implementat= ion. It'll probably be String in LDAP and Long - in Hibernate but it can be anything else... - + This is because the ID value depends on the User imple= mentation. It'll probably be String object with the LDAP + implementation and a Long object with the database imp= lementation but it could be something else + if one has chosen to make its own implementation. - Role - interface which exposes such operations on - User - object: + The org.jboss.portal.identity.= Role interface represents a Role + and exposes the following operations: - UserModule - interface which exposes operations for users management + The org.jboss.portal.identity.= UserModule + interface exposes operations for users management: - RoleModule - interface which exposes operations for roles management + The org.jboss.portal.identity.= RoleModule + interface exposes operations for roles management: - MembershipModule - interface which exposes operations for obtaining or de= fining relationship beetween users and roles. - The role of this module is to - decouple relationship information from user and roles.= Whith different implementations definition of - such relationship can be specified on different sides. - With Relational DB it's quite simple, but in LDAP ther= e are several ways to store such information. - Role of this module is to bring flexibility - in defining contract beetween user and role. + The MembershipModule + interface exposes operations for obtaining or managing= relationships beetween users and roles. + The role of this service is to decouple relationship i= nformation from user and roles. + Indeed while user role relationship is pretty straight= forward with a relational database (using + a many to many relationship with an intermediary table= ), with an LDAP server there a different + ways to define relationships between users and roles. - UserProfileModule - interface which exposes operations to access informati= ons stored in User profile. + The UserProfileModule + interface exposes operations to access and manage info= rmations stored in User profile: - UserProfileModule?.getProperty() method returns Object. + UserProfileModule.getProperty() method returns an Obje= ct. In most cases with DB backend it will always be String= object. But normally you should check what object will be retreived using getProfileInfo() method. - ProfileInfo - interface which can be obtained using + The ProfileInfo + interface can be obtained using the UserProfileModule - and exposes information about User profile properties = that are accessible: + and exposes meta information of a profile: = - Way to access identity modules + Ways to access identity modules The best way to access identity modules is by using JNDI: @@ -295,18 +293,18 @@ = - Another way to do this is, if you are fimiliar with JBoss = Mikrokernel architecture is by obtaining - IdentityServiceController - mbean. You may want to inject it into your mbean like this: + Another way to do this is, if you are fimiliar with JBoss = Mikrokernel architecture is to + get the IdentityServiceController= + mbean. You may want to inject it into your services like t= his: portal:service=3DModule,type=3DIdent= ityServiceController]]> - or simply obtain in your code using - portal:service=3DModule,type=3DIde= ntityServiceController - name. Please refer to JBoss Application Server documentati= on if you want to learn more - about MBeans. Once you obtained the object you can use it: + or simply obtain in your code by doing a lookup using + the portal:service=3DModule,type= =3DIdentityServiceController + name. Please refer to the JBoss Application Server documen= tation if you want to learn more + about service MBeans. Once you obtained the object you can= use it: = @@ -328,90 +326,81 @@ and Role interfaces some API usages changed. Here are the most impo= rtant changes you will need to aply to your - code - while migrating your aplication to 2.6: + code while migrating your aplication to 2.6: - User - interface + For the User in= terface: + // Instead of: user.getLastVisitDate() + userProfileModule.getProperty(user, User.INFO_USER_LAS= T_LOGIN_DATE);]]> - RoleModule - interface + The RoleModule = interface: + // Instead of + // RoleModule.getRoles(User user) throws IdentityExcep= tion; + membershipModule.getRoles(User user)]]> - How to enable LDAP in JBoss Portal - Here are just few simple steps you'll need to enable LDAP su= pport in JBoss Portal. For additional - information you need to study more about - configuration of identity and specific implementations of iden= tity modules - - There are two ways to achive this goal: + How to enable LDAP usage in JBoss Portal + We'll describe here the simple steps that you'll need to ena= ble LDAP support in JBoss Portal. + For additional information you need to study more about configurat= ion of identity and specific implementations of identity modules + There are two ways to achieve this: In --===============0817123182208254494==--