public abstract class RoleLocalServiceBaseImpl
extends com.liferay.portal.kernel.service.BaseLocalServiceImpl
implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.RoleLocalService
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in RoleLocalServiceImpl
.
RoleLocalServiceImpl
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.RoleFinder |
roleFinder |
protected com.liferay.portal.kernel.service.RoleLocalService |
roleLocalService |
protected com.liferay.portal.kernel.service.persistence.RolePersistence |
rolePersistence |
protected com.liferay.portal.kernel.service.persistence.UserPersistence |
userPersistence |
Constructor and Description |
---|
RoleLocalServiceBaseImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
addGroupRole(long groupId,
long roleId) |
boolean |
addGroupRole(long groupId,
com.liferay.portal.kernel.model.Role role) |
boolean |
addGroupRoles(long groupId,
List<com.liferay.portal.kernel.model.Role> roles) |
boolean |
addGroupRoles(long groupId,
long[] roleIds) |
com.liferay.portal.kernel.model.Role |
addRole(com.liferay.portal.kernel.model.Role role)
Adds the role to the database.
|
boolean |
addUserRole(long userId,
long roleId) |
boolean |
addUserRole(long userId,
com.liferay.portal.kernel.model.Role role) |
boolean |
addUserRoles(long userId,
List<com.liferay.portal.kernel.model.Role> roles) |
boolean |
addUserRoles(long userId,
long[] roleIds) |
void |
afterPropertiesSet() |
void |
clearGroupRoles(long groupId) |
void |
clearUserRoles(long userId) |
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
com.liferay.portal.kernel.model.Role |
createRole(long roleId)
Creates a new role with the primary key.
|
void |
deleteGroupRole(long groupId,
long roleId) |
void |
deleteGroupRole(long groupId,
com.liferay.portal.kernel.model.Role role) |
void |
deleteGroupRoles(long groupId,
List<com.liferay.portal.kernel.model.Role> roles) |
void |
deleteGroupRoles(long groupId,
long[] roleIds) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
com.liferay.portal.kernel.model.Role |
deleteRole(long roleId)
Deletes the role with the primary key from the database.
|
com.liferay.portal.kernel.model.Role |
deleteRole(com.liferay.portal.kernel.model.Role role)
Deletes the role from the database.
|
void |
deleteUserRole(long userId,
long roleId) |
void |
deleteUserRole(long userId,
com.liferay.portal.kernel.model.Role role) |
void |
deleteUserRoles(long userId,
List<com.liferay.portal.kernel.model.Role> roles) |
void |
deleteUserRoles(long userId,
long[] roleIds) |
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.Role |
fetchRole(long roleId) |
com.liferay.portal.kernel.model.Role |
fetchRoleByUuidAndCompanyId(String uuid,
long companyId)
Returns the role 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.Role> |
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.Role> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(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) |
int |
getGroupRolesCount(long groupId) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<com.liferay.portal.kernel.model.Role> |
getModelClass() |
protected String |
getModelClassName() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
com.liferay.portal.kernel.model.Role |
getRole(long roleId)
Returns the role with the primary key.
|
com.liferay.portal.kernel.model.Role |
getRoleByUuidAndCompanyId(String uuid,
long companyId)
Returns the role with the matching UUID and company.
|
com.liferay.portal.kernel.service.persistence.RoleFinder |
getRoleFinder()
Returns the role finder.
|
com.liferay.portal.kernel.service.RoleLocalService |
getRoleLocalService()
Returns the role local service.
|
com.liferay.portal.kernel.service.persistence.RolePersistence |
getRolePersistence()
Returns the role persistence.
|
List<com.liferay.portal.kernel.model.Role> |
getRoles(int start,
int end)
Returns a range of all the roles.
|
int |
getRolesCount()
Returns 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) |
int |
getUserRolesCount(long userId) |
boolean |
hasGroupRole(long groupId,
long roleId) |
boolean |
hasGroupRoles(long groupId) |
boolean |
hasUserRole(long userId,
long roleId) |
boolean |
hasUserRoles(long userId) |
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 |
setGroupRoles(long groupId,
long[] roleIds) |
void |
setRoleFinder(com.liferay.portal.kernel.service.persistence.RoleFinder roleFinder)
Sets the role finder.
|
void |
setRoleLocalService(com.liferay.portal.kernel.service.RoleLocalService roleLocalService)
Sets the role local service.
|
void |
setRolePersistence(com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence)
Sets the role persistence.
|
void |
setUserRoles(long userId,
long[] roleIds) |
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.
|
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Role>,R,E> updateUnsafeFunction) |
getClassLoader, getLocalizationMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, updateRole, validateName
@BeanReference(type=com.liferay.portal.kernel.service.RoleLocalService.class) protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService
@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.RoleFinder.class) protected com.liferay.portal.kernel.service.persistence.RoleFinder roleFinder
@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.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Role addRole(com.liferay.portal.kernel.model.Role role)
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.
addRole
in interface com.liferay.portal.kernel.service.RoleLocalService
role
- the role@Transactional(enabled=false) public com.liferay.portal.kernel.model.Role createRole(long roleId)
createRole
in interface com.liferay.portal.kernel.service.RoleLocalService
roleId
- the primary key for the new role@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Role deleteRole(long roleId) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteRole
in interface com.liferay.portal.kernel.service.RoleLocalService
roleId
- the primary key of the rolecom.liferay.portal.kernel.exception.PortalException
- if a role with the primary key could not be found@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
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.
deleteRole
in interface com.liferay.portal.kernel.service.RoleLocalService
role
- the rolecom.liferay.portal.kernel.exception.PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
dslQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.RoleLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
dynamicQuery
- 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.RoleModelImpl
.
dynamicQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
dynamicQuery
- 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.RoleModelImpl
.
dynamicQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface com.liferay.portal.kernel.service.RoleLocalService
dynamicQuery
- 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.RoleLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic com.liferay.portal.kernel.model.Role fetchRole(long roleId)
fetchRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public com.liferay.portal.kernel.model.Role fetchRoleByUuidAndCompanyId(String uuid, long companyId)
fetchRoleByUuidAndCompanyId
in interface com.liferay.portal.kernel.service.RoleLocalService
uuid
- the role's UUIDcompanyId
- the primary key of the companynull
if a matching role could not be foundpublic com.liferay.portal.kernel.model.Role getRole(long roleId) throws com.liferay.portal.kernel.exception.PortalException
getRole
in interface com.liferay.portal.kernel.service.RoleLocalService
roleId
- the primary key of the rolecom.liferay.portal.kernel.exception.PortalException
- if a role with the primary key could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface com.liferay.portal.kernel.service.RoleLocalService
protected 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.RoleLocalService
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public 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.PersistedModelLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Role> getBasePersistence()
getBasePersistence
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Role getRoleByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getRoleByUuidAndCompanyId
in interface com.liferay.portal.kernel.service.RoleLocalService
uuid
- the role's UUIDcompanyId
- the primary key of the companycom.liferay.portal.kernel.exception.PortalException
- if a matching role could not be foundpublic List<com.liferay.portal.kernel.model.Role> getRoles(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.RoleModelImpl
.
getRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
start
- the lower bound of the range of rolesend
- the upper bound of the range of roles (not inclusive)public int getRolesCount()
getRolesCount
in interface com.liferay.portal.kernel.service.RoleLocalService
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Role updateRole(com.liferay.portal.kernel.model.Role role)
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.
updateRole
in interface com.liferay.portal.kernel.service.RoleLocalService
role
- the rolepublic boolean addGroupRole(long groupId, long roleId)
addGroupRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean addGroupRole(long groupId, com.liferay.portal.kernel.model.Role role)
addGroupRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean addGroupRoles(long groupId, long[] roleIds)
addGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean addGroupRoles(long groupId, List<com.liferay.portal.kernel.model.Role> roles)
addGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public void clearGroupRoles(long groupId)
clearGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public void deleteGroupRole(long groupId, long roleId)
deleteGroupRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public void deleteGroupRole(long groupId, com.liferay.portal.kernel.model.Role role)
deleteGroupRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public void deleteGroupRoles(long groupId, long[] roleIds)
deleteGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public void deleteGroupRoles(long groupId, List<com.liferay.portal.kernel.model.Role> roles)
deleteGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public long[] getGroupPrimaryKeys(long roleId)
getGroupPrimaryKeys
in interface com.liferay.portal.kernel.service.RoleLocalService
roleId
- the roleId of the rolepublic List<com.liferay.portal.kernel.model.Role> getGroupRoles(long groupId)
getGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public List<com.liferay.portal.kernel.model.Role> getGroupRoles(long groupId, int start, int end)
getGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
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)
getGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public int getGroupRolesCount(long groupId)
getGroupRolesCount
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean hasGroupRole(long groupId, long roleId)
hasGroupRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean hasGroupRoles(long groupId)
hasGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public void setGroupRoles(long groupId, long[] roleIds)
setGroupRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean addUserRole(long userId, long roleId) throws com.liferay.portal.kernel.exception.PortalException
addUserRole
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public boolean addUserRole(long userId, com.liferay.portal.kernel.model.Role role) throws com.liferay.portal.kernel.exception.PortalException
addUserRole
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public boolean addUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
addUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public boolean addUserRoles(long userId, List<com.liferay.portal.kernel.model.Role> roles) throws com.liferay.portal.kernel.exception.PortalException
addUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public void clearUserRoles(long userId) throws com.liferay.portal.kernel.exception.PortalException
clearUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteUserRole(long userId, long roleId) throws com.liferay.portal.kernel.exception.PortalException
deleteUserRole
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteUserRole(long userId, com.liferay.portal.kernel.model.Role role) throws com.liferay.portal.kernel.exception.PortalException
deleteUserRole
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
deleteUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteUserRoles(long userId, List<com.liferay.portal.kernel.model.Role> roles) throws com.liferay.portal.kernel.exception.PortalException
deleteUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public long[] getUserPrimaryKeys(long roleId)
getUserPrimaryKeys
in interface com.liferay.portal.kernel.service.RoleLocalService
roleId
- the roleId of the rolepublic List<com.liferay.portal.kernel.model.Role> getUserRoles(long userId)
getUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public List<com.liferay.portal.kernel.model.Role> getUserRoles(long userId, int start, int end)
getUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
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)
getUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public int getUserRolesCount(long userId)
getUserRolesCount
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean hasUserRole(long userId, long roleId)
hasUserRole
in interface com.liferay.portal.kernel.service.RoleLocalService
public boolean hasUserRoles(long userId)
hasUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
public void setUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
setUserRoles
in interface com.liferay.portal.kernel.service.RoleLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.service.RoleLocalService getRoleLocalService()
public void setRoleLocalService(com.liferay.portal.kernel.service.RoleLocalService roleLocalService)
roleLocalService
- the role local servicepublic com.liferay.portal.kernel.service.persistence.RolePersistence getRolePersistence()
public void setRolePersistence(com.liferay.portal.kernel.service.persistence.RolePersistence rolePersistence)
rolePersistence
- the role persistencepublic com.liferay.portal.kernel.service.persistence.RoleFinder getRoleFinder()
public void setRoleFinder(com.liferay.portal.kernel.service.persistence.RoleFinder roleFinder)
roleFinder
- the role 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.IdentifiableOSGiService
getOSGiServiceIdentifier
in interface com.liferay.portal.kernel.service.RoleLocalService
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Role> getCTPersistence()
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Role>
getCTPersistence
in interface com.liferay.portal.kernel.service.RoleLocalService
public Class<com.liferay.portal.kernel.model.Role> getModelClass()
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Role>
getModelClass
in interface com.liferay.portal.kernel.service.RoleLocalService
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,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Role>
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.RoleLocalService
E extends Throwable
protected String getModelClassName()
protected void runSQL(String sql)
sql
- the sql query