com.liferay.portal.service.http
Class UserServiceSoap

java.lang.Object
  extended by com.liferay.portal.service.http.UserServiceSoap

public class UserServiceSoap
extends java.lang.Object

This class provides a SOAP utility for the UserServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it is difficult for SOAP to support certain types.

ServiceBuilder follows certain rules in translating the methods. For example, if the method in the service utility returns a List, that is translated to an array of UserSoap. If the method in the service utility returns a User, that is translated to a UserSoap. Methods that SOAP cannot safely wire are skipped.

The benefits of using the SOAP utility is that it is cross platform compatible. SOAP allows different languages like Java, .NET, C++, PHP, and even Perl, to call the generated services. One drawback of SOAP is that it is slow because it needs to serialize all calls into a text format (XML).

You can see a list of services at http://localhost:8080/api/secure/axis. Set the property axis.servlet.hosts.allowed in portal.properties to configure security.

The SOAP utility is only generated for remote services.

Author:
Brian Wing Shun Chan
See Also:
UserServiceHttp, UserSoap, UserServiceUtil
Generated:

Constructor Summary
UserServiceSoap()
           
 
Method Summary
static void addGroupUsers(long groupId, long[] userIds, com.liferay.portal.service.ServiceContext serviceContext)
          Adds the users to the group.
static void addOrganizationUsers(long organizationId, long[] userIds)
          Adds the users to the organization.
static void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
          Assigns the password policy to the users, removing any other currently assigned password policies.
static void addRoleUsers(long roleId, long[] userIds)
          Adds the users to the role.
static void addTeamUsers(long teamId, long[] userIds)
          Adds the users to the team.
static com.liferay.portal.model.UserSoap addUser(long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses, com.liferay.portal.model.EmailAddressSoap[] emailAddresses, com.liferay.portal.model.PhoneSoap[] phones, com.liferay.portal.model.WebsiteSoap[] websites, com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers, boolean sendEmail, com.liferay.portal.service.ServiceContext serviceContext)
          Adds a user with additional parameters.
static com.liferay.portal.model.UserSoap addUser(long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, com.liferay.portal.service.ServiceContext serviceContext)
          Adds a user.
static void addUserGroupUsers(long userGroupId, long[] userIds)
          Adds the users to the user group.
static com.liferay.portal.model.UserSoap addUserWithWorkflow(long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses, com.liferay.portal.model.EmailAddressSoap[] emailAddresses, com.liferay.portal.model.PhoneSoap[] phones, com.liferay.portal.model.WebsiteSoap[] websites, com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers, boolean sendEmail, com.liferay.portal.service.ServiceContext serviceContext)
          Adds a user with workflow and additional parameters.
static com.liferay.portal.model.UserSoap addUserWithWorkflow(long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, com.liferay.portal.service.ServiceContext serviceContext)
          Adds a user with workflow.
static void deletePortrait(long userId)
          Deletes the user's portrait image.
static void deleteRoleUser(long roleId, long userId)
          Removes the user from the role.
static void deleteUser(long userId)
          Deletes the user.
static long getDefaultUserId(long companyId)
          Returns the primary key of the default user for the company.
static long[] getGroupUserIds(long groupId)
          Returns the primary keys of all the users belonging to the group.
static long[] getOrganizationUserIds(long organizationId)
          Returns the primary keys of all the users belonging to the organization.
static long[] getRoleUserIds(long roleId)
          Returns the primary keys of all the users belonging to the role.
static com.liferay.portal.model.UserSoap getUserByEmailAddress(long companyId, java.lang.String emailAddress)
          Returns the user with the email address.
static com.liferay.portal.model.UserSoap getUserById(long userId)
          Returns the user with the primary key.
static com.liferay.portal.model.UserSoap getUserByScreenName(long companyId, java.lang.String screenName)
          Returns the user with the screen name.
static long getUserIdByEmailAddress(long companyId, java.lang.String emailAddress)
          Returns the primary key of the user with the email address.
static long getUserIdByScreenName(long companyId, java.lang.String screenName)
          Returns the primary key of the user with the screen name.
static boolean hasGroupUser(long groupId, long userId)
          Returns true if the user is a member of the group.
static boolean hasRoleUser(long roleId, long userId)
          Returns true if the user is a member of the role.
static boolean hasRoleUser(long companyId, java.lang.String name, long userId, boolean inherited)
          Returns true if the user has the role with the name, optionally through inheritance.
static void setRoleUsers(long roleId, long[] userIds)
          Sets the users in the role, removing and adding users to the role as necessary.
static void setUserGroupUsers(long userGroupId, long[] userIds)
          Sets the users in the user group, removing and adding users to the user group as necessary.
static void unsetGroupUsers(long groupId, long[] userIds, com.liferay.portal.service.ServiceContext serviceContext)
          Removes the users from the group.
static void unsetOrganizationUsers(long organizationId, long[] userIds)
          Removes the users from the organization.
static void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
          Removes the users from the password policy.
static void unsetRoleUsers(long roleId, long[] userIds)
          Removes the users from the role.
static void unsetTeamUsers(long teamId, long[] userIds)
          Removes the users from the team.
static void unsetUserGroupUsers(long userGroupId, long[] userIds)
          Removes the users from the user group.
static com.liferay.portal.model.UserSoap updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
          Updates the user's response to the terms of use agreement.
static com.liferay.portal.model.UserSoap updateEmailAddress(long userId, java.lang.String password, java.lang.String emailAddress1, java.lang.String emailAddress2, com.liferay.portal.service.ServiceContext serviceContext)
          Updates the user's email address.
static com.liferay.portal.model.UserSoap updateIncompleteUser(long companyId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean autoScreenName, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String locale, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String jobTitle, boolean updateUserInformation, boolean sendEmail, com.liferay.portal.service.ServiceContext serviceContext)
          Updates a user account that was automatically created when a guest user participated in an action (e.g. posting a comment) and only provided his name and email address.
static com.liferay.portal.model.UserSoap updateLockoutById(long userId, boolean lockout)
          Updates whether the user is locked out from logging in.
static com.liferay.portal.model.UserSoap updateOpenId(long userId, java.lang.String openId)
          Updates the user's OpenID.
static void updateOrganizations(long userId, long[] organizationIds, com.liferay.portal.service.ServiceContext serviceContext)
          Sets the organizations that the user is in, removing and adding organizations as necessary.
static com.liferay.portal.model.UserSoap updatePassword(long userId, java.lang.String password1, java.lang.String password2, boolean passwordReset)
          Updates the user's password without tracking or validation of the change.
static com.liferay.portal.model.UserSoap updatePortrait(long userId, byte[] bytes)
          Updates the user's portrait image.
static com.liferay.portal.model.UserSoap updateReminderQuery(long userId, java.lang.String question, java.lang.String answer)
          Updates the user's password reset question and answer.
static com.liferay.portal.model.UserSoap updateScreenName(long userId, java.lang.String screenName)
          Updates the user's screen name.
static com.liferay.portal.model.UserSoap updateStatus(long userId, int status)
          Updates the user's workflow status.
static com.liferay.portal.model.UserSoap updateUser(long userId, java.lang.String oldPassword, java.lang.String newPassword1, java.lang.String newPassword2, boolean passwordReset, java.lang.String reminderQueryQuestion, java.lang.String reminderQueryAnswer, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String languageId, java.lang.String timeZoneId, java.lang.String greeting, java.lang.String comments, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, java.lang.String facebookSn, java.lang.String icqSn, java.lang.String jabberSn, java.lang.String msnSn, java.lang.String mySpaceSn, java.lang.String skypeSn, java.lang.String twitterSn, java.lang.String ymSn, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles, long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses, com.liferay.portal.model.EmailAddressSoap[] emailAddresses, com.liferay.portal.model.PhoneSoap[] phones, com.liferay.portal.model.WebsiteSoap[] websites, com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers, com.liferay.portal.service.ServiceContext serviceContext)
          Updates the user with additional parameters.
static com.liferay.portal.model.UserSoap updateUser(long userId, java.lang.String oldPassword, java.lang.String newPassword1, java.lang.String newPassword2, boolean passwordReset, java.lang.String reminderQueryQuestion, java.lang.String reminderQueryAnswer, java.lang.String screenName, java.lang.String emailAddress, long facebookId, java.lang.String openId, java.lang.String languageId, java.lang.String timeZoneId, java.lang.String greeting, java.lang.String comments, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, java.lang.String facebookSn, java.lang.String icqSn, java.lang.String jabberSn, java.lang.String msnSn, java.lang.String mySpaceSn, java.lang.String skypeSn, java.lang.String twitterSn, java.lang.String ymSn, java.lang.String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles, long[] userGroupIds, com.liferay.portal.service.ServiceContext serviceContext)
          Updates the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserServiceSoap

public UserServiceSoap()
Method Detail

addGroupUsers

public static void addGroupUsers(long groupId,
                                 long[] userIds,
                                 com.liferay.portal.service.ServiceContext serviceContext)
                          throws java.rmi.RemoteException
Adds the users to the group.

Parameters:
groupId - the primary key of the group
userIds - the primary keys of the users
Throws:
PortalException - if a group or user with the primary key could not be found, or if the user did not have permission to assign group members
SystemException - if a system exception occurred
java.rmi.RemoteException

addOrganizationUsers

public static void addOrganizationUsers(long organizationId,
                                        long[] userIds)
                                 throws java.rmi.RemoteException
Adds the users to the organization.

Parameters:
organizationId - the primary key of the organization
userIds - the primary keys of the users
Throws:
PortalException - if an organization or user with the primary key could not be found, if the user did not have permission to assign organization members, or if current user did not have an organization in common with a given user
SystemException - if a system exception occurred
java.rmi.RemoteException

addPasswordPolicyUsers

public static void addPasswordPolicyUsers(long passwordPolicyId,
                                          long[] userIds)
                                   throws java.rmi.RemoteException
Assigns the password policy to the users, removing any other currently assigned password policies.

Parameters:
passwordPolicyId - the primary key of the password policy
userIds - the primary keys of the users
Throws:
PortalException - if the user did not have permission to assign policy members
SystemException - if a system exception occurred
java.rmi.RemoteException

addRoleUsers

public static void addRoleUsers(long roleId,
                                long[] userIds)
                         throws java.rmi.RemoteException
Adds the users to the role.

Parameters:
roleId - the primary key of the role
userIds - the primary keys of the users
Throws:
PortalException - if a role or user with the primary key could not be found or if the user did not have permission to assign role members
SystemException - if a system exception occurred
java.rmi.RemoteException

addTeamUsers

public static void addTeamUsers(long teamId,
                                long[] userIds)
                         throws java.rmi.RemoteException
Adds the users to the team.

Parameters:
teamId - the primary key of the team
userIds - the primary keys of the users
Throws:
PortalException - if a team or user with the primary key could not be found or if the user did not have permission to assign team members
SystemException - if a system exception occurred
java.rmi.RemoteException

addUser

public static com.liferay.portal.model.UserSoap addUser(long companyId,
                                                        boolean autoPassword,
                                                        java.lang.String password1,
                                                        java.lang.String password2,
                                                        boolean autoScreenName,
                                                        java.lang.String screenName,
                                                        java.lang.String emailAddress,
                                                        long facebookId,
                                                        java.lang.String openId,
                                                        java.lang.String locale,
                                                        java.lang.String firstName,
                                                        java.lang.String middleName,
                                                        java.lang.String lastName,
                                                        int prefixId,
                                                        int suffixId,
                                                        boolean male,
                                                        int birthdayMonth,
                                                        int birthdayDay,
                                                        int birthdayYear,
                                                        java.lang.String jobTitle,
                                                        long[] groupIds,
                                                        long[] organizationIds,
                                                        long[] roleIds,
                                                        long[] userGroupIds,
                                                        com.liferay.portal.model.AddressSoap[] addresses,
                                                        com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
                                                        com.liferay.portal.model.PhoneSoap[] phones,
                                                        com.liferay.portal.model.WebsiteSoap[] websites,
                                                        com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
                                                        boolean sendEmail,
                                                        com.liferay.portal.service.ServiceContext serviceContext)
                                                 throws java.rmi.RemoteException
Adds a user with additional parameters.

This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.

Parameters:
companyId - the primary key of the user's company
autoPassword - whether a password should be automatically generated for the user
password1 - the user's password
password2 - the user's password confirmation
autoScreenName - whether a screen name should be automatically generated for the user
screenName - the user's screen name
emailAddress - the user's email address
facebookId - the user's facebook ID
openId - the user's OpenID
locale - the user's locale
firstName - the user's first name
middleName - the user's middle name
lastName - the user's last name
prefixId - the user's name prefix ID
suffixId - the user's name suffix ID
male - whether the user is male
birthdayMonth - the user's birthday month (0-based, meaning 0 for January)
birthdayDay - the user's birthday day
birthdayYear - the user's birthday year
jobTitle - the user's job title
groupIds - the primary keys of the user's groups
organizationIds - the primary keys of the user's organizations
roleIds - the primary keys of the roles this user possesses
userGroupIds - the primary keys of the user's user groups
addresses - the user's addresses
emailAddresses - the user's email addresses
phones - the user's phone numbers
websites - the user's websites
announcementsDelivers - the announcements deliveries
sendEmail - whether to send the user an email notification about their new account
serviceContext - the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.
Returns:
the new user
Throws:
PortalException - if the user's information was invalid, if the creator did not have permission to add users, if the email address was reserved, or some other portal exception occurred
SystemException - if a system exception occurred
java.rmi.RemoteException

addUser

public static com.liferay.portal.model.UserSoap addUser(long companyId,
                                                        boolean autoPassword,
                                                        java.lang.String password1,
                                                        java.lang.String password2,
                                                        boolean autoScreenName,
                                                        java.lang.String screenName,
                                                        java.lang.String emailAddress,
                                                        long facebookId,
                                                        java.lang.String openId,
                                                        java.lang.String locale,
                                                        java.lang.String firstName,
                                                        java.lang.String middleName,
                                                        java.lang.String lastName,
                                                        int prefixId,
                                                        int suffixId,
                                                        boolean male,
                                                        int birthdayMonth,
                                                        int birthdayDay,
                                                        int birthdayYear,
                                                        java.lang.String jobTitle,
                                                        long[] groupIds,
                                                        long[] organizationIds,
                                                        long[] roleIds,
                                                        long[] userGroupIds,
                                                        boolean sendEmail,
                                                        com.liferay.portal.service.ServiceContext serviceContext)
                                                 throws java.rmi.RemoteException
Adds a user.

This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.

Parameters:
companyId - the primary key of the user's company
autoPassword - whether a password should be automatically generated for the user
password1 - the user's password
password2 - the user's password confirmation
autoScreenName - whether a screen name should be automatically generated for the user
screenName - the user's screen name
emailAddress - the user's email address
facebookId - the user's facebook ID
openId - the user's OpenID
locale - the user's locale
firstName - the user's first name
middleName - the user's middle name
lastName - the user's last name
prefixId - the user's name prefix ID
suffixId - the user's name suffix ID
male - whether the user is male
birthdayMonth - the user's birthday month (0-based, meaning 0 for January)
birthdayDay - the user's birthday day
birthdayYear - the user's birthday year
jobTitle - the user's job title
groupIds - the primary keys of the user's groups
organizationIds - the primary keys of the user's organizations
roleIds - the primary keys of the roles this user possesses
userGroupIds - the primary keys of the user's user groups
sendEmail - whether to send the user an email notification about their new account
serviceContext - the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.
Returns:
the new user
Throws:
PortalException - if the user's information was invalid, if the creator did not have permission to add users, or if the email address was reserved
SystemException - if a system exception occurred
java.rmi.RemoteException

addUserGroupUsers

public static void addUserGroupUsers(long userGroupId,
                                     long[] userIds)
                              throws java.rmi.RemoteException
Adds the users to the user group.

Parameters:
userGroupId - the primary key of the user group
userIds - the primary keys of the users
Throws:
PortalException - if a user group or user with the primary could could not be found, or if the current user did not have permission to assign group members
SystemException - if a system exception occurred
java.rmi.RemoteException

addUserWithWorkflow

public static com.liferay.portal.model.UserSoap addUserWithWorkflow(long companyId,
                                                                    boolean autoPassword,
                                                                    java.lang.String password1,
                                                                    java.lang.String password2,
                                                                    boolean autoScreenName,
                                                                    java.lang.String screenName,
                                                                    java.lang.String emailAddress,
                                                                    long facebookId,
                                                                    java.lang.String openId,
                                                                    java.lang.String locale,
                                                                    java.lang.String firstName,
                                                                    java.lang.String middleName,
                                                                    java.lang.String lastName,
                                                                    int prefixId,
                                                                    int suffixId,
                                                                    boolean male,
                                                                    int birthdayMonth,
                                                                    int birthdayDay,
                                                                    int birthdayYear,
                                                                    java.lang.String jobTitle,
                                                                    long[] groupIds,
                                                                    long[] organizationIds,
                                                                    long[] roleIds,
                                                                    long[] userGroupIds,
                                                                    com.liferay.portal.model.AddressSoap[] addresses,
                                                                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
                                                                    com.liferay.portal.model.PhoneSoap[] phones,
                                                                    com.liferay.portal.model.WebsiteSoap[] websites,
                                                                    com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
                                                                    boolean sendEmail,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws java.rmi.RemoteException
Adds a user with workflow and additional parameters.

This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.

Parameters:
companyId - the primary key of the user's company
autoPassword - whether a password should be automatically generated for the user
password1 - the user's password
password2 - the user's password confirmation
autoScreenName - whether a screen name should be automatically generated for the user
screenName - the user's screen name
emailAddress - the user's email address
facebookId - the user's facebook ID
openId - the user's OpenID
locale - the user's locale
firstName - the user's first name
middleName - the user's middle name
lastName - the user's last name
prefixId - the user's name prefix ID
suffixId - the user's name suffix ID
male - whether the user is male
birthdayMonth - the user's birthday month (0-based, meaning 0 for January)
birthdayDay - the user's birthday day
birthdayYear - the user's birthday year
jobTitle - the user's job title
groupIds - the primary keys of the user's groups
organizationIds - the primary keys of the user's organizations
roleIds - the primary keys of the roles this user possesses
userGroupIds - the primary keys of the user's user groups
addresses - the user's addresses
emailAddresses - the user's email addresses
phones - the user's phone numbers
websites - the user's websites
announcementsDelivers - the announcements deliveries
sendEmail - whether to send the user an email notification about their new account
serviceContext - the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.
Returns:
the new user
Throws:
PortalException - if the user's information was invalid, if the creator did not have permission to add users, if the email address was reserved, or some other portal exception occurred
SystemException - if a system exception occurred
java.rmi.RemoteException

addUserWithWorkflow

public static com.liferay.portal.model.UserSoap addUserWithWorkflow(long companyId,
                                                                    boolean autoPassword,
                                                                    java.lang.String password1,
                                                                    java.lang.String password2,
                                                                    boolean autoScreenName,
                                                                    java.lang.String screenName,
                                                                    java.lang.String emailAddress,
                                                                    long facebookId,
                                                                    java.lang.String openId,
                                                                    java.lang.String locale,
                                                                    java.lang.String firstName,
                                                                    java.lang.String middleName,
                                                                    java.lang.String lastName,
                                                                    int prefixId,
                                                                    int suffixId,
                                                                    boolean male,
                                                                    int birthdayMonth,
                                                                    int birthdayDay,
                                                                    int birthdayYear,
                                                                    java.lang.String jobTitle,
                                                                    long[] groupIds,
                                                                    long[] organizationIds,
                                                                    long[] roleIds,
                                                                    long[] userGroupIds,
                                                                    boolean sendEmail,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws java.rmi.RemoteException
Adds a user with workflow.

This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.

Parameters:
companyId - the primary key of the user's company
autoPassword - whether a password should be automatically generated for the user
password1 - the user's password
password2 - the user's password confirmation
autoScreenName - whether a screen name should be automatically generated for the user
screenName - the user's screen name
emailAddress - the user's email address
facebookId - the user's facebook ID
openId - the user's OpenID
locale - the user's locale
firstName - the user's first name
middleName - the user's middle name
lastName - the user's last name
prefixId - the user's name prefix ID
suffixId - the user's name suffix ID
male - whether the user is male
birthdayMonth - the user's birthday month (0-based, meaning 0 for January)
birthdayDay - the user's birthday day
birthdayYear - the user's birthday year
jobTitle - the user's job title
groupIds - the primary keys of the user's groups
organizationIds - the primary keys of the user's organizations
roleIds - the primary keys of the roles this user possesses
userGroupIds - the primary keys of the user's user groups
sendEmail - whether to send the user an email notification about their new account
serviceContext - the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.
Returns:
the new user
Throws:
PortalException - if the user's information was invalid, if the creator did not have permission to add users, or if the email address was reserved
SystemException - if a system exception occurred
java.rmi.RemoteException

deletePortrait

public static void deletePortrait(long userId)
                           throws java.rmi.RemoteException
Deletes the user's portrait image.

Parameters:
userId - the primary key of the user
Throws:
PortalException - if a user with the primary key could not be found, if the user's portrait could not be found, or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

deleteRoleUser

public static void deleteRoleUser(long roleId,
                                  long userId)
                           throws java.rmi.RemoteException
Removes the user from the role.

Parameters:
roleId - the primary key of the role
userId - the primary key of the user
Throws:
PortalException - if a role or user with the primary key could not be found, or if the current user did not have permission to assign role members
SystemException - if a system exception occurred
java.rmi.RemoteException

deleteUser

public static void deleteUser(long userId)
                       throws java.rmi.RemoteException
Deletes the user.

Parameters:
userId - the primary key of the user
Throws:
PortalException - if a user with the primary key could not be found or if the current user did not have permission to delete the user
SystemException - if a system exception occurred
java.rmi.RemoteException

getDefaultUserId

public static long getDefaultUserId(long companyId)
                             throws java.rmi.RemoteException
Returns the primary key of the default user for the company.

Parameters:
companyId - the primary key of the company
Returns:
the primary key of the default user for the company
Throws:
PortalException - if a default user for the company could not be found
SystemException - if a system exception occurred
java.rmi.RemoteException

getGroupUserIds

public static long[] getGroupUserIds(long groupId)
                              throws java.rmi.RemoteException
Returns the primary keys of all the users belonging to the group.

Parameters:
groupId - the primary key of the group
Returns:
the primary keys of the users belonging to the group
Throws:
PortalException - if the current user did not have permission to view group assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

getOrganizationUserIds

public static long[] getOrganizationUserIds(long organizationId)
                                     throws java.rmi.RemoteException
Returns the primary keys of all the users belonging to the organization.

Parameters:
organizationId - the primary key of the organization
Returns:
the primary keys of the users belonging to the organization
Throws:
PortalException - if the current user did not have permission to view organization assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

getRoleUserIds

public static long[] getRoleUserIds(long roleId)
                             throws java.rmi.RemoteException
Returns the primary keys of all the users belonging to the role.

Parameters:
roleId - the primary key of the role
Returns:
the primary keys of the users belonging to the role
Throws:
PortalException - if the current user did not have permission to view role members
SystemException - if a system exception occurred
java.rmi.RemoteException

getUserByEmailAddress

public static com.liferay.portal.model.UserSoap getUserByEmailAddress(long companyId,
                                                                      java.lang.String emailAddress)
                                                               throws java.rmi.RemoteException
Returns the user with the email address.

Parameters:
companyId - the primary key of the user's company
emailAddress - the user's email address
Returns:
the user with the email address
Throws:
PortalException - if a user with the email address could not be found or if the current user did not have permission to view the user
SystemException - if a system exception occurred
java.rmi.RemoteException

getUserById

public static com.liferay.portal.model.UserSoap getUserById(long userId)
                                                     throws java.rmi.RemoteException
Returns the user with the primary key.

Parameters:
userId - the primary key of the user
Returns:
the user with the primary key
Throws:
PortalException - if a user with the primary key could not be found or if the current user did not have permission to view the user
SystemException - if a system exception occurred
java.rmi.RemoteException

getUserByScreenName

public static com.liferay.portal.model.UserSoap getUserByScreenName(long companyId,
                                                                    java.lang.String screenName)
                                                             throws java.rmi.RemoteException
Returns the user with the screen name.

Parameters:
companyId - the primary key of the user's company
screenName - the user's screen name
Returns:
the user with the screen name
Throws:
PortalException - if a user with the screen name could not be found or if the current user did not have permission to veiw the user
SystemException - if a system exception occurred
java.rmi.RemoteException

getUserIdByEmailAddress

public static long getUserIdByEmailAddress(long companyId,
                                           java.lang.String emailAddress)
                                    throws java.rmi.RemoteException
Returns the primary key of the user with the email address.

Parameters:
companyId - the primary key of the user's company
emailAddress - the user's email address
Returns:
the primary key of the user with the email address
Throws:
PortalException - if a user with the email address could not be found
SystemException - if a system exception occurred
java.rmi.RemoteException

getUserIdByScreenName

public static long getUserIdByScreenName(long companyId,
                                         java.lang.String screenName)
                                  throws java.rmi.RemoteException
Returns the primary key of the user with the screen name.

Parameters:
companyId - the primary key of the user's company
screenName - the user's screen name
Returns:
the primary key of the user with the screen name
Throws:
PortalException - if a user with the screen name could not be found
SystemException - if a system exception occurred
java.rmi.RemoteException

hasGroupUser

public static boolean hasGroupUser(long groupId,
                                   long userId)
                            throws java.rmi.RemoteException
Returns true if the user is a member of the group.

Parameters:
groupId - the primary key of the group
userId - the primary key of the user
Returns:
true if the user is a member of the group; false otherwise
Throws:
SystemException - if a system exception occurred
java.rmi.RemoteException

hasRoleUser

public static boolean hasRoleUser(long roleId,
                                  long userId)
                           throws java.rmi.RemoteException
Returns true if the user is a member of the role.

Parameters:
roleId - the primary key of the role
userId - the primary key of the user
Returns:
true if the user is a member of the role; false otherwise
Throws:
SystemException - if a system exception occurred
java.rmi.RemoteException

hasRoleUser

public static boolean hasRoleUser(long companyId,
                                  java.lang.String name,
                                  long userId,
                                  boolean inherited)
                           throws java.rmi.RemoteException
Returns true if the user has the role with the name, optionally through inheritance.

Parameters:
companyId - the primary key of the role's company
name - the name of the role (must be a regular role, not an organization, site or provider role)
userId - the primary key of the user
inherited - whether to include roles inherited from organizations, sites, etc.
Returns:
true if the user has the role; false otherwise
Throws:
PortalException - if a role with the name could not be found
SystemException - if a system exception occurred
java.rmi.RemoteException

setRoleUsers

public static void setRoleUsers(long roleId,
                                long[] userIds)
                         throws java.rmi.RemoteException
Sets the users in the role, removing and adding users to the role as necessary.

Parameters:
roleId - the primary key of the role
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to assign role members
SystemException - if a system exception occurred
java.rmi.RemoteException

setUserGroupUsers

public static void setUserGroupUsers(long userGroupId,
                                     long[] userIds)
                              throws java.rmi.RemoteException
Sets the users in the user group, removing and adding users to the user group as necessary.

Parameters:
userGroupId - the primary key of the user group
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to assign group members
SystemException - if a system exception occurred
java.rmi.RemoteException

unsetGroupUsers

public static void unsetGroupUsers(long groupId,
                                   long[] userIds,
                                   com.liferay.portal.service.ServiceContext serviceContext)
                            throws java.rmi.RemoteException
Removes the users from the group.

Parameters:
groupId - the primary key of the group
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to modify group assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

unsetOrganizationUsers

public static void unsetOrganizationUsers(long organizationId,
                                          long[] userIds)
                                   throws java.rmi.RemoteException
Removes the users from the organization.

Parameters:
organizationId - the primary key of the organization
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to modify organization assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

unsetPasswordPolicyUsers

public static void unsetPasswordPolicyUsers(long passwordPolicyId,
                                            long[] userIds)
                                     throws java.rmi.RemoteException
Removes the users from the password policy.

Parameters:
passwordPolicyId - the primary key of the password policy
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to modify policy assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

unsetRoleUsers

public static void unsetRoleUsers(long roleId,
                                  long[] userIds)
                           throws java.rmi.RemoteException
Removes the users from the role.

Parameters:
roleId - the primary key of the role
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to modify role assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

unsetTeamUsers

public static void unsetTeamUsers(long teamId,
                                  long[] userIds)
                           throws java.rmi.RemoteException
Removes the users from the team.

Parameters:
teamId - the primary key of the team
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to modify team assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

unsetUserGroupUsers

public static void unsetUserGroupUsers(long userGroupId,
                                       long[] userIds)
                                throws java.rmi.RemoteException
Removes the users from the user group.

Parameters:
userGroupId - the primary key of the user group
userIds - the primary keys of the users
Throws:
PortalException - if the current user did not have permission to modify user group assignments
SystemException - if a system exception occurred
java.rmi.RemoteException

updateAgreedToTermsOfUse

public static com.liferay.portal.model.UserSoap updateAgreedToTermsOfUse(long userId,
                                                                         boolean agreedToTermsOfUse)
                                                                  throws java.rmi.RemoteException
Updates the user's response to the terms of use agreement.

Parameters:
userId - the primary key of the user
agreedToTermsOfUse - whether the user has agree to the terms of use
Returns:
the user
Throws:
PortalException - if the current user did not have permission to update the user's agreement to terms-of-use
SystemException - if a system exception occurred
java.rmi.RemoteException

updateEmailAddress

public static com.liferay.portal.model.UserSoap updateEmailAddress(long userId,
                                                                   java.lang.String password,
                                                                   java.lang.String emailAddress1,
                                                                   java.lang.String emailAddress2,
                                                                   com.liferay.portal.service.ServiceContext serviceContext)
                                                            throws java.rmi.RemoteException
Updates the user's email address.

Parameters:
userId - the primary key of the user
password - the user's password
emailAddress1 - the user's new email address
emailAddress2 - the user's new email address confirmation
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateIncompleteUser

public static com.liferay.portal.model.UserSoap updateIncompleteUser(long companyId,
                                                                     boolean autoPassword,
                                                                     java.lang.String password1,
                                                                     java.lang.String password2,
                                                                     boolean autoScreenName,
                                                                     java.lang.String screenName,
                                                                     java.lang.String emailAddress,
                                                                     long facebookId,
                                                                     java.lang.String openId,
                                                                     java.lang.String locale,
                                                                     java.lang.String firstName,
                                                                     java.lang.String middleName,
                                                                     java.lang.String lastName,
                                                                     int prefixId,
                                                                     int suffixId,
                                                                     boolean male,
                                                                     int birthdayMonth,
                                                                     int birthdayDay,
                                                                     int birthdayYear,
                                                                     java.lang.String jobTitle,
                                                                     boolean updateUserInformation,
                                                                     boolean sendEmail,
                                                                     com.liferay.portal.service.ServiceContext serviceContext)
                                                              throws java.rmi.RemoteException
Updates a user account that was automatically created when a guest user participated in an action (e.g. posting a comment) and only provided his name and email address.

Parameters:
companyId - the primary key of the user's company
autoPassword - whether a password should be automatically generated for the user
password1 - the user's password
password2 - the user's password confirmation
autoScreenName - whether a screen name should be automatically generated for the user
screenName - the user's screen name
emailAddress - the user's email address
facebookId - the user's facebook ID
openId - the user's OpenID
locale - the user's locale
firstName - the user's first name
middleName - the user's middle name
lastName - the user's last name
prefixId - the user's name prefix ID
suffixId - the user's name suffix ID
male - whether the user is male
birthdayMonth - the user's birthday month (0-based, meaning 0 for January)
birthdayDay - the user's birthday day
birthdayYear - the user's birthday year
jobTitle - the user's job title
updateUserInformation - whether to update the user's information
sendEmail - whether to send the user an email notification about their new account
serviceContext - the user's service context (optionally null). Can set the expando bridge attributes for the user.
Returns:
the user
Throws:
PortalException - if the user's information was invalid or if the email address was reserved
SystemException - if a system exception occurred
java.rmi.RemoteException

updateLockoutById

public static com.liferay.portal.model.UserSoap updateLockoutById(long userId,
                                                                  boolean lockout)
                                                           throws java.rmi.RemoteException
Updates whether the user is locked out from logging in.

Parameters:
userId - the primary key of the user
lockout - whether the user is locked out
Returns:
the user
Throws:
PortalException - if the user did not have permission to lock out the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateOpenId

public static com.liferay.portal.model.UserSoap updateOpenId(long userId,
                                                             java.lang.String openId)
                                                      throws java.rmi.RemoteException
Updates the user's OpenID.

Parameters:
userId - the primary key of the user
openId - the new OpenID
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateOrganizations

public static void updateOrganizations(long userId,
                                       long[] organizationIds,
                                       com.liferay.portal.service.ServiceContext serviceContext)
                                throws java.rmi.RemoteException
Sets the organizations that the user is in, removing and adding organizations as necessary.

Parameters:
userId - the primary key of the user
organizationIds - the primary keys of the organizations
Throws:
PortalException - if a user with the primary key could not be found or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updatePassword

public static com.liferay.portal.model.UserSoap updatePassword(long userId,
                                                               java.lang.String password1,
                                                               java.lang.String password2,
                                                               boolean passwordReset)
                                                        throws java.rmi.RemoteException
Updates the user's password without tracking or validation of the change.

Parameters:
userId - the primary key of the user
password1 - the user's new password
password2 - the user's new password confirmation
passwordReset - whether the user should be asked to reset their password the next time they log in
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updatePortrait

public static com.liferay.portal.model.UserSoap updatePortrait(long userId,
                                                               byte[] bytes)
                                                        throws java.rmi.RemoteException
Updates the user's portrait image.

Parameters:
userId - the primary key of the user
bytes - the new portrait image data
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found, if the new portrait was invalid, or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateReminderQuery

public static com.liferay.portal.model.UserSoap updateReminderQuery(long userId,
                                                                    java.lang.String question,
                                                                    java.lang.String answer)
                                                             throws java.rmi.RemoteException
Updates the user's password reset question and answer.

Parameters:
userId - the primary key of the user
question - the user's new password reset question
answer - the user's new password reset answer
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found, if the new question or answer were invalid, or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateScreenName

public static com.liferay.portal.model.UserSoap updateScreenName(long userId,
                                                                 java.lang.String screenName)
                                                          throws java.rmi.RemoteException
Updates the user's screen name.

Parameters:
userId - the primary key of the user
screenName - the user's new screen name
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found, if the new screen name was invalid, or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateStatus

public static com.liferay.portal.model.UserSoap updateStatus(long userId,
                                                             int status)
                                                      throws java.rmi.RemoteException
Updates the user's workflow status.

Parameters:
userId - the primary key of the user
status - the user's new workflow status
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found, if the current user was updating her own status to anything but WorkflowConstants.STATUS_APPROVED, or if the current user did not have permission to update the user's workflow status.
SystemException - if a system exception occurred
java.rmi.RemoteException

updateUser

public static com.liferay.portal.model.UserSoap updateUser(long userId,
                                                           java.lang.String oldPassword,
                                                           java.lang.String newPassword1,
                                                           java.lang.String newPassword2,
                                                           boolean passwordReset,
                                                           java.lang.String reminderQueryQuestion,
                                                           java.lang.String reminderQueryAnswer,
                                                           java.lang.String screenName,
                                                           java.lang.String emailAddress,
                                                           long facebookId,
                                                           java.lang.String openId,
                                                           java.lang.String languageId,
                                                           java.lang.String timeZoneId,
                                                           java.lang.String greeting,
                                                           java.lang.String comments,
                                                           java.lang.String firstName,
                                                           java.lang.String middleName,
                                                           java.lang.String lastName,
                                                           int prefixId,
                                                           int suffixId,
                                                           boolean male,
                                                           int birthdayMonth,
                                                           int birthdayDay,
                                                           int birthdayYear,
                                                           java.lang.String smsSn,
                                                           java.lang.String aimSn,
                                                           java.lang.String facebookSn,
                                                           java.lang.String icqSn,
                                                           java.lang.String jabberSn,
                                                           java.lang.String msnSn,
                                                           java.lang.String mySpaceSn,
                                                           java.lang.String skypeSn,
                                                           java.lang.String twitterSn,
                                                           java.lang.String ymSn,
                                                           java.lang.String jobTitle,
                                                           long[] groupIds,
                                                           long[] organizationIds,
                                                           long[] roleIds,
                                                           com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
                                                           long[] userGroupIds,
                                                           com.liferay.portal.model.AddressSoap[] addresses,
                                                           com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
                                                           com.liferay.portal.model.PhoneSoap[] phones,
                                                           com.liferay.portal.model.WebsiteSoap[] websites,
                                                           com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
                                                           com.liferay.portal.service.ServiceContext serviceContext)
                                                    throws java.rmi.RemoteException
Updates the user with additional parameters.

Parameters:
userId - the primary key of the user
oldPassword - the user's old password
newPassword1 - the user's new password (optionally null)
newPassword2 - the user's new password confirmation (optionally null)
passwordReset - whether the user should be asked to reset their password the next time they login
reminderQueryQuestion - the user's new password reset question
reminderQueryAnswer - the user's new password reset answer
screenName - the user's new screen name
emailAddress - the user's new email address
facebookId - the user's new Facebook ID
openId - the user's new OpenID
languageId - the user's new language ID
timeZoneId - the user's new time zone ID
greeting - the user's new greeting
comments - the user's new comments
firstName - the user's new first name
middleName - the user's new middle name
lastName - the user's new last name
prefixId - the user's new name prefix ID
suffixId - the user's new name suffix ID
male - whether user is male
birthdayMonth - the user's new birthday month (0-based, meaning 0 for January)
birthdayDay - the user's new birthday day
birthdayYear - the user's birthday year
smsSn - the user's new SMS screen name
aimSn - the user's new AIM screen name
facebookSn - the user's new Facebook screen name
icqSn - the user's new ICQ screen name
jabberSn - the user's new Jabber screen name
msnSn - the user's new MSN screen name
mySpaceSn - the user's new MySpace screen name
skypeSn - the user's new Skype screen name
twitterSn - the user's new Twitter screen name
ymSn - the user's new Yahoo! Messenger screen name
jobTitle - the user's new job title
groupIds - the primary keys of the user's groups
organizationIds - the primary keys of the user's organizations
roleIds - the primary keys of the user's roles
userGroupRoles - the user user's group roles
userGroupIds - the primary keys of the user's user groups
addresses - the user's addresses
emailAddresses - the user's email addresses
phones - the user's phone numbers
websites - the user's websites
announcementsDelivers - the announcements deliveries
serviceContext - the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found, if the new information was invalid, or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException

updateUser

public static com.liferay.portal.model.UserSoap updateUser(long userId,
                                                           java.lang.String oldPassword,
                                                           java.lang.String newPassword1,
                                                           java.lang.String newPassword2,
                                                           boolean passwordReset,
                                                           java.lang.String reminderQueryQuestion,
                                                           java.lang.String reminderQueryAnswer,
                                                           java.lang.String screenName,
                                                           java.lang.String emailAddress,
                                                           long facebookId,
                                                           java.lang.String openId,
                                                           java.lang.String languageId,
                                                           java.lang.String timeZoneId,
                                                           java.lang.String greeting,
                                                           java.lang.String comments,
                                                           java.lang.String firstName,
                                                           java.lang.String middleName,
                                                           java.lang.String lastName,
                                                           int prefixId,
                                                           int suffixId,
                                                           boolean male,
                                                           int birthdayMonth,
                                                           int birthdayDay,
                                                           int birthdayYear,
                                                           java.lang.String smsSn,
                                                           java.lang.String aimSn,
                                                           java.lang.String facebookSn,
                                                           java.lang.String icqSn,
                                                           java.lang.String jabberSn,
                                                           java.lang.String msnSn,
                                                           java.lang.String mySpaceSn,
                                                           java.lang.String skypeSn,
                                                           java.lang.String twitterSn,
                                                           java.lang.String ymSn,
                                                           java.lang.String jobTitle,
                                                           long[] groupIds,
                                                           long[] organizationIds,
                                                           long[] roleIds,
                                                           com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
                                                           long[] userGroupIds,
                                                           com.liferay.portal.service.ServiceContext serviceContext)
                                                    throws java.rmi.RemoteException
Updates the user.

Parameters:
userId - the primary key of the user
oldPassword - the user's old password
newPassword1 - the user's new password (optionally null)
newPassword2 - the user's new password confirmation (optionally null)
passwordReset - whether the user should be asked to reset their password the next time they login
reminderQueryQuestion - the user's new password reset question
reminderQueryAnswer - the user's new password reset answer
screenName - the user's new screen name
emailAddress - the user's new email address
facebookId - the user's new Facebook ID
openId - the user's new OpenID
languageId - the user's new language ID
timeZoneId - the user's new time zone ID
greeting - the user's new greeting
comments - the user's new comments
firstName - the user's new first name
middleName - the user's new middle name
lastName - the user's new last name
prefixId - the user's new name prefix ID
suffixId - the user's new name suffix ID
male - whether user is male
birthdayMonth - the user's new birthday month (0-based, meaning 0 for January)
birthdayDay - the user's new birthday day
birthdayYear - the user's birthday year
smsSn - the user's new SMS screen name
aimSn - the user's new AIM screen name
facebookSn - the user's new Facebook screen name
icqSn - the user's new ICQ screen name
jabberSn - the user's new Jabber screen name
msnSn - the user's new MSN screen name
mySpaceSn - the user's new MySpace screen name
skypeSn - the user's new Skype screen name
twitterSn - the user's new Twitter screen name
ymSn - the user's new Yahoo! Messenger screen name
jobTitle - the user's new job title
groupIds - the primary keys of the user's groups
organizationIds - the primary keys of the user's organizations
roleIds - the primary keys of the user's roles
userGroupRoles - the user user's group roles
userGroupIds - the primary keys of the user's user groups
serviceContext - the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.
Returns:
the user
Throws:
PortalException - if a user with the primary key could not be found, if the new information was invalid, or if the current user did not have permission to update the user
SystemException - if a system exception occurred
java.rmi.RemoteException