Class RoleLocalServiceBaseImpl
- 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.Role>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.RoleLocalService
- Direct Known Subclasses:
RoleLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in RoleLocalServiceImpl.
- 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.RoleFinderprotected com.liferay.portal.kernel.service.RoleLocalServiceprotected com.liferay.portal.kernel.service.persistence.RolePersistenceprotected com.liferay.portal.kernel.service.persistence.UserPersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroupRole(long groupId, long roleId) booleanaddGroupRole(long groupId, com.liferay.portal.kernel.model.Role role) booleanaddGroupRoles(long groupId, long[] roleIds) booleanaddGroupRoles(long groupId, List<com.liferay.portal.kernel.model.Role> roles) com.liferay.portal.kernel.model.RoleaddRole(com.liferay.portal.kernel.model.Role role) Adds the role to the database.booleanaddUserRole(long userId, long roleId) booleanaddUserRole(long userId, com.liferay.portal.kernel.model.Role role) booleanaddUserRoles(long userId, long[] roleIds) booleanaddUserRoles(long userId, List<com.liferay.portal.kernel.model.Role> roles) voidvoidclearGroupRoles(long groupId) voidclearUserRoles(long userId) com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.model.RolecreateRole(long roleId) Creates a new role with the primary key.voiddeleteGroupRole(long groupId, long roleId) voiddeleteGroupRole(long groupId, com.liferay.portal.kernel.model.Role role) voiddeleteGroupRoles(long groupId, long[] roleIds) voiddeleteGroupRoles(long groupId, List<com.liferay.portal.kernel.model.Role> roles) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) com.liferay.portal.kernel.model.RoledeleteRole(long roleId) Deletes the role with the primary key from the database.com.liferay.portal.kernel.model.RoledeleteRole(com.liferay.portal.kernel.model.Role role) Deletes the role from the database.voiddeleteUserRole(long userId, long roleId) voiddeleteUserRole(long userId, com.liferay.portal.kernel.model.Role role) voiddeleteUserRoles(long userId, long[] roleIds) voiddeleteUserRoles(long userId, List<com.liferay.portal.kernel.model.Role> roles) 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.RolefetchRole(long roleId) com.liferay.portal.kernel.model.RolefetchRoleByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.RolefetchRoleByUuidAndCompanyId(String uuid, long companyId) Returns the role with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Role>com.liferay.counter.kernel.service.CounterLocalServiceReturns the counter local service.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Role>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) long[]getGroupPrimaryKeys(long roleId) Returns the groupIds of the groups associated with the role.List<com.liferay.portal.kernel.model.Role>getGroupRoles(long groupId) List<com.liferay.portal.kernel.model.Role>getGroupRoles(long groupId, int start, int end) List<com.liferay.portal.kernel.model.Role>getGroupRoles(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> orderByComparator) intgetGroupRolesCount(long groupId) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryClass<com.liferay.portal.kernel.model.Role>protected StringReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) com.liferay.portal.kernel.model.RolegetRole(long roleId) Returns the role with the primary key.com.liferay.portal.kernel.model.RolegetRoleByExternalReferenceCode(String externalReferenceCode, long companyId) com.liferay.portal.kernel.model.RolegetRoleByUuidAndCompanyId(String uuid, long companyId) Returns the role with the matching UUID and company.com.liferay.portal.kernel.service.persistence.RoleFinderReturns the role finder.com.liferay.portal.kernel.service.RoleLocalServiceReturns the role local service.com.liferay.portal.kernel.service.persistence.RolePersistenceReturns the role persistence.List<com.liferay.portal.kernel.model.Role>getRoles(int start, int end) Returns a range of all the roles.intReturns the number of roles.long[]getUserPrimaryKeys(long roleId) Returns the userIds of the users associated with the role.List<com.liferay.portal.kernel.model.Role>getUserRoles(long userId) List<com.liferay.portal.kernel.model.Role>getUserRoles(long userId, int start, int end) List<com.liferay.portal.kernel.model.Role>getUserRoles(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> orderByComparator) intgetUserRolesCount(long userId) booleanhasGroupRole(long groupId, long roleId) booleanhasGroupRoles(long groupId) booleanhasUserRole(long userId, long roleId) booleanhasUserRoles(long userId) 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.voidsetGroupRoles(long groupId, long[] roleIds) voidsetRoleFinder(com.liferay.portal.kernel.service.persistence.RoleFinder roleFinder) Sets the role finder.voidsetRoleLocalService(com.liferay.portal.kernel.service.RoleLocalService roleLocalService) Sets the role local service.voidsetRolePersistence(com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence) Sets the role persistence.voidsetUserRoles(long userId, long[] roleIds) com.liferay.portal.kernel.model.RoleupdateRole(com.liferay.portal.kernel.model.Role role) Updates the role 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.Role>, 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.RoleLocalService
addRole, checkSystemRoles, checkSystemRoles, fetchRole, getAssigneesTotal, getDefaultGroupRole, getGroupRelatedRoles, getGroupRolesAndTeamRoles, getGroupRolesAndTeamRolesCount, getResourceRoles, getResourceRoles, getRole, getRoles, getRoles, getRoles, getRoles, getRoles, getSubtypeRoles, getSubtypeRolesCount, getTeamRole, getTeamRoleMap, getTeamRoles, getTeamRoles, getTeamsRoles, getTypeRoles, getTypeRoles, getTypeRolesCount, getUserGroupGroupRoles, getUserGroupGroupRoles, getUserGroupGroupRolesCount, getUserGroupRoles, getUserRelatedRoles, getUserRelatedRoles, getUserRelatedRoles, getUserTeamRoles, hasUserRole, hasUserRoles, search, search, search, search, searchCount, searchCount, searchCount, searchCount, unsetUserRoles, updateExternalReferenceCode, updateExternalReferenceCode, updateRole, validateName
-
Field Details
-
roleLocalService
@BeanReference(type=com.liferay.portal.kernel.service.RoleLocalService.class) protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService -
rolePersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RolePersistence.class) protected com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence -
roleFinder
@BeanReference(type=com.liferay.portal.kernel.service.persistence.RoleFinder.class) protected com.liferay.portal.kernel.service.persistence.RoleFinder roleFinder -
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 -
userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
-
-
Constructor Details
-
RoleLocalServiceBaseImpl
public RoleLocalServiceBaseImpl()
-
-
Method Details
-
addRole
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Role addRole(com.liferay.portal.kernel.model.Role role) Adds the role to the database. Also notifies the appropriate model listeners.Important: Inspect RoleLocalServiceImpl 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:
addRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
role- the role- Returns:
- the role that was added
-
createRole
@Transactional(enabled=false) public com.liferay.portal.kernel.model.Role createRole(long roleId) Creates a new role with the primary key. Does not add the role to the database.- Specified by:
createRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
roleId- the primary key for the new role- Returns:
- the new role
-
deleteRole
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Role deleteRole(long roleId) throws com.liferay.portal.kernel.exception.PortalException Deletes the role with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect RoleLocalServiceImpl 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:
deleteRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
roleId- the primary key of the role- Returns:
- the role that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a role with the primary key could not be found
-
deleteRole
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Role deleteRole(com.liferay.portal.kernel.model.Role role) throws com.liferay.portal.kernel.exception.PortalException Deletes the role from the database. Also notifies the appropriate model listeners.Important: Inspect RoleLocalServiceImpl 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:
deleteRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
role- the role- Returns:
- the role 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.RoleLocalService
-
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.RoleLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.RoleLocalService- 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.RoleModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.RoleLocalService- 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.RoleModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.portal.kernel.service.RoleLocalService- 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.RoleLocalService- 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.RoleLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchRole
public com.liferay.portal.kernel.model.Role fetchRole(long roleId) - Specified by:
fetchRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
fetchRoleByUuidAndCompanyId
public com.liferay.portal.kernel.model.Role fetchRoleByUuidAndCompanyId(String uuid, long companyId) Returns the role with the matching UUID and company.- Specified by:
fetchRoleByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
uuid- the role's UUIDcompanyId- the primary key of the company- Returns:
- the matching role, or
nullif a matching role could not be found
-
fetchRoleByExternalReferenceCode
public com.liferay.portal.kernel.model.Role fetchRoleByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchRoleByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getRoleByExternalReferenceCode
public com.liferay.portal.kernel.model.Role getRoleByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRoleByExternalReferenceCodein interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRole
public com.liferay.portal.kernel.model.Role getRole(long roleId) throws com.liferay.portal.kernel.exception.PortalException Returns the role with the primary key.- Specified by:
getRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
roleId- the primary key of the role- Returns:
- the role
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a role 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.RoleLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
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.RoleLocalService
-
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.RoleLocalService- 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.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Role> 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.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRoleByUuidAndCompanyId
public com.liferay.portal.kernel.model.Role getRoleByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the role with the matching UUID and company.- Specified by:
getRoleByUuidAndCompanyIdin interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
uuid- the role's UUIDcompanyId- the primary key of the company- Returns:
- the matching role
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching role could not be found
-
getRoles
Returns a range of all the roles.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.RoleModelImpl.- Specified by:
getRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
start- the lower bound of the range of rolesend- the upper bound of the range of roles (not inclusive)- Returns:
- the range of roles
-
getRolesCount
public int getRolesCount()Returns the number of roles.- Specified by:
getRolesCountin interfacecom.liferay.portal.kernel.service.RoleLocalService- Returns:
- the number of roles
-
updateRole
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Role updateRole(com.liferay.portal.kernel.model.Role role) Updates the role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect RoleLocalServiceImpl 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:
updateRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
role- the role- Returns:
- the role that was updated
-
addGroupRole
public boolean addGroupRole(long groupId, long roleId) - Specified by:
addGroupRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
addGroupRole
public boolean addGroupRole(long groupId, com.liferay.portal.kernel.model.Role role) - Specified by:
addGroupRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
addGroupRoles
public boolean addGroupRoles(long groupId, long[] roleIds) - Specified by:
addGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
addGroupRoles
- Specified by:
addGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
clearGroupRoles
public void clearGroupRoles(long groupId) - Specified by:
clearGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
deleteGroupRole
public void deleteGroupRole(long groupId, long roleId) - Specified by:
deleteGroupRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
deleteGroupRole
public void deleteGroupRole(long groupId, com.liferay.portal.kernel.model.Role role) - Specified by:
deleteGroupRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
deleteGroupRoles
public void deleteGroupRoles(long groupId, long[] roleIds) - Specified by:
deleteGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
deleteGroupRoles
- Specified by:
deleteGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getGroupPrimaryKeys
public long[] getGroupPrimaryKeys(long roleId) Returns the groupIds of the groups associated with the role.- Specified by:
getGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
roleId- the roleId of the role- Returns:
- long[] the groupIds of groups associated with the role
-
getGroupRoles
- Specified by:
getGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getGroupRoles
- Specified by:
getGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getGroupRoles
public List<com.liferay.portal.kernel.model.Role> getGroupRoles(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> orderByComparator) - Specified by:
getGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getGroupRolesCount
public int getGroupRolesCount(long groupId) - Specified by:
getGroupRolesCountin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
hasGroupRole
public boolean hasGroupRole(long groupId, long roleId) - Specified by:
hasGroupRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
hasGroupRoles
public boolean hasGroupRoles(long groupId) - Specified by:
hasGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
setGroupRoles
public void setGroupRoles(long groupId, long[] roleIds) - Specified by:
setGroupRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
addUserRole
public boolean addUserRole(long userId, long roleId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserRole
public boolean addUserRole(long userId, com.liferay.portal.kernel.model.Role role) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserRoles
public boolean addUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addUserRoles
public boolean addUserRoles(long userId, List<com.liferay.portal.kernel.model.Role> roles) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
clearUserRoles
public void clearUserRoles(long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
clearUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserRole
public void deleteUserRole(long userId, long roleId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteUserRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserRole
public void deleteUserRole(long userId, com.liferay.portal.kernel.model.Role role) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteUserRolein interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserRoles
public void deleteUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserRoles
public void deleteUserRoles(long userId, List<com.liferay.portal.kernel.model.Role> roles) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long roleId) Returns the userIds of the users associated with the role.- Specified by:
getUserPrimaryKeysin interfacecom.liferay.portal.kernel.service.RoleLocalService- Parameters:
roleId- the roleId of the role- Returns:
- long[] the userIds of users associated with the role
-
getUserRoles
- Specified by:
getUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getUserRoles
- Specified by:
getUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getUserRoles
public List<com.liferay.portal.kernel.model.Role> getUserRoles(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> orderByComparator) - Specified by:
getUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getUserRolesCount
public int getUserRolesCount(long userId) - Specified by:
getUserRolesCountin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
hasUserRole
public boolean hasUserRole(long userId, long roleId) - Specified by:
hasUserRolein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
hasUserRoles
public boolean hasUserRoles(long userId) - Specified by:
hasUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
setUserRoles
public void setUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
setUserRolesin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRoleLocalService
public com.liferay.portal.kernel.service.RoleLocalService getRoleLocalService()Returns the role local service.- Returns:
- the role local service
-
setRoleLocalService
public void setRoleLocalService(com.liferay.portal.kernel.service.RoleLocalService roleLocalService) Sets the role local service.- Parameters:
roleLocalService- the role local service
-
getRolePersistence
public com.liferay.portal.kernel.service.persistence.RolePersistence getRolePersistence()Returns the role persistence.- Returns:
- the role persistence
-
setRolePersistence
public void setRolePersistence(com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence) Sets the role persistence.- Parameters:
rolePersistence- the role persistence
-
getRoleFinder
public com.liferay.portal.kernel.service.persistence.RoleFinder getRoleFinder()Returns the role finder.- Returns:
- the role finder
-
setRoleFinder
public void setRoleFinder(com.liferay.portal.kernel.service.persistence.RoleFinder roleFinder) Sets the role finder.- Parameters:
roleFinder- the role 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.RoleLocalService- Returns:
- the OSGi service identifier
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Role> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Role>- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.RoleLocalService
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Role>- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.RoleLocalService
-
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.Role>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Role>- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.RoleLocalService- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql- the sql query
-