How-to create a Visual Composer user selection screen with UME web service (part I)
There are times that we need a good user selection screen in Visual Composer models. We need to select users that belong to a role, group etc; therefore we should write a web service that call UME API and get groups and users. In this blog series we will create this simple web service and visual composer model that use the web service as datasource. These examples are very simple and may be the basis of your project, and you can improve the model(for instance improve the appearance of the visual composer screens to be more effective, add some extra user management web services etc). First start with the web service. In another blog post (How-To Create Dynamic & Configurable Web Services Easily With Netweaver Development Components (Part I)) I mentioned how easy to create one. This one is another easy web service which uses UME. First start with creating to projects in NWDS one for EJB, and one for EAR to deploy the file. Create a Stateless Session Bean in EJB project which will be the base of our web service. Our web service will have two methods : One will return all the groups from portal and the other will list the users that belong to a given group. For listing the groups I created a GroupPojo java bean, for users the bean’s name is UserPojo. In order to send it as web service return parameters, these beans must be Serializable, therefore you need to implement java.io.Serializable interface. I created two methods, one take no parameters and return all the groups, and the other takes the id of the group and return the users that belong to this group.
Great job on the blog article!
I've built this web service and the associated VC application as per your guide they both behave as expected
Can you point me in the right direction for the following:
I'd like to include additional UME user properties in the list of properties retrieved
The UME properties I'm after are :
Date of Account Creation
User Account Locked
Start Date of Account Validity
End Date of Account Validity
Date of Last Failed Password Logon
Date of Last Password Change
Date of Last Locked Account
Person who Last Locked Account
Reason for Last Account Lock
Date of Last Unlocked Account
Person who Last Unlocked Account
Reason for Last Account Unlock
I've seen here
the list of available properties in the IUser interface, but don't see any method(s) to retrieve the UME properties above
Can you please direct me to how to retrieve these values?
Thanks in advance