Hi group i need your help, i am trying to create a user, but i have a
problem i need to generate automatic, but i can“t give to ma variable *
username* to take the value of this i dont know where to put it, if anyone
could help me, will me so happy, I put my code so you can see:

@WebMethod(operationName = "createUser")
    public String createUser(@WebParam(name = "username")
    String username,@WebParam(name = "givenName")
    String givenName, @WebParam(name = "familyName")
    String familyName){
        //TODO write your implementation code here:
        try
        {
            AppsForYourDomainClient apps = new
AppsForYourDomainClient(AppServiceBean.account, AppServiceBean.domain,
AppServiceBean.password);
            apps.createUser(username, givenName, familyName,
                    PasswordGenerator.getPassword(
        PasswordGenerator.MINUSCULAS+
                PasswordGenerator.MAYUSCULAS+
        PasswordGenerator.NUMEROS,10),
                IDGenerator.getId(
        IDGenerator.NUMEROS,5));
                CheckUser.userExists(apps, givenName);
         }
        catch(Exception ex){}
        String u = givenName +" "+ familyName;
        return u +"Tu usuario es:"+" "+ (username =
givenName.toLowerCase().substring(0, 1) +
familyName.toLowerCase()+IDGenerator.getId()) +" "+ "tu password es:" +" "+
PasswordGenerator.getPassword();
    }

Regards.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to