com.sun.cc.platform.user
Class UserServiceClientImpl

java.lang.Object
  extended bycom.sun.cc.platform.user.UserServiceClientImpl
All Implemented Interfaces:
UserServiceClient

public final class UserServiceClientImpl
extends Object
implements UserServiceClient


Field Summary
static String LEGAL_URN
           
static String PROFILE_URN
           
 
Method Summary
 boolean isEndpointCompatible()
           
 String registerUser(String username, String password, String firstName, String lastName, String companyName, String address1, String address2, String address3, String city, String state, String postalCode, String country, String phone, String email, String preferredLanguage, String jobTitle, boolean maySunContact, boolean touAccepted, boolean licenseAccepted, String application)
          registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.
 String registerUser(String username, String password, String firstName, String lastName, String companyName, String address1, String address2, String address3, String city, String state, String postalCode, String country, String phone, String email, String preferredLanguage, String jobTitle, boolean maySunContact, String touAccepted, String touVersion, String touCountryCode, String touLanguageCode, String application)
          registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.
 String registerUser(String username, String password, String firstName, String lastName, String companyName, String address1, String address2, String address3, String city, String state, String postalCode, String country, String phone, String email, String preferredLanguage, String jobTitle, boolean maySunContact, String touAccepted, String touVersion, String touCountryCode, String touLanguageCode, String licenseAccepted, String licenseVersion, String licenseCountryCode, String licenseLanguageCode, String application)
          registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.
 void setPrintStream(PrintStream thePrintStream)
           
 String validate(String username, String password)
          validates the given username and password with the UserInformationService.
 String validateAndAccept(String username, String password, boolean touAcceptedAndBL, String application)
          registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.
 String validateAndAccept(String username, String password, String touAccepted, String touVersion, String touLanguageCode, String touCountryCode, String licenseAccepted, String licenseVersion, String licenseLanguageCode, String licenseCountryCode, String application)
          registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE_URN

public static final String PROFILE_URN
See Also:
Constant Field Values

LEGAL_URN

public static final String LEGAL_URN
See Also:
Constant Field Values
Method Detail

isEndpointCompatible

public boolean isEndpointCompatible()

validate

public String validate(String username,
                       String password)
                throws RemoteException
Description copied from interface: UserServiceClient
validates the given username and password with the UserInformationService.

Specified by:
validate in interface UserServiceClient
Parameters:
username - the identifier of the user
password - a shared secret
Returns:
an SSO token associated with the given user null if the given username and password are incorrect.
Throws:
RemoteException - if there is an error connecting to the remote service

registerUser

public String registerUser(String username,
                           String password,
                           String firstName,
                           String lastName,
                           String companyName,
                           String address1,
                           String address2,
                           String address3,
                           String city,
                           String state,
                           String postalCode,
                           String country,
                           String phone,
                           String email,
                           String preferredLanguage,
                           String jobTitle,
                           boolean maySunContact,
                           String touAccepted,
                           String touVersion,
                           String touCountryCode,
                           String touLanguageCode,
                           String application)
                    throws RemoteException,
                           DuplicateAccountException
Description copied from interface: UserServiceClient
registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.

Specified by:
registerUser in interface UserServiceClient
Parameters:
username - the identifier of the user
password - a shared secret
companyName - the name of the user's company
address1 - the first line of the user's address
address2 - the second line of the user's address (currently ignored)
address3 - the third line of the user's address (currently ignored)
city - the city in which the user lives
state - the state or province identifier in which the city is located
postalCode - a postal identifier for the user's address
country - the name of the country encompassing the state or province
phone - a telephone number that could be used to reach the user for sales calls
email - an email address which sales solicitations could be sent to
preferredLanguage - the user's preferredLanguage
jobTitle - the job title
maySunContact - true if sun may contact this user (ignored)
touAccepted - the name of the terms of use the user accepted (for the SMI Terms Of Use use SMI_TOU)
touVersion - the version of the terms of use the user accepted (for the SMI Terms Of Use use 2.0)
touCountryCode - the language code identifying the language the terms of use was presented in (e.g., 'en')
touLanguageCode - the country code identifying a variant of the language of the displayed terms of use. This is also used to identify the country denoting the legal requirements of the terms of use. (e.g., 'US')
application - the Name (or maybe UUID) of the application This needs more clearification in the morning.
Returns:
an SSO token associated with the given user or null if the account could not be created.
Throws:
RemoteException - if there is an error connecting to the remote service
DuplicateAccountException - if the given username has already been used.

registerUser

public String registerUser(String username,
                           String password,
                           String firstName,
                           String lastName,
                           String companyName,
                           String address1,
                           String address2,
                           String address3,
                           String city,
                           String state,
                           String postalCode,
                           String country,
                           String phone,
                           String email,
                           String preferredLanguage,
                           String jobTitle,
                           boolean maySunContact,
                           String touAccepted,
                           String touVersion,
                           String touCountryCode,
                           String touLanguageCode,
                           String licenseAccepted,
                           String licenseVersion,
                           String licenseCountryCode,
                           String licenseLanguageCode,
                           String application)
                    throws RemoteException,
                           DuplicateAccountException
Description copied from interface: UserServiceClient
registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.

Specified by:
registerUser in interface UserServiceClient
Parameters:
username - the identifier of the user
password - a shared secret
companyName - the name of the user's company
address1 - the first line of the user's address
address2 - the second line of the user's address (currently ignored)
address3 - the third line of the user's address (currently ignored)
city - the city in which the user lives
state - the state or province identifier in which the city is located
postalCode - a postal identifier for the user's address
country - the name of the country encompassing the state or province
phone - a telephone number that could be used to reach the user for sales calls
email - an email address which sales solicitations could be sent to
preferredLanguage - the user's preferredLanguage
jobTitle - the job title
maySunContact - true if sun may contact this user (ignored)
touVersion - the version of the terms of use the user accepted (for the SMI Terms Of Use use 2.0)
touCountryCode - the language code identifying the language the terms of use was presented in (e.g., 'en')
touLanguageCode - the country code identifying a variant of the language of the displayed terms of use. This is also used to identify the country denoting the legal requirements of the terms of use. (e.g., 'US')
licenseAccepted - the name of the license the user accepted (for the SMI Terms Of Use use SMI_TOU)
licenseVersion - the version of the license the user accepted (for the SMI Terms Of Use use 2.0)
licenseCountryCode - the language code identifying the language the license was presented in (e.g., 'en')
licenseLanguageCode - the country code identifying a variant of the language of the displayed license. This is also used to identify the country denoting the legal requirements of the license. (e.g., 'US')
application - the Name (or maybe UUID) of the application This needs more clearification in the morning.
Returns:
an SSO token associated with the given user or null if the account could not be created.
Throws:
RemoteException - if there is an error connecting to the remote service
DuplicateAccountException - if the given username has already been used.

validateAndAccept

public String validateAndAccept(String username,
                                String password,
                                String touAccepted,
                                String touVersion,
                                String touLanguageCode,
                                String touCountryCode,
                                String licenseAccepted,
                                String licenseVersion,
                                String licenseLanguageCode,
                                String licenseCountryCode,
                                String application)
                         throws RemoteException
Description copied from interface: UserServiceClient
registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.

Specified by:
validateAndAccept in interface UserServiceClient
Parameters:
username - the identifier of the user
password - a shared secret
touVersion - the version of the terms of use the user accepted (for the SMI Terms Of Use use 2.0)
touLanguageCode - the language code identifying the language the terms of use was presented in (e.g., 'en')
touCountryCode - the country code identifying a variant of the language of the displayed terms of use. This is also used to identify the country denoting the legal requirements of the terms of use. (e.g., 'US')
licenseAccepted - the name of the license the user accepted (for the SMI Terms Of Use use SMI_TOU)
licenseVersion - the version of the license the user accepted (for the SMI Terms Of Use use 2.0)
licenseLanguageCode - the language code identifying the language the license was presented in (e.g., 'en')
licenseCountryCode - the country code identifying a variant of the language of the displayed license. This is also used to identify the country denoting the legal requirements of the license. (e.g., 'US')
application - the Name (or maybe UUID) of the application This needs more clearification in the morning.
Returns:
an SSO token associated with the given user or null if the account could not be created.
Throws:
RemoteException - if there is an error connecting to the remote service

setPrintStream

public void setPrintStream(PrintStream thePrintStream)

registerUser

public String registerUser(String username,
                           String password,
                           String firstName,
                           String lastName,
                           String companyName,
                           String address1,
                           String address2,
                           String address3,
                           String city,
                           String state,
                           String postalCode,
                           String country,
                           String phone,
                           String email,
                           String preferredLanguage,
                           String jobTitle,
                           boolean maySunContact,
                           boolean touAccepted,
                           boolean licenseAccepted,
                           String application)
                    throws RemoteException,
                           DuplicateAccountException
Description copied from interface: UserServiceClient
registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.

Specified by:
registerUser in interface UserServiceClient
Parameters:
username - the identifier of the user
password - a shared secret
companyName - the name of the user's company
address1 - the first line of the user's address
address2 - the second line of the user's address (currently ignored)
address3 - the third line of the user's address (currently ignored)
city - the city in which the user lives
state - the state or province identifier in which the city is located
postalCode - a postal identifier for the user's address
country - the name of the country encompassing the state or province
phone - a telephone number that could be used to reach the user for sales calls
email - an email address which sales solicitations could be sent to
preferredLanguage - the user's preferredLanguage
jobTitle - the job title
maySunContact - true if sun may contact this user (ignored)
touAccepted - true if the user accepted the SMI Terms Of Use version 2.0 in US_english
licenseAccepted - true if the user accepted the SMI Binary License agreement version 1.0 in US_english
application - the Name (or maybe UUID) of the application This needs more clearification in the morning.
Returns:
an SSO token associated with the given user or null if the account could not be created.
Throws:
DuplicateAccountException - if the given username has already been used.
RemoteException - if there is an error connecting to the remote service

validateAndAccept

public String validateAndAccept(String username,
                                String password,
                                boolean touAcceptedAndBL,
                                String application)
                         throws RemoteException
Description copied from interface: UserServiceClient
registers a user's profile information and thier associated legal agreement acceptence with the UserInformationService.

Specified by:
validateAndAccept in interface UserServiceClient
Parameters:
username - the identifier of the user
password - a shared secret
application - the Name (or maybe UUID) of the application This needs more clearification in the morning.
Returns:
an SSO token associated with the given user or null if the account could not be created.
Throws:
RemoteException - if there is an error connecting to the remote service