Hi All,
Regarding adding a user to application.
According to the present situation there is one method in
ApplicationManagementService.java to do this.
* public boolean addUserToApplication(String applicationId, String
userName, String[] roles)*
This can be used when assigning multiple roles to single user. But when it
comes to assigning multiple users a same set of roles ,it requires many
Ajax calls from the UI side.since it is cozy, we can introduce a method
*public List<NameValuePair>** addUserToApplication(String applicationId,
String[] userNames, String[] roles)*
*
*
So the* List<NameValuePair>* can contain username as the Name and status of
the operation as the value.
When inviting a user following failure scenarios may take place.
-not in the LDAP
-internal error
So depending on the cause of the error we can get a status code and inform
the user from UI that which users added successfully and which failed. and
also reason can be specified for failure.
If we are going with this,we will have to change
-Applicationmgt
-jaggery
-module level,UI
-BPEL AddUserToApplication
This is my opinion. need a feedback.
cheers!!!
--
*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware | wso2.com*
*
email: [email protected] <[email protected]>, blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 71
8373821*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev