Class UserLocalServiceBaseImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.UserLocalService
- Direct Known Subclasses:
UserLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in UserLocalServiceImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.counter.kernel.service.CounterLocalServiceprotected 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.UserFinderprotected com.liferay.portal.kernel.service.persistence.UserGroupPersistenceprotected com.liferay.portal.kernel.service.UserLocalServiceprotected com.liferay.portal.kernel.service.persistence.UserPersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroupUser(long groupId, long userId) booleanaddGroupUser(long groupId, com.liferay.portal.kernel.model.User user) booleanaddGroupUsers(long groupId, long[] userIds) booleanaddGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users) booleanaddOrganizationUser(long organizationId, long userId) booleanaddOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user) booleanaddOrganizationUsers(long organizationId, long[] userIds) booleanaddOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users) booleanaddRoleUser(long roleId, long userId) booleanaddRoleUser(long roleId, com.liferay.portal.kernel.model.User user) booleanaddRoleUsers(long roleId, long[] userIds) booleanaddRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users) booleanaddTeamUser(long teamId, long userId) booleanaddTeamUser(long teamId, com.liferay.portal.kernel.model.User user) booleanaddTeamUsers(long teamId, long[] userIds) booleanaddTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users) com.liferay.portal.kernel.model.UseraddUser(com.liferay.portal.kernel.model.User user) Adds the user to the database.booleanaddUserGroupUser(long userGroupId, long userId) booleanaddUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user) booleanaddUserGroupUsers(long userGroupId, long[] userIds) booleanaddUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users) voidvoidclearGroupUsers(long groupId) voidclearOrganizationUsers(long organizationId) voidclearRoleUsers(long roleId) voidclearTeamUsers(long teamId) voidclearUserGroupUsers(long userGroupId) com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.model.UsercreateUser(long userId) Creates a new user with the primary key.voiddeleteGroupUser(long groupId, long userId) voiddeleteGroupUser(long groupId, com.liferay.portal.kernel.model.User user) voiddeleteGroupUsers(long groupId, long[] userIds) voiddeleteGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users) voiddeleteOrganizationUser(long organizationId, long userId) voiddeleteOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user) voiddeleteOrganizationUsers(long organizationId, long[] userIds) voiddeleteOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) voiddeleteRoleUser(long roleId, long userId) voiddeleteRoleUser(long roleId, com.liferay.portal.kernel.model.User user) voiddeleteRoleUsers(long roleId, long[] userIds) voiddeleteRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users) voiddeleteTeamUser(long teamId, long userId) voiddeleteTeamUser(long teamId, com.liferay.portal.kernel.model.User user) voiddeleteTeamUsers(long teamId, long[] userIds) voiddeleteTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users) com.liferay.portal.kernel.model.UserdeleteUser(long userId) Deletes the user with the primary key from the database.com.liferay.portal.kernel.model.UserdeleteUser(com.liferay.portal.kernel.model.User user) Deletes the user from the database.voiddeleteUserGroupUser(long userGroupId, long userId) voiddeleteUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user) voiddeleteUserGroupUsers(long userGroupId, long[] userIds) voiddeleteUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users) voiddestroy()<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.UserfetchUser(long userId) com.liferay.portal.kernel.model.UserfetchUserByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.UserfetchUserByUuidAndCompanyId(String uuid, long companyId) Returns the user with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User>com.liferay.counter.kernel.service.CounterLocalServiceReturns the counter local service.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(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) intgetGroupUsersCount(long groupId) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryClass<com.liferay.portal.kernel.model.User>protected Stringlong[]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) intgetOrganizationUsersCount(long organizationId) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(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) intgetRoleUsersCount(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) intgetTeamUsersCount(long teamId) com.liferay.portal.kernel.model.UsergetUser(long userId) Returns the user with the primary key.com.liferay.portal.kernel.model.UsergetUserByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.UsergetUserByUuidAndCompanyId(String uuid, long companyId) Returns the user with the matching UUID and company.com.liferay.portal.kernel.service.persistence.UserFinderReturns 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) intgetUserGroupUsersCount(long userGroupId) com.liferay.portal.kernel.service.UserLocalServiceReturns the user local service.com.liferay.portal.kernel.service.persistence.UserPersistenceReturns the user persistence.List<com.liferay.portal.kernel.model.User>getUsers(int start, int end) Returns a range of all the users.intReturns the number of users.booleanhasGroupUser(long groupId, long userId) booleanhasGroupUsers(long groupId) booleanhasOrganizationUser(long organizationId, long userId) booleanhasOrganizationUsers(long organizationId) booleanhasRoleUser(long roleId, long userId) booleanhasRoleUsers(long roleId) booleanhasTeamUser(long teamId, long userId) booleanhasTeamUsers(long teamId) booleanhasUserGroupUser(long userGroupId, long userId) booleanhasUserGroupUsers(long userGroupId) protected voidinitActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) protected voidPerforms a SQL query.voidsetCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.voidsetGroupUsers(long groupId, long[] userIds) voidsetOrganizationUsers(long organizationId, long[] userIds) voidsetRoleUsers(long roleId, long[] userIds) voidsetTeamUsers(long teamId, long[] userIds) voidsetUserFinder(com.liferay.portal.kernel.service.persistence.UserFinder userFinder) Sets the user finder.voidsetUserGroupUsers(long userGroupId, long[] userIds) voidsetUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService) Sets the user local service.voidsetUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence) Sets the user persistence.com.liferay.portal.kernel.model.UserupdateUser(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>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User>, R, E> updateUnsafeFunction) Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods 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.PersistedModelLocalService
fetchPersistedModelMethods inherited from interface com.liferay.portal.kernel.service.UserLocalService
addDefaultAdminUser, addDefaultGroups, addDefaultRoles, addDefaultServiceAccountUser, addDefaultUserGroups, addOrUpdateUser, addPasswordPolicyUsers, addUser, addUserWithWorkflow, authenticateByEmailAddress, authenticateByScreenName, authenticateByUserId, authenticateForBasic, authenticateForDigest, checkLockout, checkLoginFailure, checkLoginFailureByEmailAddress, checkLoginFailureById, checkLoginFailureByScreenName, checkPasswordExpired, completeUserRegistration, deletePortrait, encryptUserId, fetchGuestUser, fetchUserByContactId, fetchUserByEmailAddress, fetchUserByFacebookId, fetchUserByGoogleUserId, fetchUserById, fetchUserByOpenId, fetchUserByPortraitId, fetchUserByScreenName, getCompanyUsers, getCompanyUsersCount, getDefaultUser, getDefaultUserId, getGroupUserIds, getGroupUsers, getGroupUsers, getGroupUsersCount, getGuestUser, getGuestUserId, getInheritedRoleUsers, getNoAnnouncementsDeliveries, getNoGroups, getOrganizationsAndUserGroupsUsersCount, getOrganizationUserIds, getOrganizationUsers, getOrganizationUsers, getOrganizationUsersCount, getRoleUserIds, getRoleUserIds, getRoleUsersCount, getSocialUsers, getSocialUsers, getSocialUsers, getSocialUsersCount, getSocialUsersCount, getSocialUsersCount, getUserByContactId, getUserByEmailAddress, getUserByFacebookId, getUserByGoogleUserId, getUserById, getUserById, getUserByOpenId, getUserByPortraitId, getUserByScreenName, getUserGroupUsersCount, getUserIdByEmailAddress, getUserIdByScreenName, getUsers, getUsersByRoleId, getUsersByRoleName, getUsersCount, hasPasswordPolicyUser, hasRoleUser, isPasswordExpired, loadGetGuestUser, search, search, search, search, search, search, searchBySocial, searchBySocial, searchBySocial, searchBySocial, searchCount, searchCount, searchCounts, searchUsers, searchUsers, searchUsers, searchUsers, sendEmailAddressVerification, sendEmailUserCreationAttempt, sendPassword, sendPasswordByEmailAddress, sendPasswordByScreenName, sendPasswordByUserId, sendPasswordLockout, unsetGroupTeamsUsers, unsetGroupUsers, unsetOrganizationUsers, unsetPasswordPolicyUsers, unsetRoleUsers, unsetRoleUsers, unsetTeamUsers, unsetUserGroupUsers, updateAgreedToTermsOfUse, updateAsset, updateCreateDate, updateEmailAddress, updateEmailAddress, updateEmailAddressVerified, updateExternalReferenceCode, updateExternalReferenceCode, updateFacebookId, updateGoogleUserId, updateGroups, updateIncompleteUser, updateJobTitle, updateLanguageId, updateLastLogin, updateLastLogin, updateLockout, updateLockoutByEmailAddress, updateLockoutById, updateLockoutByScreenName, updateModifiedDate, updateOpenId, updateOrganizations, updatePassword, updatePassword, updatePasswordManually, updatePasswordReset, updatePortrait, updateReminderQuery, updateScreenName, updateStatus, updateStatus, updateUser, validateMaxUsers, verifyEmailAddress
-
Field Details
-
userLocalService
@BeanReference(type=com.liferay.portal.kernel.service.UserLocalService.class) protected com.liferay.portal.kernel.service.UserLocalService userLocalService -
userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence -
userFinder
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserFinder.class) protected com.liferay.portal.kernel.service.persistence.UserFinder userFinder -
counterLocalService
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService -
groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence -
organizationPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence -
rolePersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence -
teamPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.TeamPersistence.class) protected com.liferay.portal.kernel.service.persistence.TeamPersistence teamPersistence -
userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
-
-
Constructor Details
-
UserLocalServiceBaseImpl
public UserLocalServiceBaseImpl()
-
-
Method Details
-
addUser
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.User addUser(com.liferay.portal.kernel.model.User user) Adds the user to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
user- the user- Returns:
- the user that was added
-
createUser
@Transactional(enabled=false) public com.liferay.portal.kernel.model.User createUser(long userId) Creates a new user with the primary key. Does not add the user to the database.- Specified by:
createUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the primary key for the new user- Returns:
- the new user
-
deleteUser
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.User deleteUser(long userId) throws com.liferay.portal.kernel.exception.PortalException Deletes the user with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the primary key of the user- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a user with the primary key could not be found
-
deleteUser
@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 Deletes the user from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
user- the user- Returns:
- the user that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.UserLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.UserLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <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.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.UserModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
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) Performs a dynamic query on the database and returns an ordered range of the matching rows.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.UserModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
dynamicQuery- 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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCountin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchUser
public com.liferay.portal.kernel.model.User fetchUser(long userId) - Specified by:
fetchUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
fetchUserByUuidAndCompanyId
public com.liferay.portal.kernel.model.User fetchUserByUuidAndCompanyId(String uuid, long companyId) Returns the user with the matching UUID and company.- Specified by:
fetchUserByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
uuid- the user's UUIDcompanyId- the primary key of the company- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchUserByExternalReferenceCode
public com.liferay.portal.kernel.model.User fetchUserByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchUserByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.UserLocalService
-
getUserByExternalReferenceCode
public com.liferay.portal.kernel.model.User getUserByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getUserByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUser
public com.liferay.portal.kernel.model.User getUser(long userId) throws com.liferay.portal.kernel.exception.PortalException Returns the user with the primary key.- Specified by:
getUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the primary key of the user- Returns:
- the user
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a user with the primary key could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService
-
initActionableDynamicQuery
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) -
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.UserLocalService
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.User> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserByUuidAndCompanyId
public com.liferay.portal.kernel.model.User getUserByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the user with the matching UUID and company.- Specified by:
getUserByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
uuid- the user's UUIDcompanyId- the primary key of the company- Returns:
- the matching user
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching user could not be found
-
getUsers
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.UserModelImpl.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- 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
-
getUsersCount
public int getUsersCount()Returns the number of users.- Specified by:
getUsersCountin interfacecom.liferay.portal.kernel.service.UserLocalService- Returns:
- the number of users
-
updateUser
@Indexable(type=REINDEX) public 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. Also notifies the appropriate model listeners.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.
- Specified by:
updateUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
user- the user- Returns:
- the user that was updated
-
addGroupUser
public boolean addGroupUser(long groupId, long userId) - Specified by:
addGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addGroupUser
public boolean addGroupUser(long groupId, com.liferay.portal.kernel.model.User user) - Specified by:
addGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addGroupUsers
public boolean addGroupUsers(long groupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addGroupUsers
public boolean addGroupUsers(long groupId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearGroupUsers
public void clearGroupUsers(long groupId) - Specified by:
clearGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteGroupUser
public void deleteGroupUser(long groupId, long userId) - Specified by:
deleteGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteGroupUser
public void deleteGroupUser(long groupId, com.liferay.portal.kernel.model.User user) - Specified by:
deleteGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteGroupUsers
public void deleteGroupUsers(long groupId, long[] userIds) - Specified by:
deleteGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteGroupUsers
- Specified by:
deleteGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getGroupPrimaryKeys
public long[] getGroupPrimaryKeys(long userId) Returns the groupIds of the groups associated with the user.- Specified by:
getGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the userId of the user- Returns:
- long[] the groupIds of groups associated with the user
-
getGroupUsers
- Specified by:
getGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getGroupUsers
public List<com.liferay.portal.kernel.model.User> getGroupUsers(long groupId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupUsers
public 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) - Specified by:
getGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getGroupUsersCount
public int getGroupUsersCount(long groupId) - Specified by:
getGroupUsersCountin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasGroupUser
public boolean hasGroupUser(long groupId, long userId) - Specified by:
hasGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasGroupUsers
public boolean hasGroupUsers(long groupId) - Specified by:
hasGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
setGroupUsers
public void setGroupUsers(long groupId, long[] userIds) - Specified by:
setGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addOrganizationUser
public boolean addOrganizationUser(long organizationId, long userId) - Specified by:
addOrganizationUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addOrganizationUser
public boolean addOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user) - Specified by:
addOrganizationUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addOrganizationUsers
public boolean addOrganizationUsers(long organizationId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrganizationUsers
public boolean addOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearOrganizationUsers
public void clearOrganizationUsers(long organizationId) - Specified by:
clearOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteOrganizationUser
public void deleteOrganizationUser(long organizationId, long userId) - Specified by:
deleteOrganizationUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteOrganizationUser
public void deleteOrganizationUser(long organizationId, com.liferay.portal.kernel.model.User user) - Specified by:
deleteOrganizationUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteOrganizationUsers
public void deleteOrganizationUsers(long organizationId, long[] userIds) - Specified by:
deleteOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteOrganizationUsers
public void deleteOrganizationUsers(long organizationId, List<com.liferay.portal.kernel.model.User> users) - Specified by:
deleteOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getOrganizationPrimaryKeys
public long[] getOrganizationPrimaryKeys(long userId) Returns the organizationIds of the organizations associated with the user.- Specified by:
getOrganizationPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the userId of the user- Returns:
- long[] the organizationIds of organizations associated with the user
-
getOrganizationUsers
- Specified by:
getOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getOrganizationUsers
public List<com.liferay.portal.kernel.model.User> getOrganizationUsers(long organizationId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrganizationUsers
public 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) - Specified by:
getOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getOrganizationUsersCount
public int getOrganizationUsersCount(long organizationId) - Specified by:
getOrganizationUsersCountin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasOrganizationUser
public boolean hasOrganizationUser(long organizationId, long userId) - Specified by:
hasOrganizationUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasOrganizationUsers
public boolean hasOrganizationUsers(long organizationId) - Specified by:
hasOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
setOrganizationUsers
public void setOrganizationUsers(long organizationId, long[] userIds) - Specified by:
setOrganizationUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addRoleUser
public boolean addRoleUser(long roleId, long userId) - Specified by:
addRoleUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addRoleUser
public boolean addRoleUser(long roleId, com.liferay.portal.kernel.model.User user) - Specified by:
addRoleUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addRoleUsers
public boolean addRoleUsers(long roleId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addRoleUsers
public boolean addRoleUsers(long roleId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearRoleUsers
public void clearRoleUsers(long roleId) - Specified by:
clearRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteRoleUser
public void deleteRoleUser(long roleId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteRoleUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRoleUser
public void deleteRoleUser(long roleId, com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteRoleUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRoleUsers
public void deleteRoleUsers(long roleId, long[] userIds) - Specified by:
deleteRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteRoleUsers
- Specified by:
deleteRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getRolePrimaryKeys
public long[] getRolePrimaryKeys(long userId) Returns the roleIds of the roles associated with the user.- Specified by:
getRolePrimaryKeysin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the userId of the user- Returns:
- long[] the roleIds of roles associated with the user
-
getRoleUsers
- Specified by:
getRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getRoleUsers
- Specified by:
getRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getRoleUsers
public 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) - Specified by:
getRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getRoleUsersCount
public int getRoleUsersCount(long roleId) - Specified by:
getRoleUsersCountin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasRoleUser
public boolean hasRoleUser(long roleId, long userId) - Specified by:
hasRoleUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasRoleUsers
public boolean hasRoleUsers(long roleId) - Specified by:
hasRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
setRoleUsers
public void setRoleUsers(long roleId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setRoleUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTeamUser
public boolean addTeamUser(long teamId, long userId) - Specified by:
addTeamUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addTeamUser
public boolean addTeamUser(long teamId, com.liferay.portal.kernel.model.User user) - Specified by:
addTeamUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addTeamUsers
public boolean addTeamUsers(long teamId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTeamUsers
public boolean addTeamUsers(long teamId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearTeamUsers
public void clearTeamUsers(long teamId) - Specified by:
clearTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteTeamUser
public void deleteTeamUser(long teamId, long userId) - Specified by:
deleteTeamUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteTeamUser
public void deleteTeamUser(long teamId, com.liferay.portal.kernel.model.User user) - Specified by:
deleteTeamUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteTeamUsers
public void deleteTeamUsers(long teamId, long[] userIds) - Specified by:
deleteTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteTeamUsers
- Specified by:
deleteTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getTeamPrimaryKeys
public long[] getTeamPrimaryKeys(long userId) Returns the teamIds of the teams associated with the user.- Specified by:
getTeamPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the userId of the user- Returns:
- long[] the teamIds of teams associated with the user
-
getTeamUsers
- Specified by:
getTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getTeamUsers
- Specified by:
getTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getTeamUsers
public 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) - Specified by:
getTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getTeamUsersCount
public int getTeamUsersCount(long teamId) - Specified by:
getTeamUsersCountin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasTeamUser
public boolean hasTeamUser(long teamId, long userId) - Specified by:
hasTeamUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasTeamUsers
public boolean hasTeamUsers(long teamId) - Specified by:
hasTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
setTeamUsers
public void setTeamUsers(long teamId, long[] userIds) - Specified by:
setTeamUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addUserGroupUser
public boolean addUserGroupUser(long userGroupId, long userId) - Specified by:
addUserGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addUserGroupUser
public boolean addUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user) - Specified by:
addUserGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
addUserGroupUsers
public boolean addUserGroupUsers(long userGroupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserGroupUsers
public boolean addUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearUserGroupUsers
public void clearUserGroupUsers(long userGroupId) - Specified by:
clearUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteUserGroupUser
public void deleteUserGroupUser(long userGroupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteUserGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserGroupUser
public void deleteUserGroupUser(long userGroupId, com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteUserGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserGroupUsers
public void deleteUserGroupUsers(long userGroupId, long[] userIds) - Specified by:
deleteUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
deleteUserGroupUsers
public void deleteUserGroupUsers(long userGroupId, List<com.liferay.portal.kernel.model.User> users) - Specified by:
deleteUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getUserGroupPrimaryKeys
public long[] getUserGroupPrimaryKeys(long userId) Returns the userGroupIds of the user groups associated with the user.- Specified by:
getUserGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.UserLocalService- Parameters:
userId- the userId of the user- Returns:
- long[] the userGroupIds of user groups associated with the user
-
getUserGroupUsers
- Specified by:
getUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getUserGroupUsers
public List<com.liferay.portal.kernel.model.User> getUserGroupUsers(long userGroupId, int start, int end) - Specified by:
getUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getUserGroupUsers
public 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) - Specified by:
getUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
getUserGroupUsersCount
public int getUserGroupUsersCount(long userGroupId) - Specified by:
getUserGroupUsersCountin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasUserGroupUser
public boolean hasUserGroupUser(long userGroupId, long userId) - Specified by:
hasUserGroupUserin interfacecom.liferay.portal.kernel.service.UserLocalService
-
hasUserGroupUsers
public boolean hasUserGroupUsers(long userGroupId) - Specified by:
hasUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService
-
setUserGroupUsers
public void setUserGroupUsers(long userGroupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setUserGroupUsersin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserLocalService
public com.liferay.portal.kernel.service.UserLocalService getUserLocalService()Returns the user local service.- Returns:
- the user local service
-
setUserLocalService
public void setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService) Sets the user local service.- Parameters:
userLocalService- the user local service
-
getUserPersistence
public com.liferay.portal.kernel.service.persistence.UserPersistence getUserPersistence()Returns the user persistence.- Returns:
- the user persistence
-
setUserPersistence
public void setUserPersistence(com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence) Sets the user persistence.- Parameters:
userPersistence- the user persistence
-
getUserFinder
public com.liferay.portal.kernel.service.persistence.UserFinder getUserFinder()Returns the user finder.- Returns:
- the user finder
-
setUserFinder
public void setUserFinder(com.liferay.portal.kernel.service.persistence.UserFinder userFinder) Sets the user finder.- Parameters:
userFinder- the user finder
-
getCounterLocalService
public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()Returns the counter local service.- Returns:
- the counter local service
-
setCounterLocalService
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.- Parameters:
counterLocalService- the counter local service
-
afterPropertiesSet
public void afterPropertiesSet() -
destroy
public void destroy() -
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.service.UserLocalService- Returns:
- the OSGi service identifier
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.User> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.UserLocalService
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.UserLocalService
-
updateWithUnsafeFunction
public <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, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.User>- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.UserLocalService- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql- the sql query
-