Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
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 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.
1 Comment