@SuppressWarnings("deprecation")
public void save(OrganizationService service, String user, boolean isnewUser) throws Exception
{
user_ = user;
UserProfileHandler hanlder = service.getUserProfileHandler();
UserProfile userProfile = hanlder.findUserProfileByName(user_);
if (userProfile == null)
{
userProfile = hanlder.createUserProfileInstance();
userProfile.setUserName(user_);
}
for (UIComponent set : getChildren())
{
UIFormInputSet inputSet = (UIFormInputSet)set;
for (UIComponent uiComp : inputSet.getChildren())
{
UIFormStringInput uiInput = (UIFormStringInput)uiComp;
// if(uiInput.getValue() == null || uiInput.getValue().length() < 1)
// continue;
userProfile.getUserInfoMap().put(uiInput.getName(), uiInput.getValue());
}
}
hanlder.saveUserProfile(userProfile, true);
Object[] args = {"UserProfile", user_};
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
UIApplication uiApp = context.getUIApplication();
if (isnewUser)