Liferay 6.0.5

com.liferay.portal.service.impl
Class UserServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portal.service.base.UserServiceBaseImpl
          extended by com.liferay.portal.service.impl.UserServiceImpl
All Implemented Interfaces:
UserService

public class UserServiceImpl
extends UserServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.UserServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, announcementsDeliveryLocalService, announcementsDeliveryPersistence, announcementsDeliveryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, browserTrackerLocalService, browserTrackerPersistence, classNameLocalService, classNamePersistence, classNameService, clusterGroupLocalService, clusterGroupPersistence, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, countryPersistence, countryService, dlFileRankLocalService, dlFileRankPersistence, emailAddressLocalService, emailAddressPersistence, emailAddressService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, layoutFinder, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, lockLocalService, lockPersistence, mailService, mbBanLocalService, mbBanPersistence, mbBanService, mbMessageFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageFlagService, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupPermissionFinder, orgGroupPermissionPersistence, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionFinder, permissionLocalService, permissionPersistence, permissionService, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, resourceActionLocalService, resourceActionPersistence, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, resourcePersistence, resourceService, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, shardLocalService, shardPersistence, shoppingCartLocalService, shoppingCartPersistence, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialRequestLocalService, socialRequestPersistence, subscriptionLocalService, subscriptionPersistence, teamFinder, teamLocalService, teamPersistence, teamService, themeLocalService, themeService, ticketLocalService, ticketPersistence, userFinder, userGroupFinder, userGroupGroupRoleLocalService, userGroupGroupRolePersistence, userGroupGroupRoleService, userGroupLocalService, userGroupPersistence, userGroupRoleFinder, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
UserServiceImpl()
           
 
Method Summary
 void addGroupUsers(long groupId, long[] userIds)
           
 void addOrganizationUsers(long organizationId, long[] userIds)
           
 void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void addRoleUsers(long roleId, long[] userIds)
           
 void addTeamUsers(long teamId, long[] userIds)
           
 User addUser(long companyId, boolean autoPassword, String password1, String password2, boolean autoScreenName, String screenName, String emailAddress, long facebookId, String openId, Locale locale, String firstName, String middleName, String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, List<Address> addresses, List<EmailAddress> emailAddresses, List<Phone> phones, List<Website> websites, List<AnnouncementsDelivery> announcementsDelivers, ServiceContext serviceContext)
           
 User addUser(long companyId, boolean autoPassword, String password1, String password2, boolean autoScreenName, String screenName, String emailAddress, long facebookId, String openId, Locale locale, String firstName, String middleName, String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, long[] userGroupIds, boolean sendEmail, ServiceContext serviceContext)
           
 void addUserGroupUsers(long userGroupId, long[] userIds)
           
protected  long[] checkGroups(long userId, long[] groupIds)
           
protected  long[] checkOrganizations(long userId, long[] organizationIds)
           
protected  long[] checkRoles(long userId, long[] roleIds)
           
protected  List<UserGroupRole> checkUserGroupRoles(long userId, List<UserGroupRole> userGroupRoles)
           
 void deletePortrait(long userId)
           
 void deleteRoleUser(long roleId, long userId)
           
 void deleteUser(long userId)
           
 long getDefaultUserId(long companyId)
           
 long[] getGroupUserIds(long groupId)
           
 long[] getOrganizationUserIds(long organizationId)
           
 long[] getRoleUserIds(long roleId)
           
 User getUserByEmailAddress(long companyId, String emailAddress)
           
 User getUserById(long userId)
           
 User getUserByScreenName(long companyId, String screenName)
           
 long getUserIdByEmailAddress(long companyId, String emailAddress)
           
 long getUserIdByScreenName(long companyId, String screenName)
           
 boolean hasGroupUser(long groupId, long userId)
           
 boolean hasRoleUser(long roleId, long userId)
           
 boolean hasRoleUser(long companyId, String name, long userId, boolean inherited)
           
 void setRoleUsers(long roleId, long[] userIds)
           
 void setUserGroupUsers(long userGroupId, long[] userIds)
           
 void unsetGroupUsers(long groupId, long[] userIds)
           
 void unsetOrganizationUsers(long organizationId, long[] userIds)
           
 void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
           
 void unsetRoleUsers(long roleId, long[] userIds)
           
 void unsetTeamUsers(long teamId, long[] userIds)
           
 void unsetUserGroupUsers(long userGroupId, long[] userIds)
           
 User updateActive(long userId, boolean active)
           
 User updateAgreedToTermsOfUse(long userId, boolean agreedToTermsOfUse)
           
protected  void updateAnnouncementsDeliveries(long userId, List<AnnouncementsDelivery> announcementsDeliveries)
           
 void updateEmailAddress(long userId, String password, String emailAddress1, String emailAddress2)
           
 User updateLockout(long userId, boolean lockout)
           
 void updateOpenId(long userId, String openId)
           
 void updateOrganizations(long userId, long[] organizationIds)
           
 User updatePassword(long userId, String password1, String password2, boolean passwordReset)
           
 void updatePortrait(long userId, byte[] bytes)
           
 void updateReminderQuery(long userId, String question, String answer)
           
 void updateScreenName(long userId, String screenName)
           
 User updateUser(long userId, String oldPassword, String newPassword1, String newPassword2, boolean passwordReset, String reminderQueryQuestion, String reminderQueryAnswer, String screenName, String emailAddress, long facebookId, String openId, String languageId, String timeZoneId, String greeting, String comments, String firstName, String middleName, String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String aimSn, String facebookSn, String icqSn, String jabberSn, String msnSn, String mySpaceSn, String skypeSn, String twitterSn, String ymSn, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, List<UserGroupRole> userGroupRoles, long[] userGroupIds, List<Address> addresses, List<EmailAddress> emailAddresses, List<Phone> phones, List<Website> websites, List<AnnouncementsDelivery> announcementsDelivers, ServiceContext serviceContext)
           
 User updateUser(long userId, String oldPassword, String newPassword1, String newPassword2, boolean passwordReset, String reminderQueryQuestion, String reminderQueryAnswer, String screenName, String emailAddress, long facebookId, String openId, String languageId, String timeZoneId, String greeting, String comments, String firstName, String middleName, String lastName, int prefixId, int suffixId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String aimSn, String facebookSn, String icqSn, String jabberSn, String msnSn, String mySpaceSn, String skypeSn, String twitterSn, String ymSn, String jobTitle, long[] groupIds, long[] organizationIds, long[] roleIds, List<UserGroupRole> userGroupRoles, long[] userGroupIds, ServiceContext serviceContext)
           
protected  void validateEmailAddress(User user, String emailAddress)
           
protected  void validateOrganizationUsers(long[] userIds)
           
protected  void validateScreenName(User user, String screenName)
           
 
Methods inherited from class com.liferay.portal.service.base.UserServiceBaseImpl
getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getAnnouncementsDeliveryLocalService, getAnnouncementsDeliveryPersistence, getAnnouncementsDeliveryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getBrowserTrackerLocalService, getBrowserTrackerPersistence, getClassNameLocalService, getClassNamePersistence, getClassNameService, getClusterGroupLocalService, getClusterGroupPersistence, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCountryPersistence, getCountryService, getDLFileRankLocalService, getDLFileRankPersistence, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getLockLocalService, getLockPersistence, getMailService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBMessageFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageFlagService, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupPermissionFinder, getOrgGroupPermissionPersistence, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionFinder, getPermissionLocalService, getPermissionPersistence, getPermissionService, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getResourceActionLocalService, getResourceActionPersistence, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getResourcePersistence, getResourceService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getShoppingCartLocalService, getShoppingCartPersistence, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialRequestLocalService, getSocialRequestPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setAnnouncementsDeliveryLocalService, setAnnouncementsDeliveryPersistence, setAnnouncementsDeliveryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setBrowserTrackerLocalService, setBrowserTrackerPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setClusterGroupLocalService, setClusterGroupPersistence, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCountryPersistence, setCountryService, setDLFileRankLocalService, setDLFileRankPersistence, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setLockLocalService, setLockPersistence, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBMessageFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageFlagService, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupPermissionFinder, setOrgGroupPermissionPersistence, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionFinder, setPermissionLocalService, setPermissionPersistence, setPermissionService, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setResourceActionLocalService, setResourceActionPersistence, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setResourcePersistence, setResourceService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setShardLocalService, setShardPersistence, setShoppingCartLocalService, setShoppingCartPersistence, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialRequestLocalService, setSocialRequestPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setThemeLocalService, setThemeService, setTicketLocalService, setTicketPersistence, setUserFinder, setUserGroupFinder, setUserGroupGroupRoleLocalService, setUserGroupGroupRolePersistence, setUserGroupGroupRoleService, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleFinder, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserServiceImpl

public UserServiceImpl()
Method Detail

addGroupUsers

public void addGroupUsers(long groupId,
                          long[] userIds)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

addOrganizationUsers

public void addOrganizationUsers(long organizationId,
                                 long[] userIds)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addPasswordPolicyUsers

public void addPasswordPolicyUsers(long passwordPolicyId,
                                   long[] userIds)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

addRoleUsers

public void addRoleUsers(long roleId,
                         long[] userIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addTeamUsers

public void addTeamUsers(long teamId,
                         long[] userIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addUserGroupUsers

public void addUserGroupUsers(long userGroupId,
                              long[] userIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addUser

public User addUser(long companyId,
                    boolean autoPassword,
                    String password1,
                    String password2,
                    boolean autoScreenName,
                    String screenName,
                    String emailAddress,
                    long facebookId,
                    String openId,
                    Locale locale,
                    String firstName,
                    String middleName,
                    String lastName,
                    int prefixId,
                    int suffixId,
                    boolean male,
                    int birthdayMonth,
                    int birthdayDay,
                    int birthdayYear,
                    String jobTitle,
                    long[] groupIds,
                    long[] organizationIds,
                    long[] roleIds,
                    long[] userGroupIds,
                    boolean sendEmail,
                    ServiceContext serviceContext)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

addUser

public User addUser(long companyId,
                    boolean autoPassword,
                    String password1,
                    String password2,
                    boolean autoScreenName,
                    String screenName,
                    String emailAddress,
                    long facebookId,
                    String openId,
                    Locale locale,
                    String firstName,
                    String middleName,
                    String lastName,
                    int prefixId,
                    int suffixId,
                    boolean male,
                    int birthdayMonth,
                    int birthdayDay,
                    int birthdayYear,
                    String jobTitle,
                    long[] groupIds,
                    long[] organizationIds,
                    long[] roleIds,
                    long[] userGroupIds,
                    boolean sendEmail,
                    List<Address> addresses,
                    List<EmailAddress> emailAddresses,
                    List<Phone> phones,
                    List<Website> websites,
                    List<AnnouncementsDelivery> announcementsDelivers,
                    ServiceContext serviceContext)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

deletePortrait

public void deletePortrait(long userId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteRoleUser

public void deleteRoleUser(long roleId,
                           long userId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteUser

public void deleteUser(long userId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

getDefaultUserId

public long getDefaultUserId(long companyId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getGroupUserIds

public long[] getGroupUserIds(long groupId)
                       throws SystemException
Throws:
SystemException

getOrganizationUserIds

public long[] getOrganizationUserIds(long organizationId)
                              throws SystemException
Throws:
SystemException

getRoleUserIds

public long[] getRoleUserIds(long roleId)
                      throws SystemException
Throws:
SystemException

getUserByEmailAddress

public User getUserByEmailAddress(long companyId,
                                  String emailAddress)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getUserById

public User getUserById(long userId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getUserByScreenName

public User getUserByScreenName(long companyId,
                                String screenName)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getUserIdByEmailAddress

public long getUserIdByEmailAddress(long companyId,
                                    String emailAddress)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getUserIdByScreenName

public long getUserIdByScreenName(long companyId,
                                  String screenName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

hasGroupUser

public boolean hasGroupUser(long groupId,
                            long userId)
                     throws SystemException
Throws:
SystemException

hasRoleUser

public boolean hasRoleUser(long roleId,
                           long userId)
                    throws SystemException
Throws:
SystemException

hasRoleUser

public boolean hasRoleUser(long companyId,
                           String name,
                           long userId,
                           boolean inherited)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

setRoleUsers

public void setRoleUsers(long roleId,
                         long[] userIds)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

setUserGroupUsers

public void setUserGroupUsers(long userGroupId,
                              long[] userIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

unsetGroupUsers

public void unsetGroupUsers(long groupId,
                            long[] userIds)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

unsetOrganizationUsers

public void unsetOrganizationUsers(long organizationId,
                                   long[] userIds)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

unsetPasswordPolicyUsers

public void unsetPasswordPolicyUsers(long passwordPolicyId,
                                     long[] userIds)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

unsetRoleUsers

public void unsetRoleUsers(long roleId,
                           long[] userIds)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

unsetTeamUsers

public void unsetTeamUsers(long teamId,
                           long[] userIds)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

unsetUserGroupUsers

public void unsetUserGroupUsers(long userGroupId,
                                long[] userIds)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateActive

public User updateActive(long userId,
                         boolean active)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateAgreedToTermsOfUse

public User updateAgreedToTermsOfUse(long userId,
                                     boolean agreedToTermsOfUse)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

updateEmailAddress

public void updateEmailAddress(long userId,
                               String password,
                               String emailAddress1,
                               String emailAddress2)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateLockout

public User updateLockout(long userId,
                          boolean lockout)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

updateOpenId

public void updateOpenId(long userId,
                         String openId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateOrganizations

public void updateOrganizations(long userId,
                                long[] organizationIds)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updatePassword

public User updatePassword(long userId,
                           String password1,
                           String password2,
                           boolean passwordReset)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updatePortrait

public void updatePortrait(long userId,
                           byte[] bytes)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateReminderQuery

public void updateReminderQuery(long userId,
                                String question,
                                String answer)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateScreenName

public void updateScreenName(long userId,
                             String screenName)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateUser

public User updateUser(long userId,
                       String oldPassword,
                       String newPassword1,
                       String newPassword2,
                       boolean passwordReset,
                       String reminderQueryQuestion,
                       String reminderQueryAnswer,
                       String screenName,
                       String emailAddress,
                       long facebookId,
                       String openId,
                       String languageId,
                       String timeZoneId,
                       String greeting,
                       String comments,
                       String firstName,
                       String middleName,
                       String lastName,
                       int prefixId,
                       int suffixId,
                       boolean male,
                       int birthdayMonth,
                       int birthdayDay,
                       int birthdayYear,
                       String smsSn,
                       String aimSn,
                       String facebookSn,
                       String icqSn,
                       String jabberSn,
                       String msnSn,
                       String mySpaceSn,
                       String skypeSn,
                       String twitterSn,
                       String ymSn,
                       String jobTitle,
                       long[] groupIds,
                       long[] organizationIds,
                       long[] roleIds,
                       List<UserGroupRole> userGroupRoles,
                       long[] userGroupIds,
                       ServiceContext serviceContext)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

updateUser

public User updateUser(long userId,
                       String oldPassword,
                       String newPassword1,
                       String newPassword2,
                       boolean passwordReset,
                       String reminderQueryQuestion,
                       String reminderQueryAnswer,
                       String screenName,
                       String emailAddress,
                       long facebookId,
                       String openId,
                       String languageId,
                       String timeZoneId,
                       String greeting,
                       String comments,
                       String firstName,
                       String middleName,
                       String lastName,
                       int prefixId,
                       int suffixId,
                       boolean male,
                       int birthdayMonth,
                       int birthdayDay,
                       int birthdayYear,
                       String smsSn,
                       String aimSn,
                       String facebookSn,
                       String icqSn,
                       String jabberSn,
                       String msnSn,
                       String mySpaceSn,
                       String skypeSn,
                       String twitterSn,
                       String ymSn,
                       String jobTitle,
                       long[] groupIds,
                       long[] organizationIds,
                       long[] roleIds,
                       List<UserGroupRole> userGroupRoles,
                       long[] userGroupIds,
                       List<Address> addresses,
                       List<EmailAddress> emailAddresses,
                       List<Phone> phones,
                       List<Website> websites,
                       List<AnnouncementsDelivery> announcementsDelivers,
                       ServiceContext serviceContext)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

checkGroups

protected long[] checkGroups(long userId,
                             long[] groupIds)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

checkOrganizations

protected long[] checkOrganizations(long userId,
                                    long[] organizationIds)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

checkRoles

protected long[] checkRoles(long userId,
                            long[] roleIds)
                     throws PrincipalException,
                            SystemException
Throws:
PrincipalException
SystemException

checkUserGroupRoles

protected List<UserGroupRole> checkUserGroupRoles(long userId,
                                                  List<UserGroupRole> userGroupRoles)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

updateAnnouncementsDeliveries

protected void updateAnnouncementsDeliveries(long userId,
                                             List<AnnouncementsDelivery> announcementsDeliveries)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

validateEmailAddress

protected void validateEmailAddress(User user,
                                    String emailAddress)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

validateScreenName

protected void validateScreenName(User user,
                                  String screenName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

validateOrganizationUsers

protected void validateOrganizationUsers(long[] userIds)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5