Hi Nuwan,

Isn't $subject critical ? If not please clarify.

In social api, PersonManager#savePerson . There is a TODO for this, but not
yet fixed.

<CODE>

 public boolean savePerson(String userId, Person person) throws
SocialDataException {
        try {
            userStoreManager = getUserStoreManager();
           * if (!userStoreManager.isExistingUser(userId)) {*
*                //TODO: Creating new user*
*                userStoreManager.addUser(userId, "abcd123", new
String[]{"admin"}, null, null);*
*            }*
            userStoreManager.setUserClaimValues(userId,
retrieveClaimValues(person), null);
        } catch (UserStoreException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException("Error while saving person with
id " + userId, e);
        }
        catch (RegistryException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException("Error while saving person with
id " + userId, e);
        }
        return true;
    }

</CODE>

-- 

Subash Chaturanga
Software Engineer
WSO2 Inc. http://wso2.com

email - [email protected]
phone - 077 2225922
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to