Class UserPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>,com.liferay.portal.kernel.service.persistence.UserPersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected com.liferay.portal.kernel.service.persistence.GroupPersistenceprotected com.liferay.portal.kernel.service.persistence.OrganizationPersistenceprotected com.liferay.portal.kernel.service.persistence.RolePersistenceprotected com.liferay.portal.kernel.service.persistence.TeamPersistenceprotected com.liferay.portal.kernel.service.persistence.UserGroupPersistenceprotected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Group> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Organization> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Role> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Team> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.UserGroup> Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroup(long pk, long groupPK) Adds an association between the user and the group.booleanaddGroup(long pk, com.liferay.portal.kernel.model.Group group) Adds an association between the user and the group.booleanaddGroups(long pk, long[] groupPKs) Adds an association between the user and the groups.booleanAdds an association between the user and the groups.booleanaddOrganization(long pk, long organizationPK) Adds an association between the user and the organization.booleanaddOrganization(long pk, com.liferay.portal.kernel.model.Organization organization) Adds an association between the user and the organization.booleanaddOrganizations(long pk, long[] organizationPKs) Adds an association between the user and the organizations.booleanaddOrganizations(long pk, List<com.liferay.portal.kernel.model.Organization> organizations) Adds an association between the user and the organizations.booleanaddRole(long pk, long rolePK) Adds an association between the user and the role.booleanaddRole(long pk, com.liferay.portal.kernel.model.Role role) Adds an association between the user and the role.booleanaddRoles(long pk, long[] rolePKs) Adds an association between the user and the roles.booleanAdds an association between the user and the roles.booleanaddTeam(long pk, long teamPK) Adds an association between the user and the team.booleanaddTeam(long pk, com.liferay.portal.kernel.model.Team team) Adds an association between the user and the team.booleanaddTeams(long pk, long[] teamPKs) Adds an association between the user and the teams.booleanAdds an association between the user and the teams.booleanaddUserGroup(long pk, long userGroupPK) Adds an association between the user and the user group.booleanaddUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Adds an association between the user and the user group.booleanaddUserGroups(long pk, long[] userGroupPKs) Adds an association between the user and the user groups.booleanaddUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Adds an association between the user and the user groups.voidInitializes the user persistence.voidcacheResult(com.liferay.portal.kernel.model.User user) Caches the user in the entity cache if it is enabled.voidcacheResult(List<com.liferay.portal.kernel.model.User> users) Caches the users in the entity cache if it is enabled.protected voidcacheUniqueFindersCache(UserModelImpl userModelImpl) voidClears the cache for all users.voidclearCache(com.liferay.portal.kernel.model.User user) Clears the cache for the user.voidclearCache(List<com.liferay.portal.kernel.model.User> users) voidclearCache(Set<Serializable> primaryKeys) voidclearGroups(long pk) Clears all associations between the user and its groups.voidclearOrganizations(long pk) Clears all associations between the user and its organizations.voidclearRoles(long pk) Clears all associations between the user and its roles.voidclearTeams(long pk) Clears all associations between the user and its teams.voidclearUserGroups(long pk) Clears all associations between the user and its user groups.booleancontainsGroup(long pk, long groupPK) Returnstrueif the group is associated with the user.booleancontainsGroups(long pk) Returnstrueif the user has any groups associated with it.booleancontainsOrganization(long pk, long organizationPK) Returnstrueif the organization is associated with the user.booleancontainsOrganizations(long pk) Returnstrueif the user has any organizations associated with it.booleancontainsRole(long pk, long rolePK) Returnstrueif the role is associated with the user.booleancontainsRoles(long pk) Returnstrueif the user has any roles associated with it.booleancontainsTeam(long pk, long teamPK) Returnstrueif the team is associated with the user.booleancontainsTeams(long pk) Returnstrueif the user has any teams associated with it.booleancontainsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the user.booleancontainsUserGroups(long pk) Returnstrueif the user has any user groups associated with it.intcountAll()Returns the number of users.intcountByC_CD(long companyId, Date createDate) Returns the number of users where companyId = ? and createDate = ?.intcountByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?.intcountByC_EA(long companyId, String emailAddress) Returns the number of users where companyId = ? and emailAddress = ?.intcountByC_FID(long companyId, long facebookId) Returns the number of users where companyId = ? and facebookId = ?.intcountByC_GUID(long companyId, String googleUserId) Returns the number of users where companyId = ? and googleUserId = ?.intcountByC_MD(long companyId, Date modifiedDate) Returns the number of users where companyId = ? and modifiedDate = ?.intcountByC_O(long companyId, String openId) Returns the number of users where companyId = ? and openId = ?.intcountByC_S(long companyId, int status) Returns the number of users where companyId = ? and status = ?.intcountByC_SN(long companyId, String screenName) Returns the number of users where companyId = ? and screenName = ?.intcountByC_T(long companyId, int type) Returns the number of users where companyId = ? and type = ?.intcountByC_T_S(long companyId, int type, int status) Returns the number of users where companyId = ? and type = ? and status = ?.intcountByC_U(long companyId, long userId) Returns the number of users where companyId = ? and userId = ?.intcountByCompanyId(long companyId) Returns the number of users where companyId = ?.intcountByContactId(long contactId) Returns the number of users where contactId = ?.intcountByEmailAddress(String emailAddress) Returns the number of users where emailAddress = ?.intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of users where externalReferenceCode = ? and companyId = ?.intcountByGtU_C(long userId, long companyId) Returns the number of users where userId > ? and companyId = ?.intcountByPortraitId(long portraitId) Returns the number of users where portraitId = ?.intcountByUuid(String uuid) Returns the number of users where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of users where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Usercreate(long userId) Creates a new user with the primary key.voiddestroy()com.liferay.portal.kernel.model.UserfetchByC_CD_First(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ?.com.liferay.portal.kernel.model.UserfetchByC_CD_Last(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ?.com.liferay.portal.kernel.model.UserfetchByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfetchByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfetchByC_EA(long companyId, String emailAddress) Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByC_EA(long companyId, String emailAddress, boolean useFinderCache) Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByC_FID(long companyId, long facebookId) Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByC_FID(long companyId, long facebookId, boolean useFinderCache) Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByC_GUID(long companyId, String googleUserId) Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByC_GUID(long companyId, String googleUserId, boolean useFinderCache) Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByC_MD_First(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfetchByC_MD_Last(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfetchByC_O(long companyId, String openId) Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByC_O(long companyId, String openId, boolean useFinderCache) Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and status = ?.com.liferay.portal.kernel.model.UserfetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and status = ?.com.liferay.portal.kernel.model.UserfetchByC_SN(long companyId, String screenName) Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByC_SN(long companyId, String screenName, boolean useFinderCache) Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ?.com.liferay.portal.kernel.model.UserfetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ?.com.liferay.portal.kernel.model.UserfetchByC_T_S_First(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.com.liferay.portal.kernel.model.UserfetchByC_T_S_Last(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.com.liferay.portal.kernel.model.UserfetchByC_U(long companyId, long userId) Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByC_U(long companyId, long userId, boolean useFinderCache) Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ?.com.liferay.portal.kernel.model.UserfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ?.com.liferay.portal.kernel.model.UserfetchByContactId(long contactId) Returns the user where contactId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByContactId(long contactId, boolean useFinderCache) Returns the user where contactId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByEmailAddress_First(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where emailAddress = ?.com.liferay.portal.kernel.model.UserfetchByEmailAddress_Last(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where emailAddress = ?.com.liferay.portal.kernel.model.UserfetchByERC_C(String externalReferenceCode, long companyId) Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByGtU_C_First(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where userId > ? and companyId = ?.com.liferay.portal.kernel.model.UserfetchByGtU_C_Last(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where userId > ? and companyId = ?.com.liferay.portal.kernel.model.UserfetchByPortraitId(long portraitId) Returns the user where portraitId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByPortraitId(long portraitId, boolean useFinderCache) Returns the user where portraitId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.UserfetchByPrimaryKey(long userId) Returns the user with the primary key or returnsnullif it could not be found.com.liferay.portal.kernel.model.UserfetchByPrimaryKey(Serializable primaryKey) Returns the user with the primary key or returnsnullif it could not be found.Map<Serializable,com.liferay.portal.kernel.model.User> fetchByPrimaryKeys(Set<Serializable> primaryKeys) com.liferay.portal.kernel.model.UserfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.UserfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.UserfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where uuid = ?.com.liferay.portal.kernel.model.UserfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where uuid = ?.List<com.liferay.portal.kernel.model.User>findAll()Returns all the users.List<com.liferay.portal.kernel.model.User>findAll(int start, int end) Returns a range of all the users.List<com.liferay.portal.kernel.model.User>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users.List<com.liferay.portal.kernel.model.User>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users.List<com.liferay.portal.kernel.model.User>findByC_CD(long companyId, Date createDate) Returns all the users where companyId = ? and createDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD(long companyId, Date createDate, int start, int end) Returns a range of all the users where companyId = ? and createDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD(long companyId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD(long companyId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and createDate = ?.com.liferay.portal.kernel.model.UserfindByC_CD_First(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ?.com.liferay.portal.kernel.model.UserfindByC_CD_Last(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end) Returns a range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.List<com.liferay.portal.kernel.model.User>findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfindByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfindByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.com.liferay.portal.kernel.model.User[]findByC_CD_MD_PrevAndNext(long userId, long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.com.liferay.portal.kernel.model.User[]findByC_CD_PrevAndNext(long userId, long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.com.liferay.portal.kernel.model.UserfindByC_EA(long companyId, String emailAddress) Returns the user where companyId = ? and emailAddress = ? or throws aNoSuchUserExceptionif it could not be found.com.liferay.portal.kernel.model.UserfindByC_FID(long companyId, long facebookId) Returns the user where companyId = ? and facebookId = ? or throws aNoSuchUserExceptionif it could not be found.com.liferay.portal.kernel.model.UserfindByC_GUID(long companyId, String googleUserId) Returns the user where companyId = ? and googleUserId = ? or throws aNoSuchUserExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByC_MD(long companyId, Date modifiedDate) Returns all the users where companyId = ? and modifiedDate = ?.List<com.liferay.portal.kernel.model.User>findByC_MD(long companyId, Date modifiedDate, int start, int end) Returns a range of all the users where companyId = ? and modifiedDate = ?.List<com.liferay.portal.kernel.model.User>findByC_MD(long companyId, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.List<com.liferay.portal.kernel.model.User>findByC_MD(long companyId, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfindByC_MD_First(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserfindByC_MD_Last(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.com.liferay.portal.kernel.model.User[]findByC_MD_PrevAndNext(long userId, long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.com.liferay.portal.kernel.model.UserReturns the user where companyId = ? and openId = ? or throws aNoSuchUserExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByC_S(long companyId, int status) Returns all the users where companyId = ? and status = ?.List<com.liferay.portal.kernel.model.User>findByC_S(long companyId, int status, int start, int end) Returns a range of all the users where companyId = ? and status = ?.List<com.liferay.portal.kernel.model.User>findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and status = ?.List<com.liferay.portal.kernel.model.User>findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and status = ?.com.liferay.portal.kernel.model.UserfindByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and status = ?.com.liferay.portal.kernel.model.UserfindByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and status = ?.com.liferay.portal.kernel.model.User[]findByC_S_PrevAndNext(long userId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.com.liferay.portal.kernel.model.UserfindByC_SN(long companyId, String screenName) Returns the user where companyId = ? and screenName = ? or throws aNoSuchUserExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByC_T(long companyId, int type) Returns all the users where companyId = ? and type = ?.List<com.liferay.portal.kernel.model.User>findByC_T(long companyId, int type, int start, int end) Returns a range of all the users where companyId = ? and type = ?.List<com.liferay.portal.kernel.model.User>findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and type = ?.List<com.liferay.portal.kernel.model.User>findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and type = ?.com.liferay.portal.kernel.model.UserfindByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ?.com.liferay.portal.kernel.model.UserfindByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ?.com.liferay.portal.kernel.model.User[]findByC_T_PrevAndNext(long userId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and type = ?.List<com.liferay.portal.kernel.model.User>findByC_T_S(long companyId, int type, int status) Returns all the users where companyId = ? and type = ? and status = ?.List<com.liferay.portal.kernel.model.User>findByC_T_S(long companyId, int type, int status, int start, int end) Returns a range of all the users where companyId = ? and type = ? and status = ?.List<com.liferay.portal.kernel.model.User>findByC_T_S(long companyId, int type, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and type = ? and status = ?.List<com.liferay.portal.kernel.model.User>findByC_T_S(long companyId, int type, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and type = ? and status = ?.com.liferay.portal.kernel.model.UserfindByC_T_S_First(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.com.liferay.portal.kernel.model.UserfindByC_T_S_Last(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.com.liferay.portal.kernel.model.User[]findByC_T_S_PrevAndNext(long userId, long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and type = ? and status = ?.com.liferay.portal.kernel.model.UserfindByC_U(long companyId, long userId) Returns the user where companyId = ? and userId = ? or throws aNoSuchUserExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByCompanyId(long companyId) Returns all the users where companyId = ?.List<com.liferay.portal.kernel.model.User>findByCompanyId(long companyId, int start, int end) Returns a range of all the users where companyId = ?.List<com.liferay.portal.kernel.model.User>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ?.List<com.liferay.portal.kernel.model.User>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ?.com.liferay.portal.kernel.model.UserfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ?.com.liferay.portal.kernel.model.UserfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ?.com.liferay.portal.kernel.model.User[]findByCompanyId_PrevAndNext(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ?.com.liferay.portal.kernel.model.UserfindByContactId(long contactId) Returns the user where contactId = ? or throws aNoSuchUserExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByEmailAddress(String emailAddress) Returns all the users where emailAddress = ?.List<com.liferay.portal.kernel.model.User>findByEmailAddress(String emailAddress, int start, int end) Returns a range of all the users where emailAddress = ?.List<com.liferay.portal.kernel.model.User>findByEmailAddress(String emailAddress, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where emailAddress = ?.List<com.liferay.portal.kernel.model.User>findByEmailAddress(String emailAddress, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where emailAddress = ?.com.liferay.portal.kernel.model.UserfindByEmailAddress_First(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where emailAddress = ?.com.liferay.portal.kernel.model.UserfindByEmailAddress_Last(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where emailAddress = ?.com.liferay.portal.kernel.model.User[]findByEmailAddress_PrevAndNext(long userId, String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where emailAddress = ?.com.liferay.portal.kernel.model.UserfindByERC_C(String externalReferenceCode, long companyId) Returns the user where externalReferenceCode = ? and companyId = ? or throws aNoSuchUserExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByGtU_C(long userId, long companyId) Returns all the users where userId > ? and companyId = ?.List<com.liferay.portal.kernel.model.User>findByGtU_C(long userId, long companyId, int start, int end) Returns a range of all the users where userId > ? and companyId = ?.List<com.liferay.portal.kernel.model.User>findByGtU_C(long userId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where userId > ? and companyId = ?.List<com.liferay.portal.kernel.model.User>findByGtU_C(long userId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where userId > ? and companyId = ?.com.liferay.portal.kernel.model.UserfindByGtU_C_First(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where userId > ? and companyId = ?.com.liferay.portal.kernel.model.UserfindByGtU_C_Last(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where userId > ? and companyId = ?.com.liferay.portal.kernel.model.UserfindByPortraitId(long portraitId) Returns the user where portraitId = ? or throws aNoSuchUserExceptionif it could not be found.com.liferay.portal.kernel.model.UserfindByPrimaryKey(long userId) Returns the user with the primary key or throws aNoSuchUserExceptionif it could not be found.com.liferay.portal.kernel.model.UserfindByPrimaryKey(Serializable primaryKey) Returns the user with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.List<com.liferay.portal.kernel.model.User>findByUuid(String uuid) Returns all the users where uuid = ?.List<com.liferay.portal.kernel.model.User>findByUuid(String uuid, int start, int end) Returns a range of all the users where uuid = ?.List<com.liferay.portal.kernel.model.User>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where uuid = ?.List<com.liferay.portal.kernel.model.User>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where uuid = ?.List<com.liferay.portal.kernel.model.User>findByUuid_C(String uuid, long companyId) Returns all the users where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.User>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the users where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.User>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.User>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.UserfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.UserfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.User[]findByUuid_C_PrevAndNext(long userId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.UserfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where uuid = ?.com.liferay.portal.kernel.model.UserfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where uuid = ?.com.liferay.portal.kernel.model.User[]findByUuid_PrevAndNext(long userId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the users before and after the current user in the ordered set where uuid = ?.protected com.liferay.portal.kernel.model.UsergetByC_CD_MD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByC_CD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByC_MD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByC_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByC_T_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByEmailAddress_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.UsergetByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCachelong[]getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the user.List<com.liferay.portal.kernel.model.Group>getGroups(long pk) Returns all the groups associated with the user.List<com.liferay.portal.kernel.model.Group>getGroups(long pk, int start, int end) Returns a range of all the groups associated with the user.List<com.liferay.portal.kernel.model.Group>getGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) Returns an ordered range of all the groups associated with the user.intgetGroupsSize(long pk) Returns the number of groups associated with the user.long[]getOrganizationPrimaryKeys(long pk) Returns the primaryKeys of organizations associated with the user.List<com.liferay.portal.kernel.model.Organization>getOrganizations(long pk) Returns all the organizations associated with the user.List<com.liferay.portal.kernel.model.Organization>getOrganizations(long pk, int start, int end) Returns a range of all the organizations associated with the user.List<com.liferay.portal.kernel.model.Organization>getOrganizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations associated with the user.intgetOrganizationsSize(long pk) Returns the number of organizations associated with the user.protected Stringlong[]getRolePrimaryKeys(long pk) Returns the primaryKeys of roles associated with the user.List<com.liferay.portal.kernel.model.Role>getRoles(long pk) Returns all the roles associated with the user.List<com.liferay.portal.kernel.model.Role>getRoles(long pk, int start, int end) Returns a range of all the roles associated with the user.List<com.liferay.portal.kernel.model.Role>getRoles(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> orderByComparator) Returns an ordered range of all the roles associated with the user.intgetRolesSize(long pk) Returns the number of roles associated with the user.protected Stringlong[]getTeamPrimaryKeys(long pk) Returns the primaryKeys of teams associated with the user.List<com.liferay.portal.kernel.model.Team>getTeams(long pk) Returns all the teams associated with the user.List<com.liferay.portal.kernel.model.Team>getTeams(long pk, int start, int end) Returns a range of all the teams associated with the user.List<com.liferay.portal.kernel.model.Team>getTeams(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams associated with the user.intgetTeamsSize(long pk) Returns the number of teams associated with the user.long[]getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the user.List<com.liferay.portal.kernel.model.UserGroup>getUserGroups(long pk) Returns all the user groups associated with the user.List<com.liferay.portal.kernel.model.UserGroup>getUserGroups(long pk, int start, int end) Returns a range of all the user groups associated with the user.List<com.liferay.portal.kernel.model.UserGroup>getUserGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the user.intgetUserGroupsSize(long pk) Returns the number of user groups associated with the user.com.liferay.portal.kernel.model.Userremove(long userId) Removes the user with the primary key from the database.com.liferay.portal.kernel.model.Userremove(Serializable primaryKey) Removes the user with the primary key from the database.voidRemoves all the users from the database.voidremoveByC_CD(long companyId, Date createDate) Removes all the users where companyId = ? and createDate = ? from the database.voidremoveByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database.com.liferay.portal.kernel.model.UserremoveByC_EA(long companyId, String emailAddress) Removes the user where companyId = ? and emailAddress = ? from the database.com.liferay.portal.kernel.model.UserremoveByC_FID(long companyId, long facebookId) Removes the user where companyId = ? and facebookId = ? from the database.com.liferay.portal.kernel.model.UserremoveByC_GUID(long companyId, String googleUserId) Removes the user where companyId = ? and googleUserId = ? from the database.voidremoveByC_MD(long companyId, Date modifiedDate) Removes all the users where companyId = ? and modifiedDate = ? from the database.com.liferay.portal.kernel.model.UserremoveByC_O(long companyId, String openId) Removes the user where companyId = ? and openId = ? from the database.voidremoveByC_S(long companyId, int status) Removes all the users where companyId = ? and status = ? from the database.com.liferay.portal.kernel.model.UserremoveByC_SN(long companyId, String screenName) Removes the user where companyId = ? and screenName = ? from the database.voidremoveByC_T(long companyId, int type) Removes all the users where companyId = ? and type = ? from the database.voidremoveByC_T_S(long companyId, int type, int status) Removes all the users where companyId = ? and type = ? and status = ? from the database.com.liferay.portal.kernel.model.UserremoveByC_U(long companyId, long userId) Removes the user where companyId = ? and userId = ? from the database.voidremoveByCompanyId(long companyId) Removes all the users where companyId = ? from the database.com.liferay.portal.kernel.model.UserremoveByContactId(long contactId) Removes the user where contactId = ? from the database.voidremoveByEmailAddress(String emailAddress) Removes all the users where emailAddress = ? from the database.com.liferay.portal.kernel.model.UserremoveByERC_C(String externalReferenceCode, long companyId) Removes the user where externalReferenceCode = ? and companyId = ? from the database.voidremoveByGtU_C(long userId, long companyId) Removes all the users where userId > ? and companyId = ? from the database.com.liferay.portal.kernel.model.UserremoveByPortraitId(long portraitId) Removes the user where portraitId = ? from the database.voidremoveByUuid(String uuid) Removes all the users where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the users where uuid = ? and companyId = ? from the database.voidremoveGroup(long pk, long groupPK) Removes the association between the user and the group.voidremoveGroup(long pk, com.liferay.portal.kernel.model.Group group) Removes the association between the user and the group.voidremoveGroups(long pk, long[] groupPKs) Removes the association between the user and the groups.voidremoveGroups(long pk, List<com.liferay.portal.kernel.model.Group> groups) Removes the association between the user and the groups.protected com.liferay.portal.kernel.model.UserremoveImpl(com.liferay.portal.kernel.model.User user) voidremoveOrganization(long pk, long organizationPK) Removes the association between the user and the organization.voidremoveOrganization(long pk, com.liferay.portal.kernel.model.Organization organization) Removes the association between the user and the organization.voidremoveOrganizations(long pk, long[] organizationPKs) Removes the association between the user and the organizations.voidremoveOrganizations(long pk, List<com.liferay.portal.kernel.model.Organization> organizations) Removes the association between the user and the organizations.voidremoveRole(long pk, long rolePK) Removes the association between the user and the role.voidremoveRole(long pk, com.liferay.portal.kernel.model.Role role) Removes the association between the user and the role.voidremoveRoles(long pk, long[] rolePKs) Removes the association between the user and the roles.voidremoveRoles(long pk, List<com.liferay.portal.kernel.model.Role> roles) Removes the association between the user and the roles.voidremoveTeam(long pk, long teamPK) Removes the association between the user and the team.voidremoveTeam(long pk, com.liferay.portal.kernel.model.Team team) Removes the association between the user and the team.voidremoveTeams(long pk, long[] teamPKs) Removes the association between the user and the teams.voidremoveTeams(long pk, List<com.liferay.portal.kernel.model.Team> teams) Removes the association between the user and the teams.voidremoveUserGroup(long pk, long userGroupPK) Removes the association between the user and the user group.voidremoveUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Removes the association between the user and the user group.voidremoveUserGroups(long pk, long[] userGroupPKs) Removes the association between the user and the user groups.voidremoveUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Removes the association between the user and the user groups.voidsetGroups(long pk, long[] groupPKs) Sets the groups associated with the user, removing and adding associations as necessary.voidSets the groups associated with the user, removing and adding associations as necessary.voidsetOrganizations(long pk, long[] organizationPKs) Sets the organizations associated with the user, removing and adding associations as necessary.voidsetOrganizations(long pk, List<com.liferay.portal.kernel.model.Organization> organizations) Sets the organizations associated with the user, removing and adding associations as necessary.voidsetRoles(long pk, long[] rolePKs) Sets the roles associated with the user, removing and adding associations as necessary.voidSets the roles associated with the user, removing and adding associations as necessary.voidsetTeams(long pk, long[] teamPKs) Sets the teams associated with the user, removing and adding associations as necessary.voidSets the teams associated with the user, removing and adding associations as necessary.voidsetUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the user, removing and adding associations as necessary.voidsetUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Sets the user groups associated with the user, removing and adding associations as necessary.com.liferay.portal.kernel.model.UserupdateImpl(com.liferay.portal.kernel.model.User user) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence -
userToGroupTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Group> userToGroupTableMapper -
organizationPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence -
userToOrganizationTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Organization> userToOrganizationTableMapper -
rolePersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence -
userToRoleTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Role> userToRoleTableMapper -
teamPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.TeamPersistence.class) protected com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence -
userToTeamTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.Team> userToTeamTableMapper -
userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence -
userToUserGroupTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.User,com.liferay.portal.kernel.model.UserGroup> userToUserGroupTableMapper
-
-
Constructor Details
-
UserPersistenceImpl
public UserPersistenceImpl()
-
-
Method Details
-
findByUuid
Returns all the users where uuid = ?.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuid- Returns:
- the matching users
-
findByUuid
Returns a range of all the users where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByUuid
public List<com.liferay.portal.kernel.model.User> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByUuid
public List<com.liferay.portal.kernel.model.User> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByUuid_First
public com.liferay.portal.kernel.model.User findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where uuid = ?.- Specified by:
findByUuid_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByUuid_First
public com.liferay.portal.kernel.model.User fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where uuid = ?.- Specified by:
fetchByUuid_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByUuid_Last
public com.liferay.portal.kernel.model.User findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where uuid = ?.- Specified by:
findByUuid_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByUuid_Last
public com.liferay.portal.kernel.model.User fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where uuid = ?.- Specified by:
fetchByUuid_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByUuid_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByUuid_PrevAndNext(long userId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where uuid = ?.- Specified by:
findByUuid_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current useruuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByUuid_PrevAndNext
protected com.liferay.portal.kernel.model.User getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByUuid
Removes all the users where uuid = ? from the database.- Specified by:
removeByUuidin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of users where uuid = ?.- Specified by:
countByUuidin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuid- Returns:
- the number of matching users
-
findByUuid_C
Returns all the users where uuid = ? and companyId = ?.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching users
-
findByUuid_C
public List<com.liferay.portal.kernel.model.User> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the users where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByUuid_C
public List<com.liferay.portal.kernel.model.User> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByUuid_C
public List<com.liferay.portal.kernel.model.User> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByUuid_C_First
public com.liferay.portal.kernel.model.User findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByUuid_C_First
public com.liferay.portal.kernel.model.User fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where uuid = ? and companyId = ?.- Specified by:
fetchByUuid_C_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByUuid_C_Last
public com.liferay.portal.kernel.model.User findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByUuid_C_Last
public com.liferay.portal.kernel.model.User fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where uuid = ? and companyId = ?.- Specified by:
fetchByUuid_C_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByUuid_C_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByUuid_C_PrevAndNext(long userId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current useruuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByUuid_C_PrevAndNext
protected com.liferay.portal.kernel.model.User getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByUuid_C
Removes all the users where uuid = ? and companyId = ? from the database.- Specified by:
removeByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of users where uuid = ? and companyId = ?.- Specified by:
countByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching users
-
findByCompanyId
Returns all the users where companyId = ?.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company ID- Returns:
- the matching users
-
findByCompanyId
public List<com.liferay.portal.kernel.model.User> findByCompanyId(long companyId, int start, int end) Returns a range of all the users where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByCompanyId
public List<com.liferay.portal.kernel.model.User> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByCompanyId
public List<com.liferay.portal.kernel.model.User> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByCompanyId_First
public com.liferay.portal.kernel.model.User findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByCompanyId_First
public com.liferay.portal.kernel.model.User fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByCompanyId_Last
public com.liferay.portal.kernel.model.User findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByCompanyId_Last
public com.liferay.portal.kernel.model.User fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByCompanyId_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByCompanyId_PrevAndNext(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ?.- Specified by:
findByCompanyId_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByCompanyId_PrevAndNext
protected com.liferay.portal.kernel.model.User getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the users where companyId = ? from the database.- Specified by:
removeByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of users where companyId = ?.- Specified by:
countByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching users
-
findByContactId
public com.liferay.portal.kernel.model.User findByContactId(long contactId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where contactId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByContactIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
contactId- the contact ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByContactId
public com.liferay.portal.kernel.model.User fetchByContactId(long contactId) Returns the user where contactId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByContactIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
contactId- the contact ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByContactId
public com.liferay.portal.kernel.model.User fetchByContactId(long contactId, boolean useFinderCache) Returns the user where contactId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByContactIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
contactId- the contact IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByContactId
public com.liferay.portal.kernel.model.User removeByContactId(long contactId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where contactId = ? from the database.- Specified by:
removeByContactIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
contactId- the contact ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByContactId
public int countByContactId(long contactId) Returns the number of users where contactId = ?.- Specified by:
countByContactIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
contactId- the contact ID- Returns:
- the number of matching users
-
findByEmailAddress
Returns all the users where emailAddress = ?.- Specified by:
findByEmailAddressin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email address- Returns:
- the matching users
-
findByEmailAddress
public List<com.liferay.portal.kernel.model.User> findByEmailAddress(String emailAddress, int start, int end) Returns a range of all the users where emailAddress = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByEmailAddressin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByEmailAddress
public List<com.liferay.portal.kernel.model.User> findByEmailAddress(String emailAddress, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where emailAddress = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByEmailAddressin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByEmailAddress
public List<com.liferay.portal.kernel.model.User> findByEmailAddress(String emailAddress, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where emailAddress = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByEmailAddressin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByEmailAddress_First
public com.liferay.portal.kernel.model.User findByEmailAddress_First(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where emailAddress = ?.- Specified by:
findByEmailAddress_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByEmailAddress_First
public com.liferay.portal.kernel.model.User fetchByEmailAddress_First(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where emailAddress = ?.- Specified by:
fetchByEmailAddress_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByEmailAddress_Last
public com.liferay.portal.kernel.model.User findByEmailAddress_Last(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where emailAddress = ?.- Specified by:
findByEmailAddress_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByEmailAddress_Last
public com.liferay.portal.kernel.model.User fetchByEmailAddress_Last(String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where emailAddress = ?.- Specified by:
fetchByEmailAddress_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByEmailAddress_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByEmailAddress_PrevAndNext(long userId, String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where emailAddress = ?.- Specified by:
findByEmailAddress_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current useremailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByEmailAddress_PrevAndNext
protected com.liferay.portal.kernel.model.User getByEmailAddress_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, String emailAddress, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByEmailAddress
Removes all the users where emailAddress = ? from the database.- Specified by:
removeByEmailAddressin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email address
-
countByEmailAddress
Returns the number of users where emailAddress = ?.- Specified by:
countByEmailAddressin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
emailAddress- the email address- Returns:
- the number of matching users
-
findByPortraitId
public com.liferay.portal.kernel.model.User findByPortraitId(long portraitId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where portraitId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByPortraitIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
portraitId- the portrait ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByPortraitId
public com.liferay.portal.kernel.model.User fetchByPortraitId(long portraitId) Returns the user where portraitId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByPortraitIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
portraitId- the portrait ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByPortraitId
public com.liferay.portal.kernel.model.User fetchByPortraitId(long portraitId, boolean useFinderCache) Returns the user where portraitId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByPortraitIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
portraitId- the portrait IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByPortraitId
public com.liferay.portal.kernel.model.User removeByPortraitId(long portraitId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where portraitId = ? from the database.- Specified by:
removeByPortraitIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
portraitId- the portrait ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByPortraitId
public int countByPortraitId(long portraitId) Returns the number of users where portraitId = ?.- Specified by:
countByPortraitIdin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
portraitId- the portrait ID- Returns:
- the number of matching users
-
findByGtU_C
Returns all the users where userId > ? and companyId = ?.- Specified by:
findByGtU_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company ID- Returns:
- the matching users
-
findByGtU_C
public List<com.liferay.portal.kernel.model.User> findByGtU_C(long userId, long companyId, int start, int end) Returns a range of all the users where userId > ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByGtU_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByGtU_C
public List<com.liferay.portal.kernel.model.User> findByGtU_C(long userId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where userId > ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByGtU_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByGtU_C
public List<com.liferay.portal.kernel.model.User> findByGtU_C(long userId, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where userId > ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByGtU_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByGtU_C_First
public com.liferay.portal.kernel.model.User findByGtU_C_First(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where userId > ? and companyId = ?.- Specified by:
findByGtU_C_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByGtU_C_First
public com.liferay.portal.kernel.model.User fetchByGtU_C_First(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where userId > ? and companyId = ?.- Specified by:
fetchByGtU_C_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByGtU_C_Last
public com.liferay.portal.kernel.model.User findByGtU_C_Last(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where userId > ? and companyId = ?.- Specified by:
findByGtU_C_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByGtU_C_Last
public com.liferay.portal.kernel.model.User fetchByGtU_C_Last(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where userId > ? and companyId = ?.- Specified by:
fetchByGtU_C_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
removeByGtU_C
public void removeByGtU_C(long userId, long companyId) Removes all the users where userId > ? and companyId = ? from the database.- Specified by:
removeByGtU_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company ID
-
countByGtU_C
public int countByGtU_C(long userId, long companyId) Returns the number of users where userId > ? and companyId = ?.- Specified by:
countByGtU_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the user IDcompanyId- the company ID- Returns:
- the number of matching users
-
findByC_U
public com.liferay.portal.kernel.model.User findByC_U(long companyId, long userId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where companyId = ? and userId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByC_Uin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_U
public com.liferay.portal.kernel.model.User fetchByC_U(long companyId, long userId) Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_Uin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_U
public com.liferay.portal.kernel.model.User fetchByC_U(long companyId, long userId, boolean useFinderCache) Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_Uin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDuserId- the user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_U
public com.liferay.portal.kernel.model.User removeByC_U(long companyId, long userId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where companyId = ? and userId = ? from the database.- Specified by:
removeByC_Uin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByC_U
public int countByC_U(long companyId, long userId) Returns the number of users where companyId = ? and userId = ?.- Specified by:
countByC_Uin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the number of matching users
-
findByC_CD
Returns all the users where companyId = ? and createDate = ?.- Specified by:
findByC_CDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create date- Returns:
- the matching users
-
findByC_CD
public List<com.liferay.portal.kernel.model.User> findByC_CD(long companyId, Date createDate, int start, int end) Returns a range of all the users where companyId = ? and createDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_CDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_CD
public List<com.liferay.portal.kernel.model.User> findByC_CD(long companyId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_CDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_CD
public List<com.liferay.portal.kernel.model.User> findByC_CD(long companyId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and createDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_CDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_CD_First
public com.liferay.portal.kernel.model.User findByC_CD_First(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ? and createDate = ?.- Specified by:
findByC_CD_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_First
public com.liferay.portal.kernel.model.User fetchByC_CD_First(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ?.- Specified by:
fetchByC_CD_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_CD_Last
public com.liferay.portal.kernel.model.User findByC_CD_Last(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ? and createDate = ?.- Specified by:
findByC_CD_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_Last
public com.liferay.portal.kernel.model.User fetchByC_CD_Last(long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ?.- Specified by:
fetchByC_CD_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_CD_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByC_CD_PrevAndNext(long userId, long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.- Specified by:
findByC_CD_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByC_CD_PrevAndNext
protected com.liferay.portal.kernel.model.User getByC_CD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByC_CD
Removes all the users where companyId = ? and createDate = ? from the database.- Specified by:
removeByC_CDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create date
-
countByC_CD
Returns the number of users where companyId = ? and createDate = ?.- Specified by:
countByC_CDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create date- Returns:
- the number of matching users
-
findByC_MD
Returns all the users where companyId = ? and modifiedDate = ?.- Specified by:
findByC_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified date- Returns:
- the matching users
-
findByC_MD
public List<com.liferay.portal.kernel.model.User> findByC_MD(long companyId, Date modifiedDate, int start, int end) Returns a range of all the users where companyId = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_MD
public List<com.liferay.portal.kernel.model.User> findByC_MD(long companyId, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_MD
public List<com.liferay.portal.kernel.model.User> findByC_MD(long companyId, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_MD_First
public com.liferay.portal.kernel.model.User findByC_MD_First(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.- Specified by:
findByC_MD_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_MD_First
public com.liferay.portal.kernel.model.User fetchByC_MD_First(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.- Specified by:
fetchByC_MD_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_MD_Last
public com.liferay.portal.kernel.model.User findByC_MD_Last(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.- Specified by:
findByC_MD_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_MD_Last
public com.liferay.portal.kernel.model.User fetchByC_MD_Last(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.- Specified by:
fetchByC_MD_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_MD_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByC_MD_PrevAndNext(long userId, long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.- Specified by:
findByC_MD_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByC_MD_PrevAndNext
protected com.liferay.portal.kernel.model.User getByC_MD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByC_MD
Removes all the users where companyId = ? and modifiedDate = ? from the database.- Specified by:
removeByC_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified date
-
countByC_MD
Returns the number of users where companyId = ? and modifiedDate = ?.- Specified by:
countByC_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDmodifiedDate- the modified date- Returns:
- the number of matching users
-
findByC_SN
public com.liferay.portal.kernel.model.User findByC_SN(long companyId, String screenName) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where companyId = ? and screenName = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByC_SNin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_SN
Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_SNin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_SN
public com.liferay.portal.kernel.model.User fetchByC_SN(long companyId, String screenName, boolean useFinderCache) Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_SNin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDscreenName- the screen nameuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_SN
public com.liferay.portal.kernel.model.User removeByC_SN(long companyId, String screenName) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where companyId = ? and screenName = ? from the database.- Specified by:
removeByC_SNin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByC_SN
Returns the number of users where companyId = ? and screenName = ?.- Specified by:
countByC_SNin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the number of matching users
-
findByC_EA
public com.liferay.portal.kernel.model.User findByC_EA(long companyId, String emailAddress) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where companyId = ? and emailAddress = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByC_EAin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_EA
Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_EAin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_EA
public com.liferay.portal.kernel.model.User fetchByC_EA(long companyId, String emailAddress, boolean useFinderCache) Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_EAin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDemailAddress- the email addressuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_EA
public com.liferay.portal.kernel.model.User removeByC_EA(long companyId, String emailAddress) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where companyId = ? and emailAddress = ? from the database.- Specified by:
removeByC_EAin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByC_EA
Returns the number of users where companyId = ? and emailAddress = ?.- Specified by:
countByC_EAin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the number of matching users
-
findByC_FID
public com.liferay.portal.kernel.model.User findByC_FID(long companyId, long facebookId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where companyId = ? and facebookId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByC_FIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_FID
public com.liferay.portal.kernel.model.User fetchByC_FID(long companyId, long facebookId) Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_FIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_FID
public com.liferay.portal.kernel.model.User fetchByC_FID(long companyId, long facebookId, boolean useFinderCache) Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_FIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDfacebookId- the facebook IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_FID
public com.liferay.portal.kernel.model.User removeByC_FID(long companyId, long facebookId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where companyId = ? and facebookId = ? from the database.- Specified by:
removeByC_FIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByC_FID
public int countByC_FID(long companyId, long facebookId) Returns the number of users where companyId = ? and facebookId = ?.- Specified by:
countByC_FIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the number of matching users
-
findByC_GUID
public com.liferay.portal.kernel.model.User findByC_GUID(long companyId, String googleUserId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where companyId = ? and googleUserId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByC_GUIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_GUID
Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_GUIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_GUID
public com.liferay.portal.kernel.model.User fetchByC_GUID(long companyId, String googleUserId, boolean useFinderCache) Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_GUIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDgoogleUserId- the google user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_GUID
public com.liferay.portal.kernel.model.User removeByC_GUID(long companyId, String googleUserId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where companyId = ? and googleUserId = ? from the database.- Specified by:
removeByC_GUIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByC_GUID
Returns the number of users where companyId = ? and googleUserId = ?.- Specified by:
countByC_GUIDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the number of matching users
-
findByC_O
public com.liferay.portal.kernel.model.User findByC_O(long companyId, String openId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where companyId = ? and openId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByC_Oin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_O
Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByC_Oin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_O
public com.liferay.portal.kernel.model.User fetchByC_O(long companyId, String openId, boolean useFinderCache) Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_Oin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDopenId- the open IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_O
public com.liferay.portal.kernel.model.User removeByC_O(long companyId, String openId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where companyId = ? and openId = ? from the database.- Specified by:
removeByC_Oin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByC_O
Returns the number of users where companyId = ? and openId = ?.- Specified by:
countByC_Oin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the number of matching users
-
findByC_T
Returns all the users where companyId = ? and type = ?.- Specified by:
findByC_Tin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the type- Returns:
- the matching users
-
findByC_T
public List<com.liferay.portal.kernel.model.User> findByC_T(long companyId, int type, int start, int end) Returns a range of all the users where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_Tin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_T
public List<com.liferay.portal.kernel.model.User> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_Tin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_T
public List<com.liferay.portal.kernel.model.User> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_Tin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_T_First
public com.liferay.portal.kernel.model.User findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ? and type = ?.- Specified by:
findByC_T_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_T_First
public com.liferay.portal.kernel.model.User fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ?.- Specified by:
fetchByC_T_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_T_Last
public com.liferay.portal.kernel.model.User findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ? and type = ?.- Specified by:
findByC_T_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_T_Last
public com.liferay.portal.kernel.model.User fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ?.- Specified by:
fetchByC_T_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_T_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByC_T_PrevAndNext(long userId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and type = ?.- Specified by:
findByC_T_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByC_T_PrevAndNext
protected com.liferay.portal.kernel.model.User getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByC_T
public void removeByC_T(long companyId, int type) Removes all the users where companyId = ? and type = ? from the database.- Specified by:
removeByC_Tin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the type
-
countByC_T
public int countByC_T(long companyId, int type) Returns the number of users where companyId = ? and type = ?.- Specified by:
countByC_Tin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the type- Returns:
- the number of matching users
-
findByC_S
Returns all the users where companyId = ? and status = ?.- Specified by:
findByC_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the status- Returns:
- the matching users
-
findByC_S
public List<com.liferay.portal.kernel.model.User> findByC_S(long companyId, int status, int start, int end) Returns a range of all the users where companyId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_S
public List<com.liferay.portal.kernel.model.User> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_S
public List<com.liferay.portal.kernel.model.User> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_S_First
public com.liferay.portal.kernel.model.User findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ? and status = ?.- Specified by:
findByC_S_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_S_First
public com.liferay.portal.kernel.model.User fetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and status = ?.- Specified by:
fetchByC_S_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_S_Last
public com.liferay.portal.kernel.model.User findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ? and status = ?.- Specified by:
findByC_S_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_S_Last
public com.liferay.portal.kernel.model.User fetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and status = ?.- Specified by:
fetchByC_S_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_S_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByC_S_PrevAndNext(long userId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.- Specified by:
findByC_S_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByC_S_PrevAndNext
protected com.liferay.portal.kernel.model.User getByC_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByC_S
public void removeByC_S(long companyId, int status) Removes all the users where companyId = ? and status = ? from the database.- Specified by:
removeByC_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the status
-
countByC_S
public int countByC_S(long companyId, int status) Returns the number of users where companyId = ? and status = ?.- Specified by:
countByC_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDstatus- the status- Returns:
- the number of matching users
-
findByC_CD_MD
public List<com.liferay.portal.kernel.model.User> findByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
findByC_CD_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified date- Returns:
- the matching users
-
findByC_CD_MD
public List<com.liferay.portal.kernel.model.User> findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end) Returns a range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_CD_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_CD_MD
public List<com.liferay.portal.kernel.model.User> findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_CD_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_CD_MD
public List<com.liferay.portal.kernel.model.User> findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_CD_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified datestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_CD_MD_First
public com.liferay.portal.kernel.model.User findByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
findByC_CD_MD_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_MD_First
public com.liferay.portal.kernel.model.User fetchByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
fetchByC_CD_MD_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_CD_MD_Last
public com.liferay.portal.kernel.model.User findByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
findByC_CD_MD_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_MD_Last
public com.liferay.portal.kernel.model.User fetchByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
fetchByC_CD_MD_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_CD_MD_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByC_CD_MD_PrevAndNext(long userId, long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
findByC_CD_MD_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByC_CD_MD_PrevAndNext
protected com.liferay.portal.kernel.model.User getByC_CD_MD_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, Date createDate, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByC_CD_MD
Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database.- Specified by:
removeByC_CD_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified date
-
countByC_CD_MD
Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?.- Specified by:
countByC_CD_MDin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified date- Returns:
- the number of matching users
-
findByC_T_S
Returns all the users where companyId = ? and type = ? and status = ?.- Specified by:
findByC_T_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the status- Returns:
- the matching users
-
findByC_T_S
public List<com.liferay.portal.kernel.model.User> findByC_T_S(long companyId, int type, int status, int start, int end) Returns a range of all the users where companyId = ? and type = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_T_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_T_S
public List<com.liferay.portal.kernel.model.User> findByC_T_S(long companyId, int type, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users where companyId = ? and type = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_T_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_T_S
public List<com.liferay.portal.kernel.model.User> findByC_T_S(long companyId, int type, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and type = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findByC_T_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_T_S_First
public com.liferay.portal.kernel.model.User findByC_T_S_First(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.- Specified by:
findByC_T_S_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_T_S_First
public com.liferay.portal.kernel.model.User fetchByC_T_S_First(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.- Specified by:
fetchByC_T_S_Firstin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_T_S_Last
public com.liferay.portal.kernel.model.User findByC_T_S_Last(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.- Specified by:
findByC_T_S_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByC_T_S_Last
public com.liferay.portal.kernel.model.User fetchByC_T_S_Last(long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.- Specified by:
fetchByC_T_S_Lastin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_T_S_PrevAndNext
public com.liferay.portal.kernel.model.User[] findByC_T_S_PrevAndNext(long userId, long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and type = ? and status = ?.- Specified by:
findByC_T_S_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the current usercompanyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
getByC_T_S_PrevAndNext
protected com.liferay.portal.kernel.model.User getByC_T_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.User user, long companyId, int type, int status, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean previous) -
removeByC_T_S
public void removeByC_T_S(long companyId, int type, int status) Removes all the users where companyId = ? and type = ? and status = ? from the database.- Specified by:
removeByC_T_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the status
-
countByC_T_S
public int countByC_T_S(long companyId, int type, int status) Returns the number of users where companyId = ? and type = ? and status = ?.- Specified by:
countByC_T_Sin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
companyId- the company IDtype- the typestatus- the status- Returns:
- the number of matching users
-
findByERC_C
public com.liferay.portal.kernel.model.User findByERC_C(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user where externalReferenceCode = ? and companyId = ? or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a matching user could not be found
-
fetchByERC_C
public com.liferay.portal.kernel.model.User fetchByERC_C(String externalReferenceCode, long companyId) Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByERC_C
public com.liferay.portal.kernel.model.User fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByERC_C
public com.liferay.portal.kernel.model.User removeByERC_C(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user where externalReferenceCode = ? and companyId = ? from the database.- Specified by:
removeByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException
-
countByERC_C
Returns the number of users where externalReferenceCode = ? and companyId = ?.- Specified by:
countByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching users
-
cacheResult
public void cacheResult(com.liferay.portal.kernel.model.User user) Caches the user in the entity cache if it is enabled.- Specified by:
cacheResultin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Overrides:
cacheResultin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>- Parameters:
user- the user
-
cacheResult
Caches the users in the entity cache if it is enabled.- Specified by:
cacheResultin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
users- the users
-
clearCache
public void clearCache()Clears the cache for all users.The
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
clearCache
public void clearCache(com.liferay.portal.kernel.model.User user) Clears the cache for the user.The
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>
-
cacheUniqueFindersCache
-
create
public com.liferay.portal.kernel.model.User create(long userId) Creates a new user with the primary key. Does not add the user to the database.- Specified by:
createin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key for the new user- Returns:
- the new user
-
remove
public com.liferay.portal.kernel.model.User remove(long userId) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the user- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
remove
public com.liferay.portal.kernel.model.User remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchUserException Removes the user with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
removein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>- Parameters:
primaryKey- the primary key of the user- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
removeImpl
protected com.liferay.portal.kernel.model.User removeImpl(com.liferay.portal.kernel.model.User user) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
updateImpl
public com.liferay.portal.kernel.model.User updateImpl(com.liferay.portal.kernel.model.User user) - Specified by:
updateImplin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
findByPrimaryKey
public com.liferay.portal.kernel.model.User findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
findByPrimaryKeyin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>- Parameters:
primaryKey- the primary key of the user- Returns:
- the user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
findByPrimaryKey
public com.liferay.portal.kernel.model.User findByPrimaryKey(long userId) throws com.liferay.portal.kernel.exception.NoSuchUserException Returns the user with the primary key or throws aNoSuchUserExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the user- Returns:
- the user
- Throws:
com.liferay.portal.kernel.exception.NoSuchUserException- if a user with the primary key could not be found
-
fetchByPrimaryKey
Returns the user with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
fetchByPrimaryKeyin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>- Parameters:
primaryKey- the primary key of the user- Returns:
- the user, or
nullif a user with the primary key could not be found
-
fetchByPrimaryKey
public com.liferay.portal.kernel.model.User fetchByPrimaryKey(long userId) Returns the user with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
userId- the primary key of the user- Returns:
- the user, or
nullif a user with the primary key could not be found
-
fetchByPrimaryKeys
public Map<Serializable,com.liferay.portal.kernel.model.User> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - Specified by:
fetchByPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
fetchByPrimaryKeysin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
findAll
Returns all the users.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Returns:
- the users
-
findAll
Returns a range of all the users.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
start- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of users
-
findAll
public List<com.liferay.portal.kernel.model.User> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
start- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of users
-
findAll
public List<com.liferay.portal.kernel.model.User> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
start- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of users
-
removeAll
public void removeAll()Removes all the users from the database.- Specified by:
removeAllin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence
-
countAll
public int countAll()Returns the number of users.- Specified by:
countAllin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Returns:
- the number of users
-
getGroupPrimaryKeys
public long[] getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the user.- Specified by:
getGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of groups associated with the user
-
getGroups
Returns all the groups associated with the user.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the groups associated with the user
-
getGroups
Returns a range of all the groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of groups associated with the user
-
getGroups
public List<com.liferay.portal.kernel.model.Group> getGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) Returns an ordered range of all the groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of groups associated with the user
-
getGroupsSize
public int getGroupsSize(long pk) Returns the number of groups associated with the user.- Specified by:
getGroupsSizein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the number of groups associated with the user
-
containsGroup
public boolean containsGroup(long pk, long groupPK) Returnstrueif the group is associated with the user.- Specified by:
containsGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroupPK- the primary key of the group- Returns:
trueif the group is associated with the user;falseotherwise
-
containsGroups
public boolean containsGroups(long pk) Returnstrueif the user has any groups associated with it.- Specified by:
containsGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to check for associations with groups- Returns:
trueif the user has any groups associated with it;falseotherwise
-
addGroup
public boolean addGroup(long pk, long groupPK) Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroupPK- the primary key of the group- Returns:
trueif an association between the user and the group was added;falseif they were already associated
-
addGroup
public boolean addGroup(long pk, com.liferay.portal.kernel.model.Group group) Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroup- the group- Returns:
trueif an association between the user and the group was added;falseif they were already associated
-
addGroups
public boolean addGroups(long pk, long[] groupPKs) Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroupPKs- the primary keys of the groups- Returns:
trueif at least one association between the user and the groups was added;falseif they were all already associated
-
addGroups
Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroups- the groups- Returns:
trueif at least one association between the user and the groups was added;falseif they were all already associated
-
clearGroups
public void clearGroups(long pk) Clears all associations between the user and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to clear the associated groups from
-
removeGroup
public void removeGroup(long pk, long groupPK) Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroupPK- the primary key of the group
-
removeGroup
public void removeGroup(long pk, com.liferay.portal.kernel.model.Group group) Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroup- the group
-
removeGroups
public void removeGroups(long pk, long[] groupPKs) Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroupPKs- the primary keys of the groups
-
removeGroups
Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroups- the groups
-
setGroups
public void setGroups(long pk, long[] groupPKs) Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroupPKs- the primary keys of the groups to be associated with the user
-
setGroups
Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the usergroups- the groups to be associated with the user
-
getOrganizationPrimaryKeys
public long[] getOrganizationPrimaryKeys(long pk) Returns the primaryKeys of organizations associated with the user.- Specified by:
getOrganizationPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of organizations associated with the user
-
getOrganizations
Returns all the organizations associated with the user.- Specified by:
getOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the organizations associated with the user
-
getOrganizations
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(long pk, int start, int end) Returns a range of all the organizations associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of organizations associated with the user
-
getOrganizations
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of organizations associated with the user
-
getOrganizationsSize
public int getOrganizationsSize(long pk) Returns the number of organizations associated with the user.- Specified by:
getOrganizationsSizein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the number of organizations associated with the user
-
containsOrganization
public boolean containsOrganization(long pk, long organizationPK) Returnstrueif the organization is associated with the user.- Specified by:
containsOrganizationin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizationPK- the primary key of the organization- Returns:
trueif the organization is associated with the user;falseotherwise
-
containsOrganizations
public boolean containsOrganizations(long pk) Returnstrueif the user has any organizations associated with it.- Specified by:
containsOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to check for associations with organizations- Returns:
trueif the user has any organizations associated with it;falseotherwise
-
addOrganization
public boolean addOrganization(long pk, long organizationPK) Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addOrganizationin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizationPK- the primary key of the organization- Returns:
trueif an association between the user and the organization was added;falseif they were already associated
-
addOrganization
public boolean addOrganization(long pk, com.liferay.portal.kernel.model.Organization organization) Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addOrganizationin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganization- the organization- Returns:
trueif an association between the user and the organization was added;falseif they were already associated
-
addOrganizations
public boolean addOrganizations(long pk, long[] organizationPKs) Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizationPKs- the primary keys of the organizations- Returns:
trueif at least one association between the user and the organizations was added;falseif they were all already associated
-
addOrganizations
public boolean addOrganizations(long pk, List<com.liferay.portal.kernel.model.Organization> organizations) Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizations- the organizations- Returns:
trueif at least one association between the user and the organizations was added;falseif they were all already associated
-
clearOrganizations
public void clearOrganizations(long pk) Clears all associations between the user and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to clear the associated organizations from
-
removeOrganization
public void removeOrganization(long pk, long organizationPK) Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeOrganizationin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizationPK- the primary key of the organization
-
removeOrganization
public void removeOrganization(long pk, com.liferay.portal.kernel.model.Organization organization) Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeOrganizationin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganization- the organization
-
removeOrganizations
public void removeOrganizations(long pk, long[] organizationPKs) Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizationPKs- the primary keys of the organizations
-
removeOrganizations
public void removeOrganizations(long pk, List<com.liferay.portal.kernel.model.Organization> organizations) Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizations- the organizations
-
setOrganizations
public void setOrganizations(long pk, long[] organizationPKs) Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizationPKs- the primary keys of the organizations to be associated with the user
-
setOrganizations
public void setOrganizations(long pk, List<com.liferay.portal.kernel.model.Organization> organizations) Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setOrganizationsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userorganizations- the organizations to be associated with the user
-
getRolePrimaryKeys
public long[] getRolePrimaryKeys(long pk) Returns the primaryKeys of roles associated with the user.- Specified by:
getRolePrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of roles associated with the user
-
getRoles
Returns all the roles associated with the user.- Specified by:
getRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the roles associated with the user
-
getRoles
Returns a range of all the roles associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of roles associated with the user
-
getRoles
public List<com.liferay.portal.kernel.model.Role> getRoles(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> orderByComparator) Returns an ordered range of all the roles associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of roles associated with the user
-
getRolesSize
public int getRolesSize(long pk) Returns the number of roles associated with the user.- Specified by:
getRolesSizein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the number of roles associated with the user
-
containsRole
public boolean containsRole(long pk, long rolePK) Returnstrueif the role is associated with the user.- Specified by:
containsRolein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrolePK- the primary key of the role- Returns:
trueif the role is associated with the user;falseotherwise
-
containsRoles
public boolean containsRoles(long pk) Returnstrueif the user has any roles associated with it.- Specified by:
containsRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to check for associations with roles- Returns:
trueif the user has any roles associated with it;falseotherwise
-
addRole
public boolean addRole(long pk, long rolePK) Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addRolein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrolePK- the primary key of the role- Returns:
trueif an association between the user and the role was added;falseif they were already associated
-
addRole
public boolean addRole(long pk, com.liferay.portal.kernel.model.Role role) Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addRolein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrole- the role- Returns:
trueif an association between the user and the role was added;falseif they were already associated
-
addRoles
public boolean addRoles(long pk, long[] rolePKs) Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrolePKs- the primary keys of the roles- Returns:
trueif at least one association between the user and the roles was added;falseif they were all already associated
-
addRoles
Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userroles- the roles- Returns:
trueif at least one association between the user and the roles was added;falseif they were all already associated
-
clearRoles
public void clearRoles(long pk) Clears all associations between the user and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to clear the associated roles from
-
removeRole
public void removeRole(long pk, long rolePK) Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeRolein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrolePK- the primary key of the role
-
removeRole
public void removeRole(long pk, com.liferay.portal.kernel.model.Role role) Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeRolein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrole- the role
-
removeRoles
public void removeRoles(long pk, long[] rolePKs) Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrolePKs- the primary keys of the roles
-
removeRoles
Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userroles- the roles
-
setRoles
public void setRoles(long pk, long[] rolePKs) Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userrolePKs- the primary keys of the roles to be associated with the user
-
setRoles
Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setRolesin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userroles- the roles to be associated with the user
-
getTeamPrimaryKeys
public long[] getTeamPrimaryKeys(long pk) Returns the primaryKeys of teams associated with the user.- Specified by:
getTeamPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of teams associated with the user
-
getTeams
Returns all the teams associated with the user.- Specified by:
getTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the teams associated with the user
-
getTeams
Returns a range of all the teams associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of teams associated with the user
-
getTeams
public List<com.liferay.portal.kernel.model.Team> getTeams(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of teams associated with the user
-
getTeamsSize
public int getTeamsSize(long pk) Returns the number of teams associated with the user.- Specified by:
getTeamsSizein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the number of teams associated with the user
-
containsTeam
public boolean containsTeam(long pk, long teamPK) Returnstrueif the team is associated with the user.- Specified by:
containsTeamin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteamPK- the primary key of the team- Returns:
trueif the team is associated with the user;falseotherwise
-
containsTeams
public boolean containsTeams(long pk) Returnstrueif the user has any teams associated with it.- Specified by:
containsTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to check for associations with teams- Returns:
trueif the user has any teams associated with it;falseotherwise
-
addTeam
public boolean addTeam(long pk, long teamPK) Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addTeamin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteamPK- the primary key of the team- Returns:
trueif an association between the user and the team was added;falseif they were already associated
-
addTeam
public boolean addTeam(long pk, com.liferay.portal.kernel.model.Team team) Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addTeamin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteam- the team- Returns:
trueif an association between the user and the team was added;falseif they were already associated
-
addTeams
public boolean addTeams(long pk, long[] teamPKs) Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteamPKs- the primary keys of the teams- Returns:
trueif at least one association between the user and the teams was added;falseif they were all already associated
-
addTeams
Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteams- the teams- Returns:
trueif at least one association between the user and the teams was added;falseif they were all already associated
-
clearTeams
public void clearTeams(long pk) Clears all associations between the user and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to clear the associated teams from
-
removeTeam
public void removeTeam(long pk, long teamPK) Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeTeamin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteamPK- the primary key of the team
-
removeTeam
public void removeTeam(long pk, com.liferay.portal.kernel.model.Team team) Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeTeamin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteam- the team
-
removeTeams
public void removeTeams(long pk, long[] teamPKs) Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteamPKs- the primary keys of the teams
-
removeTeams
Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteams- the teams
-
setTeams
public void setTeams(long pk, long[] teamPKs) Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteamPKs- the primary keys of the teams to be associated with the user
-
setTeams
Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setTeamsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userteams- the teams to be associated with the user
-
getUserGroupPrimaryKeys
public long[] getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the user.- Specified by:
getUserGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of user groups associated with the user
-
getUserGroups
Returns all the user groups associated with the user.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the user groups associated with the user
-
getUserGroups
Returns a range of all the user groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of user groups associated with the user
-
getUserGroups
public List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the userstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of user groups associated with the user
-
getUserGroupsSize
public int getUserGroupsSize(long pk) Returns the number of user groups associated with the user.- Specified by:
getUserGroupsSizein interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user- Returns:
- the number of user groups associated with the user
-
containsUserGroup
public boolean containsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the user.- Specified by:
containsUserGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroupPK- the primary key of the user group- Returns:
trueif the user group is associated with the user;falseotherwise
-
containsUserGroups
public boolean containsUserGroups(long pk) Returnstrueif the user has any user groups associated with it.- Specified by:
containsUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to check for associations with user groups- Returns:
trueif the user has any user groups associated with it;falseotherwise
-
addUserGroup
public boolean addUserGroup(long pk, long userGroupPK) Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroupPK- the primary key of the user group- Returns:
trueif an association between the user and the user group was added;falseif they were already associated
-
addUserGroup
public boolean addUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroup- the user group- Returns:
trueif an association between the user and the user group was added;falseif they were already associated
-
addUserGroups
public boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroupPKs- the primary keys of the user groups- Returns:
trueif at least one association between the user and the user groups was added;falseif they were all already associated
-
addUserGroups
Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroups- the user groups- Returns:
trueif at least one association between the user and the user groups was added;falseif they were all already associated
-
clearUserGroups
public void clearUserGroups(long pk) Clears all associations between the user and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the user to clear the associated user groups from
-
removeUserGroup
public void removeUserGroup(long pk, long userGroupPK) Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroupPK- the primary key of the user group
-
removeUserGroup
public void removeUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserGroupin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroup- the user group
-
removeUserGroups
public void removeUserGroups(long pk, long[] userGroupPKs) Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroupPKs- the primary keys of the user groups
-
removeUserGroups
Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroups- the user groups
-
setUserGroups
public void setUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroupPKs- the primary keys of the user groups to be associated with the user
-
setUserGroups
Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.UserPersistence- Parameters:
pk- the primary key of the useruserGroups- the user groups to be associated with the user
-
getBadColumnNames
- Specified by:
getBadColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>- Overrides:
getBadColumnNamesin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the user persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.User>
-