com.liferay.portal.service.persistence
Interface UserPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface UserPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

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

Method Detail

create

User create(long userId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

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

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

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByPrimaryKey(long userId)
                      throws NoSuchUserException,
                             com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByPrimaryKey

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

findByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByUuid(java.lang.String uuid)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByUuid(java.lang.String uuid,
                                              int start,
                                              int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByUuid(java.lang.String uuid,
                                              int start,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByUuid_First(java.lang.String uuid,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                      throws NoSuchUserException,
                             com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByUuid_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByUuid_Last(java.lang.String uuid,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                     throws NoSuchUserException,
                            com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByUuid_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User[] findByUuid_PrevAndNext(long userId,
                                            java.lang.String uuid,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws NoSuchUserException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByCompanyId(long companyId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByCompanyId(long companyId,
                                                   int start,
                                                   int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByCompanyId(long companyId,
                                                   int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByCompanyId_First(long companyId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws NoSuchUserException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByCompanyId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByCompanyId_Last(long companyId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws NoSuchUserException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByCompanyId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User[] findByCompanyId_PrevAndNext(long userId,
                                                 long companyId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws NoSuchUserException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByContactId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByContactId(long contactId)
                     throws NoSuchUserException,
                            com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByContactId

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

findByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByEmailAddress(java.lang.String emailAddress)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByEmailAddress(java.lang.String emailAddress,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByEmailAddress(java.lang.String emailAddress,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByEmailAddress_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByEmailAddress_First(java.lang.String emailAddress,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws NoSuchUserException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByEmailAddress_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByEmailAddress_Last(java.lang.String emailAddress,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchUserException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByEmailAddress_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User[] findByEmailAddress_PrevAndNext(long userId,
                                                    java.lang.String emailAddress,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws NoSuchUserException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByOpenId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByOpenId(java.lang.String openId)
                  throws NoSuchUserException,
                         com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByOpenId

User fetchByOpenId(java.lang.String openId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPortraitId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByPortraitId(long portraitId)
                      throws NoSuchUserException,
                             com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByPortraitId

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

findByC_U

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByC_U(long companyId,
                             long userId)
               throws NoSuchUserException,
                      com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByC_U

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

findByC_DU

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByC_DU(long companyId,
                              boolean defaultUser)
                throws NoSuchUserException,
                       com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByC_DU

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

findByC_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByC_P(long companyId,
                                             java.lang.String password)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByC_P(long companyId,
                                             java.lang.String password,
                                             int start,
                                             int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findByC_P(long companyId,
                                             java.lang.String password,
                                             int start,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByC_P_First(long companyId,
                                   java.lang.String password,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                     throws NoSuchUserException,
                            com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByC_P_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByC_P_Last(long companyId,
                                  java.lang.String password,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                    throws NoSuchUserException,
                           com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByC_P_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User[] findByC_P_PrevAndNext(long userId,
                                           long companyId,
                                           java.lang.String password,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchUserException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

findByC_SN

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByC_SN(long companyId,
                              java.lang.String screenName)
                throws NoSuchUserException,
                       com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByC_SN

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

findByC_EA

@Transactional(propagation=SUPPORTS,
               readOnly=true)
User findByC_EA(long companyId,
                              java.lang.String emailAddress)
                throws NoSuchUserException,
                       com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

fetchByC_EA

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

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findAll()
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findAll(int start,
                                           int end)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<User> findAll(int start,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUuid

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

removeByCompanyId

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

removeByContactId

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

removeByEmailAddress

void removeByEmailAddress(java.lang.String emailAddress)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByOpenId

void removeByOpenId(java.lang.String openId)
                    throws NoSuchUserException,
                           com.liferay.portal.SystemException
Throws:
NoSuchUserException
com.liferay.portal.SystemException

removeByPortraitId

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

removeByC_U

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

removeByC_DU

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

removeByC_P

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

removeByC_SN

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

removeByC_EA

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

removeAll

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

countByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByContactId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByContactId(long contactId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByEmailAddress(java.lang.String emailAddress)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByOpenId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByOpenId(java.lang.String openId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByPortraitId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByPortraitId(long portraitId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_U

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_U(long companyId,
                             long userId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_DU

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_DU(long companyId,
                              boolean defaultUser)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_P(long companyId,
                             java.lang.String password)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_SN

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_SN(long companyId,
                              java.lang.String screenName)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_EA

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_EA(long companyId,
                              java.lang.String emailAddress)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getGroups(long pk)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getGroups(long pk,
                                              int start,
                                              int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Group> getGroups(long pk,
                                              int start,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupsSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupsSize(long pk)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsGroup(long pk,
                                    long groupPK)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsGroups(long pk)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroup

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

addGroup

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

addGroups

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

addGroups

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

clearGroups

void clearGroups(long pk)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeGroup

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

removeGroup

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

removeGroups

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

removeGroups

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

setGroups

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

setGroups

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

getOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getOrganizations(long pk)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getOrganizations(long pk,
                                                            int start,
                                                            int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getOrganizations(long pk,
                                                            int start,
                                                            int end,
                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationsSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationsSize(long pk)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsOrganization

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsOrganization(long pk,
                                           long organizationPK)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsOrganizations(long pk)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addOrganization

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

addOrganization

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

addOrganizations

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

addOrganizations

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

clearOrganizations

void clearOrganizations(long pk)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeOrganization

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

removeOrganization

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

removeOrganizations

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

removeOrganizations

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

setOrganizations

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

setOrganizations

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

getPermissions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Permission> getPermissions(long pk)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPermissions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Permission> getPermissions(long pk,
                                                        int start,
                                                        int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPermissions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Permission> getPermissions(long pk,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPermissionsSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPermissionsSize(long pk)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsPermission

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsPermission(long pk,
                                         long permissionPK)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsPermissions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsPermissions(long pk)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addPermission

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

addPermission

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

addPermissions

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

addPermissions

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

clearPermissions

void clearPermissions(long pk)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removePermission

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

removePermission

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

removePermissions

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

removePermissions

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

setPermissions

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

setPermissions

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

getRoles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Role> getRoles(long pk)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Role> getRoles(long pk,
                                            int start,
                                            int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRoles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Role> getRoles(long pk,
                                            int start,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRolesSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getRolesSize(long pk)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsRole

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsRole(long pk,
                                   long rolePK)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsRoles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsRoles(long pk)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addRole

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

addRole

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

addRoles

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

addRoles

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

clearRoles

void clearRoles(long pk)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeRole

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

removeRole

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

removeRoles

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

removeRoles

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

setRoles

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

setRoles

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

getUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroup> getUserGroups(long pk)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroup> getUserGroups(long pk,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroup> getUserGroups(long pk,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserGroupsSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserGroupsSize(long pk)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsUserGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsUserGroup(long pk,
                                        long userGroupPK)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsUserGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsUserGroups(long pk)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addUserGroup

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

addUserGroup

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

addUserGroups

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

addUserGroups

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

clearUserGroups

void clearUserGroups(long pk)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeUserGroup

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

removeUserGroup

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

removeUserGroups

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

removeUserGroups

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

setUserGroups

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

setUserGroups

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