public abstract class UserLocalServiceBaseImpl
extends com.liferay.portal.kernel.service.BaseLocalServiceImpl
implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.UserLocalService
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in UserLocalServiceImpl.
UserLocalServiceImpl| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.counter.kernel.service.CounterLocalService |
counterLocalService |
protected com.liferay.portal.kernel.service.persistence.GroupPersistence |
groupPersistence |
protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence |
organizationPersistence |
protected com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry |
persistedModelLocalServiceRegistry |
protected com.liferay.portal.kernel.service.persistence.RolePersistence |
rolePersistence |
protected com.liferay.portal.kernel.service.persistence.TeamPersistence |
teamPersistence |
protected com.liferay.portal.kernel.service.persistence.UserFinder |
userFinder |
protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence |
userGroupPersistence |
protected com.liferay.portal.kernel.service.UserLocalService |
userLocalService |
protected com.liferay.portal.kernel.service.persistence.UserPersistence |
userPersistence |
| Constructor and Description |
|---|
UserLocalServiceBaseImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupUser(long groupId,
long userId) |
void |
addGroupUser(long groupId,
com.liferay.portal.kernel.model.User user) |
void |
addGroupUsers(long groupId,
List<com.liferay.portal.kernel.model.User> users) |
void |
addGroupUsers(long groupId,
long[] userIds) |
void |
addOrganizationUser(long organizationId,
long userId) |
void |
addOrganizationUser(long organizationId,
com.liferay.portal.kernel.model.User user) |
void |
addOrganizationUsers(long organizationId,
List<com.liferay.portal.kernel.model.User> users) |
void |
addOrganizationUsers(long organizationId,
long[] userIds) |
void |
addRoleUser(long roleId,
long userId) |
void |
addRoleUser(long roleId,
com.liferay.portal.kernel.model.User user) |
void |
addRoleUsers(long roleId,
List<com.liferay.portal.kernel.model.User> users) |
void |
addRoleUsers(long roleId,
long[] userIds) |
void |
addTeamUser(long teamId,
long userId) |
void |
addTeamUser(long teamId,
com.liferay.portal.kernel.model.User user) |
void |
addTeamUsers(long teamId,
List<com.liferay.portal.kernel.model.User> users) |
void |
addTeamUsers(long teamId,
long[] userIds) |
com.liferay.portal.kernel.model.User |
addUser(com.liferay.portal.kernel.model.User user)
Adds the user to the database.
|
void |
addUserGroupUser(long userGroupId,
long userId) |
void |
addUserGroupUser(long userGroupId,
com.liferay.portal.kernel.model.User user) |
void |
addUserGroupUsers(long userGroupId,
List<com.liferay.portal.kernel.model.User> users) |
void |
addUserGroupUsers(long userGroupId,
long[] userIds) |
void |
afterPropertiesSet() |
void |
clearGroupUsers(long groupId) |
void |
clearOrganizationUsers(long organizationId) |
void |
clearRoleUsers(long roleId) |
void |
clearTeamUsers(long teamId) |
void |
clearUserGroupUsers(long userGroupId) |
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
com.liferay.portal.kernel.model.User |
createUser(long userId)
Creates a new user with the primary key.
|
void |
deleteGroupUser(long groupId,
long userId) |
void |
deleteGroupUser(long groupId,
com.liferay.portal.kernel.model.User user) |
void |
deleteGroupUsers(long groupId,
List<com.liferay.portal.kernel.model.User> users) |
void |
deleteGroupUsers(long groupId,
long[] userIds) |
void |
deleteOrganizationUser(long organizationId,
long userId) |
void |
deleteOrganizationUser(long organizationId,
com.liferay.portal.kernel.model.User user) |
void |
deleteOrganizationUsers(long organizationId,
List<com.liferay.portal.kernel.model.User> users) |
void |
deleteOrganizationUsers(long organizationId,
long[] userIds) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteRoleUser(long roleId,
long userId) |
void |
deleteRoleUser(long roleId,
com.liferay.portal.kernel.model.User user) |
void |
deleteRoleUsers(long roleId,
List<com.liferay.portal.kernel.model.User> users) |
void |
deleteRoleUsers(long roleId,
long[] userIds) |
void |
deleteTeamUser(long teamId,
long userId) |
void |
deleteTeamUser(long teamId,
com.liferay.portal.kernel.model.User user) |
void |
deleteTeamUsers(long teamId,
List<com.liferay.portal.kernel.model.User> users) |
void |
deleteTeamUsers(long teamId,
long[] userIds) |
com.liferay.portal.kernel.model.User |
deleteUser(long userId)
Deletes the user with the primary key from the database.
|
com.liferay.portal.kernel.model.User |
deleteUser(com.liferay.portal.kernel.model.User user)
Deletes the user from the database.
|
void |
deleteUserGroupUser(long userGroupId,
long userId) |
void |
deleteUserGroupUser(long userGroupId,
com.liferay.portal.kernel.model.User user) |
void |
deleteUserGroupUsers(long userGroupId,
List<com.liferay.portal.kernel.model.User> users) |
void |
deleteUserGroupUsers(long userGroupId,
long[] userIds) |
void |
destroy() |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
com.liferay.portal.kernel.model.User |
fetchUser(long userId) |
com.liferay.portal.kernel.model.User |
fetchUserByExternalReferenceCode(long companyId,
String externalReferenceCode)
Returns the user with the matching external reference code and company.
|
com.liferay.portal.kernel.model.User |
fetchUserByReferenceCode(long companyId,
String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchUserByExternalReferenceCode(long, String) |
com.liferay.portal.kernel.model.User |
fetchUserByUuidAndCompanyId(String uuid,
long companyId)
Returns the user with the matching UUID and company.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User> |
getBasePersistence() |
com.liferay.counter.kernel.service.CounterLocalService |
getCounterLocalService()
Returns the counter local service.
|
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
long[] |
getGroupPrimaryKeys(long userId)
Returns the groupIds of the groups associated with the user.
|
List<com.liferay.portal.kernel.model.User> |
getGroupUsers(long groupId) |
List<com.liferay.portal.kernel.model.User> |
getGroupUsers(long groupId,
int start,
int end) |
List<com.liferay.portal.kernel.model.User> |
getGroupUsers(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) |
int |
getGroupUsersCount(long groupId) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<com.liferay.portal.kernel.model.User> |
getModelClass() |
protected String |
getModelClassName() |
long[] |
getOrganizationPrimaryKeys(long userId)
Returns the organizationIds of the organizations associated with the user.
|
List<com.liferay.portal.kernel.model.User> |
getOrganizationUsers(long organizationId) |
List<com.liferay.portal.kernel.model.User> |
getOrganizationUsers(long organizationId,
int start,
int end) |
List<com.liferay.portal.kernel.model.User> |
getOrganizationUsers(long organizationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) |
int |
getOrganizationUsersCount(long organizationId) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
long[] |
getRolePrimaryKeys(long userId)
Returns the roleIds of the roles associated with the user.
|
List<com.liferay.portal.kernel.model.User> |
getRoleUsers(long roleId) |
List<com.liferay.portal.kernel.model.User> |
getRoleUsers(long roleId,
int start,
int end) |
List<com.liferay.portal.kernel.model.User> |
getRoleUsers(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) |
int |
getRoleUsersCount(long roleId) |
long[] |
getTeamPrimaryKeys(long userId)
Returns the teamIds of the teams associated with the user.
|
List<com.liferay.portal.kernel.model.User> |
getTeamUsers(long teamId) |
List<com.liferay.portal.kernel.model.User> |
getTeamUsers(long teamId,
int start,
int end) |
List<com.liferay.portal.kernel.model.User> |
getTeamUsers(long teamId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) |
int |
getTeamUsersCount(long teamId) |
com.liferay.portal.kernel.model.User |
getUser(long userId)
Returns the user with the primary key.
|
com.liferay.portal.kernel.model.User |
getUserByExternalReferenceCode(long companyId,
String externalReferenceCode)
Returns the user with the matching external reference code and company.
|
com.liferay.portal.kernel.model.User |
getUserByUuidAndCompanyId(String uuid,
long companyId)
Returns the user with the matching UUID and company.
|
com.liferay.portal.kernel.service.persistence.UserFinder |
getUserFinder()
Returns the user finder.
|
long[] |
getUserGroupPrimaryKeys(long userId)
Returns the userGroupIds of the user groups associated with the user.
|
List<com.liferay.portal.kernel.model.User> |
getUserGroupUsers(long userGroupId) |
List<com.liferay.portal.kernel.model.User> |
getUserGroupUsers(long userGroupId,
int start,
int end) |
List<com.liferay.portal.kernel.model.User> |
getUserGroupUsers(long userGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) |
int |
getUserGroupUsersCount(long userGroupId) |
com.liferay.portal.kernel.service.UserLocalService |
getUserLocalService()
Returns the user local service.
|
com.liferay.portal.kernel.service.persistence.UserPersistence |
getUserPersistence()
Returns the user persistence.
|
List<com.liferay.portal.kernel.model.User> |
getUsers(int start,
int end)
Returns a range of all the users.
|
int |
getUsersCount()
Returns the number of users.
|
boolean |
hasGroupUser(long groupId,
long userId) |
boolean |
hasGroupUsers(long groupId) |
boolean |
hasOrganizationUser(long organizationId,
long userId) |
boolean |
hasOrganizationUsers(long organizationId) |
boolean |
hasRoleUser(long roleId,
long userId) |
boolean |
hasRoleUsers(long roleId) |
boolean |
hasTeamUser(long teamId,
long userId) |
boolean |
hasTeamUsers(long teamId) |
boolean |
hasUserGroupUser(long userGroupId,
long userId) |
boolean |
hasUserGroupUsers(long userGroupId) |
protected void |
initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) |
protected void |
runSQL(String sql)
Performs a SQL query.
|
void |
setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
Sets the counter local service.
|
void |
setGroupUsers(long groupId,
long[] userIds) |
void |
setOrganizationUsers(long organizationId,
long[] userIds) |
void |
setRoleUsers(long roleId,
long[] userIds) |
void |
setTeamUsers(long teamId,
long[] userIds) |
void |
setUserFinder(com.liferay.portal.kernel.service.persistence.UserFinder userFinder)
Sets the user finder.
|
void |
setUserGroupUsers(long userGroupId,
long[] userIds) |
void |
setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
Sets the user local service.
|
void |
setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence)
Sets the user persistence.
|
com.liferay.portal.kernel.model.User |
updateUser(com.liferay.portal.kernel.model.User user)
Updates the user in the database or adds it if it does not yet exist.
|
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>,R,E> updateUnsafeFunction) |
getClassLoader, getLocalizationMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefaultAdminUser, addDefaultGroups, addDefaultRoles, addDefaultUserGroups, addOrUpdateUser, addPasswordPolicyUsers, addUser, addUser, addUserWithWorkflow, addUserWithWorkflow, authenticateByEmailAddress, authenticateByScreenName, authenticateByUserId, authenticateForBasic, authenticateForDigest, authenticateForJAAS, checkLockout, checkLoginFailure, checkLoginFailureByEmailAddress, checkLoginFailureById, checkLoginFailureByScreenName, checkPasswordExpired, completeUserRegistration, decryptUserId, deletePortrait, encryptUserId, fetchDefaultUser, fetchUserByContactId, fetchUserByEmailAddress, fetchUserByFacebookId, fetchUserByGoogleUserId, fetchUserById, fetchUserByOpenId, fetchUserByPortraitId, fetchUserByScreenName, getCompanyUsers, getCompanyUsersCount, getDefaultUser, getDefaultUserId, getGroupUserIds, getGroupUsers, getGroupUsers, getGroupUsersCount, getInheritedRoleUsers, getNoAnnouncementsDeliveries, getNoGroups, getOrganizationsAndUserGroupsUsersCount, getOrganizationUserIds, getOrganizationUsers, getOrganizationUsers, getOrganizationUsersCount, getRoleUserIds, getRoleUsersCount, getSocialUsers, getSocialUsers, getSocialUsers, getSocialUsersCount, getSocialUsersCount, getSocialUsersCount, getUserByContactId, getUserByEmailAddress, getUserByFacebookId, getUserByGoogleUserId, getUserById, getUserById, getUserByOpenId, getUserByPortraitId, getUserByScreenName, getUserGroupUsersCount, getUserIdByEmailAddress, getUserIdByScreenName, getUsers, getUsersCount, hasPasswordPolicyUser, hasRoleUser, isPasswordExpired, loadGetDefaultUser, search, search, search, search, search, search, searchBySocial, searchBySocial, searchBySocial, searchBySocial, searchCount, searchCount, searchCounts, searchSocial, searchSocial, searchSocial, searchSocial, searchUsers, searchUsers, searchUsers, searchUsers, sendEmailAddressVerification, sendPassword, sendPasswordByEmailAddress, sendPasswordByScreenName, sendPasswordByUserId, unsetGroupTeamsUsers, unsetGroupUsers, unsetOrganizationUsers, unsetPasswordPolicyUsers, unsetRoleUsers, unsetRoleUsers, unsetTeamUsers, unsetUserGroupUsers, updateAgreedToTermsOfUse, updateAsset, updateCreateDate, updateEmailAddress, updateEmailAddress, updateEmailAddressVerified, updateFacebookId, updateGoogleUserId, updateGroups, updateIncompleteUser, updateIncompleteUser, updateJobTitle, updateLastLogin, updateLockout, updateLockoutByEmailAddress, updateLockoutById, updateLockoutByScreenName, updateModifiedDate, updateOpenId, updateOrganizations, updatePassword, updatePassword, updatePasswordManually, updatePasswordReset, updatePortrait, updateReminderQuery, updateScreenName, updateStatus, updateUser, updateUser, verifyEmailAddress@BeanReference(type=com.liferay.portal.kernel.service.UserLocalService.class) protected com.liferay.portal.kernel.service.UserLocalService userLocalService
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserFinder.class) protected com.liferay.portal.kernel.service.persistence.UserFinder userFinder
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.TeamPersistence.class) protected com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry.class) protected com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.User addUser(com.liferay.portal.kernel.model.User user)
Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addUser in interface com.liferay.portal.kernel.service.UserLocalServiceuser - the user@Transactional(enabled=false) public com.liferay.portal.kernel.model.User createUser(long userId)
createUser in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the primary key for the new user@Indexable(type=DELETE)
public com.liferay.portal.kernel.model.User deleteUser(long userId)
throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteUser in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be found@Indexable(type=DELETE)
public com.liferay.portal.kernel.model.User deleteUser(com.liferay.portal.kernel.model.User user)
throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteUser in interface com.liferay.portal.kernel.service.UserLocalServiceuser - the usercom.liferay.portal.kernel.exception.PortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedslQuery in interface com.liferay.portal.kernel.service.UserLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.UserLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServicepublic <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServicedynamicQuery - the dynamic querypublic <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.UserModelImpl.
dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.UserModelImpl.
dynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface com.liferay.portal.kernel.service.UserLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface com.liferay.portal.kernel.service.UserLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic com.liferay.portal.kernel.model.User fetchUser(long userId)
fetchUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic com.liferay.portal.kernel.model.User fetchUserByUuidAndCompanyId(String uuid,
long companyId)
fetchUserByUuidAndCompanyId in interface com.liferay.portal.kernel.service.UserLocalServiceuuid - the user's UUIDcompanyId - the primary key of the companynull if a matching user could not be foundpublic com.liferay.portal.kernel.model.User fetchUserByExternalReferenceCode(long companyId,
String externalReferenceCode)
fetchUserByExternalReferenceCode in interface com.liferay.portal.kernel.service.UserLocalServicecompanyId - the primary key of the companyexternalReferenceCode - the user's external reference codenull if a matching user could not be found@Deprecated
public com.liferay.portal.kernel.model.User fetchUserByReferenceCode(long companyId,
String externalReferenceCode)
fetchUserByExternalReferenceCode(long, String)fetchUserByReferenceCode in interface com.liferay.portal.kernel.service.UserLocalServicepublic com.liferay.portal.kernel.model.User getUserByExternalReferenceCode(long companyId,
String externalReferenceCode)
throws com.liferay.portal.kernel.exception.PortalException
getUserByExternalReferenceCode in interface com.liferay.portal.kernel.service.UserLocalServicecompanyId - the primary key of the companyexternalReferenceCode - the user's external reference codecom.liferay.portal.kernel.exception.PortalException - if a matching user could not be foundpublic com.liferay.portal.kernel.model.User getUser(long userId)
throws com.liferay.portal.kernel.exception.PortalException
getUser in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the primary key of the usercom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServiceprotected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface com.liferay.portal.kernel.service.UserLocalServicepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User> getBasePersistence()
getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.User getUserByUuidAndCompanyId(String uuid,
long companyId)
throws com.liferay.portal.kernel.exception.PortalException
getUserByUuidAndCompanyId in interface com.liferay.portal.kernel.service.UserLocalServiceuuid - the user's UUIDcompanyId - the primary key of the companycom.liferay.portal.kernel.exception.PortalException - if a matching user could not be foundpublic List<com.liferay.portal.kernel.model.User> getUsers(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.UserModelImpl.
getUsers in interface com.liferay.portal.kernel.service.UserLocalServicestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)public int getUsersCount()
getUsersCount in interface com.liferay.portal.kernel.service.UserLocalService@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.User updateUser(com.liferay.portal.kernel.model.User user)
Important: Inspect UserLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateUser in interface com.liferay.portal.kernel.service.UserLocalServiceuser - the userpublic void addGroupUser(long groupId,
long userId)
addGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addGroupUser(long groupId,
com.liferay.portal.kernel.model.User user)
addGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addGroupUsers(long groupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
addGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addGroupUsers(long groupId,
List<com.liferay.portal.kernel.model.User> users)
throws com.liferay.portal.kernel.exception.PortalException
addGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void clearGroupUsers(long groupId)
clearGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteGroupUser(long groupId,
long userId)
deleteGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteGroupUser(long groupId,
com.liferay.portal.kernel.model.User user)
deleteGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteGroupUsers(long groupId,
long[] userIds)
deleteGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteGroupUsers(long groupId,
List<com.liferay.portal.kernel.model.User> users)
deleteGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic long[] getGroupPrimaryKeys(long userId)
getGroupPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the userId of the userpublic List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId)
getGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
getGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
getGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic int getGroupUsersCount(long groupId)
getGroupUsersCount in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasGroupUser(long groupId,
long userId)
hasGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasGroupUsers(long groupId)
hasGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void setGroupUsers(long groupId,
long[] userIds)
setGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addOrganizationUser(long organizationId,
long userId)
addOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addOrganizationUser(long organizationId,
com.liferay.portal.kernel.model.User user)
addOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addOrganizationUsers(long organizationId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
addOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addOrganizationUsers(long organizationId,
List<com.liferay.portal.kernel.model.User> users)
throws com.liferay.portal.kernel.exception.PortalException
addOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void clearOrganizationUsers(long organizationId)
clearOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteOrganizationUser(long organizationId,
long userId)
deleteOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteOrganizationUser(long organizationId,
com.liferay.portal.kernel.model.User user)
deleteOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteOrganizationUsers(long organizationId,
long[] userIds)
deleteOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteOrganizationUsers(long organizationId,
List<com.liferay.portal.kernel.model.User> users)
deleteOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic long[] getOrganizationPrimaryKeys(long userId)
getOrganizationPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the userId of the userpublic List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId)
getOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
getOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
getOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic int getOrganizationUsersCount(long organizationId)
getOrganizationUsersCount in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasOrganizationUser(long organizationId,
long userId)
hasOrganizationUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasOrganizationUsers(long organizationId)
hasOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void setOrganizationUsers(long organizationId,
long[] userIds)
setOrganizationUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addRoleUser(long roleId,
long userId)
addRoleUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addRoleUser(long roleId,
com.liferay.portal.kernel.model.User user)
addRoleUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
addRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addRoleUsers(long roleId,
List<com.liferay.portal.kernel.model.User> users)
throws com.liferay.portal.kernel.exception.PortalException
addRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void clearRoleUsers(long roleId)
clearRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteRoleUser(long roleId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
deleteRoleUser in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteRoleUser(long roleId,
com.liferay.portal.kernel.model.User user)
throws com.liferay.portal.kernel.exception.PortalException
deleteRoleUser in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteRoleUsers(long roleId,
long[] userIds)
deleteRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteRoleUsers(long roleId,
List<com.liferay.portal.kernel.model.User> users)
deleteRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic long[] getRolePrimaryKeys(long userId)
getRolePrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the userId of the userpublic List<com.liferay.portal.kernel.model.User> getRoleUsers(long roleId)
getRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getRoleUsers(long roleId,
int start,
int end)
getRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getRoleUsers(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
getRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic int getRoleUsersCount(long roleId)
getRoleUsersCount in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasRoleUser(long roleId,
long userId)
hasRoleUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasRoleUsers(long roleId)
hasRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void setRoleUsers(long roleId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
setRoleUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addTeamUser(long teamId,
long userId)
addTeamUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addTeamUser(long teamId,
com.liferay.portal.kernel.model.User user)
addTeamUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addTeamUsers(long teamId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
addTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addTeamUsers(long teamId,
List<com.liferay.portal.kernel.model.User> users)
throws com.liferay.portal.kernel.exception.PortalException
addTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void clearTeamUsers(long teamId)
clearTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteTeamUser(long teamId,
long userId)
deleteTeamUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteTeamUser(long teamId,
com.liferay.portal.kernel.model.User user)
deleteTeamUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteTeamUsers(long teamId,
long[] userIds)
deleteTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteTeamUsers(long teamId,
List<com.liferay.portal.kernel.model.User> users)
deleteTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic long[] getTeamPrimaryKeys(long userId)
getTeamPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the userId of the userpublic List<com.liferay.portal.kernel.model.User> getTeamUsers(long teamId)
getTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getTeamUsers(long teamId,
int start,
int end)
getTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getTeamUsers(long teamId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
getTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic int getTeamUsersCount(long teamId)
getTeamUsersCount in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasTeamUser(long teamId,
long userId)
hasTeamUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasTeamUsers(long teamId)
hasTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void setTeamUsers(long teamId,
long[] userIds)
setTeamUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addUserGroupUser(long userGroupId,
long userId)
addUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addUserGroupUser(long userGroupId,
com.liferay.portal.kernel.model.User user)
addUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic void addUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
addUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addUserGroupUsers(long userGroupId,
List<com.liferay.portal.kernel.model.User> users)
throws com.liferay.portal.kernel.exception.PortalException
addUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void clearUserGroupUsers(long userGroupId)
clearUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteUserGroupUser(long userGroupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
deleteUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteUserGroupUser(long userGroupId,
com.liferay.portal.kernel.model.User user)
throws com.liferay.portal.kernel.exception.PortalException
deleteUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteUserGroupUsers(long userGroupId,
long[] userIds)
deleteUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void deleteUserGroupUsers(long userGroupId,
List<com.liferay.portal.kernel.model.User> users)
deleteUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic long[] getUserGroupPrimaryKeys(long userId)
getUserGroupPrimaryKeys in interface com.liferay.portal.kernel.service.UserLocalServiceuserId - the userId of the userpublic List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId)
getUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId,
int start,
int end)
getUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator)
getUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic int getUserGroupUsersCount(long userGroupId)
getUserGroupUsersCount in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasUserGroupUser(long userGroupId,
long userId)
hasUserGroupUser in interface com.liferay.portal.kernel.service.UserLocalServicepublic boolean hasUserGroupUsers(long userGroupId)
hasUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicepublic void setUserGroupUsers(long userGroupId,
long[] userIds)
throws com.liferay.portal.kernel.exception.PortalException
setUserGroupUsers in interface com.liferay.portal.kernel.service.UserLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.service.UserLocalService getUserLocalService()
public void setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
userLocalService - the user local servicepublic com.liferay.portal.kernel.service.persistence.UserPersistence getUserPersistence()
public void setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence)
userPersistence - the user persistencepublic com.liferay.portal.kernel.service.persistence.UserFinder getUserFinder()
public void setUserFinder(com.liferay.portal.kernel.service.persistence.UserFinder userFinder)
userFinder - the user finderpublic com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
counterLocalService - the counter local servicepublic void afterPropertiesSet()
public void destroy()
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiServicegetOSGiServiceIdentifier in interface com.liferay.portal.kernel.service.UserLocalServicepublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User> getCTPersistence()
getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>getCTPersistence in interface com.liferay.portal.kernel.service.UserLocalServicepublic Class<com.liferay.portal.kernel.model.User> getModelClass()
getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>getModelClass in interface com.liferay.portal.kernel.service.UserLocalServicepublic <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>,R,E> updateUnsafeFunction)
throws E extends Throwable
updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.UserLocalServiceE extends Throwableprotected String getModelClassName()
protected void runSQL(String sql)
sql - the sql query