com.liferay.portal.service.persistence
Class UserUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.UserUtil

public class UserUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
UserUtil()
           
 
Method Summary
static void addGroup(long pk, Group group)
           
static void addGroup(long pk, long groupPK)
           
static void addGroups(long pk, java.util.List<Group> groups)
           
static void addGroups(long pk, long[] groupPKs)
           
static void addOrganization(long pk, long organizationPK)
           
static void addOrganization(long pk, Organization organization)
           
static void addOrganizations(long pk, java.util.List<Organization> organizations)
           
static void addOrganizations(long pk, long[] organizationPKs)
           
static void addPermission(long pk, long permissionPK)
           
static void addPermission(long pk, Permission permission)
           
static void addPermissions(long pk, java.util.List<Permission> permissions)
           
static void addPermissions(long pk, long[] permissionPKs)
           
static void addRole(long pk, long rolePK)
           
static void addRole(long pk, Role role)
           
static void addRoles(long pk, java.util.List<Role> roles)
           
static void addRoles(long pk, long[] rolePKs)
           
static void addUserGroup(long pk, long userGroupPK)
           
static void addUserGroup(long pk, UserGroup userGroup)
           
static void addUserGroups(long pk, java.util.List<UserGroup> userGroups)
           
static void addUserGroups(long pk, long[] userGroupPKs)
           
static void clearGroups(long pk)
           
static void clearOrganizations(long pk)
           
static void clearPermissions(long pk)
           
static void clearRoles(long pk)
           
static void clearUserGroups(long pk)
           
static boolean containsGroup(long pk, long groupPK)
           
static boolean containsGroups(long pk)
           
static boolean containsOrganization(long pk, long organizationPK)
           
static boolean containsOrganizations(long pk)
           
static boolean containsPermission(long pk, long permissionPK)
           
static boolean containsPermissions(long pk)
           
static boolean containsRole(long pk, long rolePK)
           
static boolean containsRoles(long pk)
           
static boolean containsUserGroup(long pk, long userGroupPK)
           
static boolean containsUserGroups(long pk)
           
static int countAll()
           
static int countByC_DU(long companyId, boolean defaultUser)
           
static int countByC_EA(long companyId, java.lang.String emailAddress)
           
static int countByC_P(long companyId, java.lang.String password)
           
static int countByC_SN(long companyId, java.lang.String screenName)
           
static int countByC_U(long companyId, long userId)
           
static int countByCompanyId(long companyId)
           
static int countByContactId(long contactId)
           
static int countByPortraitId(long portraitId)
           
static int countByUuid(java.lang.String uuid)
           
static User create(long userId)
           
static User fetchByC_DU(long companyId, boolean defaultUser)
           
static User fetchByC_EA(long companyId, java.lang.String emailAddress)
           
static User fetchByC_SN(long companyId, java.lang.String screenName)
           
static User fetchByC_U(long companyId, long userId)
           
static User fetchByContactId(long contactId)
           
static User fetchByPortraitId(long portraitId)
           
static User fetchByPrimaryKey(long userId)
           
static java.util.List<User> findAll()
           
static java.util.List<User> findAll(int begin, int end)
           
static java.util.List<User> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User findByC_DU(long companyId, boolean defaultUser)
           
static User findByC_EA(long companyId, java.lang.String emailAddress)
           
static User findByC_P_First(long companyId, java.lang.String password, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User findByC_P_Last(long companyId, java.lang.String password, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User[] findByC_P_PrevAndNext(long userId, long companyId, java.lang.String password, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> findByC_P(long companyId, java.lang.String password)
           
static java.util.List<User> findByC_P(long companyId, java.lang.String password, int begin, int end)
           
static java.util.List<User> findByC_P(long companyId, java.lang.String password, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User findByC_SN(long companyId, java.lang.String screenName)
           
static User findByC_U(long companyId, long userId)
           
static User findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User[] findByCompanyId_PrevAndNext(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> findByCompanyId(long companyId)
           
static java.util.List<User> findByCompanyId(long companyId, int begin, int end)
           
static java.util.List<User> findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User findByContactId(long contactId)
           
static User findByPortraitId(long portraitId)
           
static User findByPrimaryKey(long userId)
           
static User findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static User[] findByUuid_PrevAndNext(long userId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> findByUuid(java.lang.String uuid)
           
static java.util.List<User> findByUuid(java.lang.String uuid, int begin, int end)
           
static java.util.List<User> findByUuid(java.lang.String uuid, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<User> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List<User> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static java.util.List<Group> getGroups(long pk)
           
static java.util.List<Group> getGroups(long pk, int begin, int end)
           
static java.util.List<Group> getGroups(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getGroupsSize(long pk)
           
static java.util.List<Organization> getOrganizations(long pk)
           
static java.util.List<Organization> getOrganizations(long pk, int begin, int end)
           
static java.util.List<Organization> getOrganizations(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getOrganizationsSize(long pk)
           
static java.util.List<Permission> getPermissions(long pk)
           
static java.util.List<Permission> getPermissions(long pk, int begin, int end)
           
static java.util.List<Permission> getPermissions(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getPermissionsSize(long pk)
           
static UserPersistence getPersistence()
           
static java.util.List<Role> getRoles(long pk)
           
static java.util.List<Role> getRoles(long pk, int begin, int end)
           
static java.util.List<Role> getRoles(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getRolesSize(long pk)
           
static java.util.List<UserGroup> getUserGroups(long pk)
           
static java.util.List<UserGroup> getUserGroups(long pk, int begin, int end)
           
static java.util.List<UserGroup> getUserGroups(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getUserGroupsSize(long pk)
           
static User remove(long userId)
           
static User remove(User user)
           
static void removeAll()
           
static void removeByC_DU(long companyId, boolean defaultUser)
           
static void removeByC_EA(long companyId, java.lang.String emailAddress)
           
static void removeByC_P(long companyId, java.lang.String password)
           
static void removeByC_SN(long companyId, java.lang.String screenName)
           
static void removeByC_U(long companyId, long userId)
           
static void removeByCompanyId(long companyId)
           
static void removeByContactId(long contactId)
           
static void removeByPortraitId(long portraitId)
           
static void removeByUuid(java.lang.String uuid)
           
static void removeGroup(long pk, Group group)
           
static void removeGroup(long pk, long groupPK)
           
static void removeGroups(long pk, java.util.List<Group> groups)
           
static void removeGroups(long pk, long[] groupPKs)
           
static void removeOrganization(long pk, long organizationPK)
           
static void removeOrganization(long pk, Organization organization)
           
static void removeOrganizations(long pk, java.util.List<Organization> organizations)
           
static void removeOrganizations(long pk, long[] organizationPKs)
           
static void removePermission(long pk, long permissionPK)
           
static void removePermission(long pk, Permission permission)
           
static void removePermissions(long pk, java.util.List<Permission> permissions)
           
static void removePermissions(long pk, long[] permissionPKs)
           
static void removeRole(long pk, long rolePK)
           
static void removeRole(long pk, Role role)
           
static void removeRoles(long pk, java.util.List<Role> roles)
           
static void removeRoles(long pk, long[] rolePKs)
           
static void removeUserGroup(long pk, long userGroupPK)
           
static void removeUserGroup(long pk, UserGroup userGroup)
           
static void removeUserGroups(long pk, java.util.List<UserGroup> userGroups)
           
static void removeUserGroups(long pk, long[] userGroupPKs)
           
static void setGroups(long pk, java.util.List<Group> groups)
           
static void setGroups(long pk, long[] groupPKs)
           
static void setOrganizations(long pk, java.util.List<Organization> organizations)
           
static void setOrganizations(long pk, long[] organizationPKs)
           
static void setPermissions(long pk, java.util.List<Permission> permissions)
           
static void setPermissions(long pk, long[] permissionPKs)
           
 void setPersistence(UserPersistence persistence)
           
static void setRoles(long pk, java.util.List<Role> roles)
           
static void setRoles(long pk, long[] rolePKs)
           
static void setUserGroups(long pk, java.util.List<UserGroup> userGroups)
           
static void setUserGroups(long pk, long[] userGroupPKs)
           
static User update(User user)
          Deprecated. Use update(User user, boolean merge).
static User update(User user, boolean merge)
          Add, update, or merge, the entity.
static User updateImpl(User user, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserUtil

public UserUtil()
Method Detail

create

public static User create(long userId)

remove

public static User remove(long userId)
                   throws com.liferay.portal.SystemException,
                          NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

remove

public static User remove(User user)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static User update(User user)
                   throws com.liferay.portal.SystemException
Deprecated. Use update(User user, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static User update(User user,
                          boolean merge)
                   throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
user - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when user is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static User updateImpl(User user,
                              boolean merge)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static User findByPrimaryKey(long userId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByPrimaryKey

public static User fetchByPrimaryKey(long userId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<User> findByUuid(java.lang.String uuid)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<User> findByUuid(java.lang.String uuid,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<User> findByUuid(java.lang.String uuid,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

public static User findByUuid_First(java.lang.String uuid,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByUuid_Last

public static User findByUuid_Last(java.lang.String uuid,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByUuid_PrevAndNext

public static User[] findByUuid_PrevAndNext(long userId,
                                            java.lang.String uuid,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByCompanyId

public static java.util.List<User> findByCompanyId(long companyId)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List<User> findByCompanyId(long companyId,
                                                   int begin,
                                                   int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List<User> findByCompanyId(long companyId,
                                                   int begin,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

public static User findByCompanyId_First(long companyId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByCompanyId_Last

public static User findByCompanyId_Last(long companyId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByCompanyId_PrevAndNext

public static User[] findByCompanyId_PrevAndNext(long userId,
                                                 long companyId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByContactId

public static User findByContactId(long contactId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByContactId

public static User fetchByContactId(long contactId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPortraitId

public static User findByPortraitId(long portraitId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByPortraitId

public static User fetchByPortraitId(long portraitId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_U

public static User findByC_U(long companyId,
                             long userId)
                      throws com.liferay.portal.SystemException,
                             NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByC_U

public static User fetchByC_U(long companyId,
                              long userId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_DU

public static User findByC_DU(long companyId,
                              boolean defaultUser)
                       throws com.liferay.portal.SystemException,
                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByC_DU

public static User fetchByC_DU(long companyId,
                               boolean defaultUser)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P

public static java.util.List<User> findByC_P(long companyId,
                                             java.lang.String password)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P

public static java.util.List<User> findByC_P(long companyId,
                                             java.lang.String password,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P

public static java.util.List<User> findByC_P(long companyId,
                                             java.lang.String password,
                                             int begin,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P_First

public static User findByC_P_First(long companyId,
                                   java.lang.String password,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByC_P_Last

public static User findByC_P_Last(long companyId,
                                  java.lang.String password,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByC_P_PrevAndNext

public static User[] findByC_P_PrevAndNext(long userId,
                                           long companyId,
                                           java.lang.String password,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

findByC_SN

public static User findByC_SN(long companyId,
                              java.lang.String screenName)
                       throws com.liferay.portal.SystemException,
                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByC_SN

public static User fetchByC_SN(long companyId,
                               java.lang.String screenName)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_EA

public static User findByC_EA(long companyId,
                              java.lang.String emailAddress)
                       throws com.liferay.portal.SystemException,
                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

fetchByC_EA

public static User fetchByC_EA(long companyId,
                               java.lang.String emailAddress)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<User> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<User> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                        int begin,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<User> findAll()
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<User> findAll(int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<User> findAll(int begin,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUuid

public static void removeByUuid(java.lang.String uuid)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByContactId

public static void removeByContactId(long contactId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeByPortraitId

public static void removeByPortraitId(long portraitId)
                               throws com.liferay.portal.SystemException,
                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeByC_U

public static void removeByC_U(long companyId,
                               long userId)
                        throws com.liferay.portal.SystemException,
                               NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeByC_DU

public static void removeByC_DU(long companyId,
                                boolean defaultUser)
                         throws com.liferay.portal.SystemException,
                                NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeByC_P

public static void removeByC_P(long companyId,
                               java.lang.String password)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_SN

public static void removeByC_SN(long companyId,
                                java.lang.String screenName)
                         throws com.liferay.portal.SystemException,
                                NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeByC_EA

public static void removeByC_EA(long companyId,
                                java.lang.String emailAddress)
                         throws com.liferay.portal.SystemException,
                                NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUuid

public static int countByUuid(java.lang.String uuid)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByContactId

public static int countByContactId(long contactId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByPortraitId

public static int countByPortraitId(long portraitId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_U

public static int countByC_U(long companyId,
                             long userId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_DU

public static int countByC_DU(long companyId,
                              boolean defaultUser)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_P

public static int countByC_P(long companyId,
                             java.lang.String password)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_SN

public static int countByC_SN(long companyId,
                              java.lang.String screenName)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_EA

public static int countByC_EA(long companyId,
                              java.lang.String emailAddress)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroups

public static java.util.List<Group> getGroups(long pk)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getGroups

public static java.util.List<Group> getGroups(long pk,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getGroups

public static java.util.List<Group> getGroups(long pk,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getGroupsSize

public static int getGroupsSize(long pk)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsGroup

public static boolean containsGroup(long pk,
                                    long groupPK)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsGroups

public static boolean containsGroups(long pk)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroup

public static void addGroup(long pk,
                            long groupPK)
                     throws com.liferay.portal.SystemException,
                            NoSuchGroupException,
                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

addGroup

public static void addGroup(long pk,
                            Group group)
                     throws com.liferay.portal.SystemException,
                            NoSuchGroupException,
                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

addGroups

public static void addGroups(long pk,
                             long[] groupPKs)
                      throws com.liferay.portal.SystemException,
                             NoSuchGroupException,
                             NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

addGroups

public static void addGroups(long pk,
                             java.util.List<Group> groups)
                      throws com.liferay.portal.SystemException,
                             NoSuchGroupException,
                             NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

clearGroups

public static void clearGroups(long pk)
                        throws com.liferay.portal.SystemException,
                               NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeGroup

public static void removeGroup(long pk,
                               long groupPK)
                        throws com.liferay.portal.SystemException,
                               NoSuchGroupException,
                               NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

removeGroup

public static void removeGroup(long pk,
                               Group group)
                        throws com.liferay.portal.SystemException,
                               NoSuchGroupException,
                               NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

removeGroups

public static void removeGroups(long pk,
                                long[] groupPKs)
                         throws com.liferay.portal.SystemException,
                                NoSuchGroupException,
                                NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

removeGroups

public static void removeGroups(long pk,
                                java.util.List<Group> groups)
                         throws com.liferay.portal.SystemException,
                                NoSuchGroupException,
                                NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

setGroups

public static void setGroups(long pk,
                             long[] groupPKs)
                      throws com.liferay.portal.SystemException,
                             NoSuchGroupException,
                             NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

setGroups

public static void setGroups(long pk,
                             java.util.List<Group> groups)
                      throws com.liferay.portal.SystemException,
                             NoSuchGroupException,
                             NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchUserException

getOrganizations

public static java.util.List<Organization> getOrganizations(long pk)
                                                     throws com.liferay.portal.SystemException,
                                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getOrganizations

public static java.util.List<Organization> getOrganizations(long pk,
                                                            int begin,
                                                            int end)
                                                     throws com.liferay.portal.SystemException,
                                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getOrganizations

public static java.util.List<Organization> getOrganizations(long pk,
                                                            int begin,
                                                            int end,
                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                     throws com.liferay.portal.SystemException,
                                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getOrganizationsSize

public static int getOrganizationsSize(long pk)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsOrganization

public static boolean containsOrganization(long pk,
                                           long organizationPK)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsOrganizations

public static boolean containsOrganizations(long pk)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addOrganization

public static void addOrganization(long pk,
                                   long organizationPK)
                            throws com.liferay.portal.SystemException,
                                   NoSuchOrganizationException,
                                   NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

addOrganization

public static void addOrganization(long pk,
                                   Organization organization)
                            throws com.liferay.portal.SystemException,
                                   NoSuchOrganizationException,
                                   NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

addOrganizations

public static void addOrganizations(long pk,
                                    long[] organizationPKs)
                             throws com.liferay.portal.SystemException,
                                    NoSuchOrganizationException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

addOrganizations

public static void addOrganizations(long pk,
                                    java.util.List<Organization> organizations)
                             throws com.liferay.portal.SystemException,
                                    NoSuchOrganizationException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

clearOrganizations

public static void clearOrganizations(long pk)
                               throws com.liferay.portal.SystemException,
                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeOrganization

public static void removeOrganization(long pk,
                                      long organizationPK)
                               throws com.liferay.portal.SystemException,
                                      NoSuchOrganizationException,
                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

removeOrganization

public static void removeOrganization(long pk,
                                      Organization organization)
                               throws com.liferay.portal.SystemException,
                                      NoSuchOrganizationException,
                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

removeOrganizations

public static void removeOrganizations(long pk,
                                       long[] organizationPKs)
                                throws com.liferay.portal.SystemException,
                                       NoSuchOrganizationException,
                                       NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

removeOrganizations

public static void removeOrganizations(long pk,
                                       java.util.List<Organization> organizations)
                                throws com.liferay.portal.SystemException,
                                       NoSuchOrganizationException,
                                       NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

setOrganizations

public static void setOrganizations(long pk,
                                    long[] organizationPKs)
                             throws com.liferay.portal.SystemException,
                                    NoSuchOrganizationException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

setOrganizations

public static void setOrganizations(long pk,
                                    java.util.List<Organization> organizations)
                             throws com.liferay.portal.SystemException,
                                    NoSuchOrganizationException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException

getPermissions

public static java.util.List<Permission> getPermissions(long pk)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getPermissions

public static java.util.List<Permission> getPermissions(long pk,
                                                        int begin,
                                                        int end)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getPermissions

public static java.util.List<Permission> getPermissions(long pk,
                                                        int begin,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getPermissionsSize

public static int getPermissionsSize(long pk)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsPermission

public static boolean containsPermission(long pk,
                                         long permissionPK)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsPermissions

public static boolean containsPermissions(long pk)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addPermission

public static void addPermission(long pk,
                                 long permissionPK)
                          throws com.liferay.portal.SystemException,
                                 NoSuchPermissionException,
                                 NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

addPermission

public static void addPermission(long pk,
                                 Permission permission)
                          throws com.liferay.portal.SystemException,
                                 NoSuchPermissionException,
                                 NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

addPermissions

public static void addPermissions(long pk,
                                  long[] permissionPKs)
                           throws com.liferay.portal.SystemException,
                                  NoSuchPermissionException,
                                  NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

addPermissions

public static void addPermissions(long pk,
                                  java.util.List<Permission> permissions)
                           throws com.liferay.portal.SystemException,
                                  NoSuchPermissionException,
                                  NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

clearPermissions

public static void clearPermissions(long pk)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removePermission

public static void removePermission(long pk,
                                    long permissionPK)
                             throws com.liferay.portal.SystemException,
                                    NoSuchPermissionException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

removePermission

public static void removePermission(long pk,
                                    Permission permission)
                             throws com.liferay.portal.SystemException,
                                    NoSuchPermissionException,
                                    NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

removePermissions

public static void removePermissions(long pk,
                                     long[] permissionPKs)
                              throws com.liferay.portal.SystemException,
                                     NoSuchPermissionException,
                                     NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

removePermissions

public static void removePermissions(long pk,
                                     java.util.List<Permission> permissions)
                              throws com.liferay.portal.SystemException,
                                     NoSuchPermissionException,
                                     NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

setPermissions

public static void setPermissions(long pk,
                                  long[] permissionPKs)
                           throws com.liferay.portal.SystemException,
                                  NoSuchPermissionException,
                                  NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

setPermissions

public static void setPermissions(long pk,
                                  java.util.List<Permission> permissions)
                           throws com.liferay.portal.SystemException,
                                  NoSuchPermissionException,
                                  NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException

getRoles

public static java.util.List<Role> getRoles(long pk)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getRoles

public static java.util.List<Role> getRoles(long pk,
                                            int begin,
                                            int end)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getRoles

public static java.util.List<Role> getRoles(long pk,
                                            int begin,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getRolesSize

public static int getRolesSize(long pk)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsRole

public static boolean containsRole(long pk,
                                   long rolePK)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsRoles

public static boolean containsRoles(long pk)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addRole

public static void addRole(long pk,
                           long rolePK)
                    throws com.liferay.portal.SystemException,
                           NoSuchRoleException,
                           NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

addRole

public static void addRole(long pk,
                           Role role)
                    throws com.liferay.portal.SystemException,
                           NoSuchRoleException,
                           NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

addRoles

public static void addRoles(long pk,
                            long[] rolePKs)
                     throws com.liferay.portal.SystemException,
                            NoSuchRoleException,
                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

addRoles

public static void addRoles(long pk,
                            java.util.List<Role> roles)
                     throws com.liferay.portal.SystemException,
                            NoSuchRoleException,
                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

clearRoles

public static void clearRoles(long pk)
                       throws com.liferay.portal.SystemException,
                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeRole

public static void removeRole(long pk,
                              long rolePK)
                       throws com.liferay.portal.SystemException,
                              NoSuchRoleException,
                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

removeRole

public static void removeRole(long pk,
                              Role role)
                       throws com.liferay.portal.SystemException,
                              NoSuchRoleException,
                              NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

removeRoles

public static void removeRoles(long pk,
                               long[] rolePKs)
                        throws com.liferay.portal.SystemException,
                               NoSuchRoleException,
                               NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

removeRoles

public static void removeRoles(long pk,
                               java.util.List<Role> roles)
                        throws com.liferay.portal.SystemException,
                               NoSuchRoleException,
                               NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

setRoles

public static void setRoles(long pk,
                            long[] rolePKs)
                     throws com.liferay.portal.SystemException,
                            NoSuchRoleException,
                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

setRoles

public static void setRoles(long pk,
                            java.util.List<Role> roles)
                     throws com.liferay.portal.SystemException,
                            NoSuchRoleException,
                            NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchUserException

getUserGroups

public static java.util.List<UserGroup> getUserGroups(long pk)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getUserGroups

public static java.util.List<UserGroup> getUserGroups(long pk,
                                                      int begin,
                                                      int end)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getUserGroups

public static java.util.List<UserGroup> getUserGroups(long pk,
                                                      int begin,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

getUserGroupsSize

public static int getUserGroupsSize(long pk)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsUserGroup

public static boolean containsUserGroup(long pk,
                                        long userGroupPK)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsUserGroups

public static boolean containsUserGroups(long pk)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addUserGroup

public static void addUserGroup(long pk,
                                long userGroupPK)
                         throws com.liferay.portal.SystemException,
                                NoSuchUserException,
                                NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

addUserGroup

public static void addUserGroup(long pk,
                                UserGroup userGroup)
                         throws com.liferay.portal.SystemException,
                                NoSuchUserException,
                                NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

addUserGroups

public static void addUserGroups(long pk,
                                 long[] userGroupPKs)
                          throws com.liferay.portal.SystemException,
                                 NoSuchUserException,
                                 NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

addUserGroups

public static void addUserGroups(long pk,
                                 java.util.List<UserGroup> userGroups)
                          throws com.liferay.portal.SystemException,
                                 NoSuchUserException,
                                 NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

clearUserGroups

public static void clearUserGroups(long pk)
                            throws com.liferay.portal.SystemException,
                                   NoSuchUserException
Throws:
com.liferay.portal.SystemException
NoSuchUserException

removeUserGroup

public static void removeUserGroup(long pk,
                                   long userGroupPK)
                            throws com.liferay.portal.SystemException,
                                   NoSuchUserException,
                                   NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

removeUserGroup

public static void removeUserGroup(long pk,
                                   UserGroup userGroup)
                            throws com.liferay.portal.SystemException,
                                   NoSuchUserException,
                                   NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

removeUserGroups

public static void removeUserGroups(long pk,
                                    long[] userGroupPKs)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserException,
                                    NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

removeUserGroups

public static void removeUserGroups(long pk,
                                    java.util.List<UserGroup> userGroups)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserException,
                                    NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

setUserGroups

public static void setUserGroups(long pk,
                                 long[] userGroupPKs)
                          throws com.liferay.portal.SystemException,
                                 NoSuchUserException,
                                 NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

setUserGroups

public static void setUserGroups(long pk,
                                 java.util.List<UserGroup> userGroups)
                          throws com.liferay.portal.SystemException,
                                 NoSuchUserException,
                                 NoSuchUserGroupException
Throws:
com.liferay.portal.SystemException
NoSuchUserException
NoSuchUserGroupException

getPersistence

public static UserPersistence getPersistence()

setPersistence

public void setPersistence(UserPersistence persistence)