|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface RoleLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.RoleLocalServiceImpl
}.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
RoleLocalServiceUtil
Method Summary | |
---|---|
Role |
addRole(long userId,
long companyId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
int type)
|
Role |
addRole(long userId,
long companyId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
int type,
java.lang.String className,
long classPK)
|
Role |
addRole(Role role)
|
void |
addUserRoles(long userId,
long[] roleIds)
|
void |
checkSystemRoles(long companyId)
|
Role |
createRole(long roleId)
|
void |
deleteRole(long roleId)
|
void |
deleteRole(Role role)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
Role |
getDefaultGroupRole(long groupId)
|
java.util.List<Role> |
getGroupRoles(long groupId)
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getResourceRoles(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
Role |
getRole(long roleId)
|
Role |
getRole(long companyId,
java.lang.String name)
|
java.util.List<Role> |
getRoles(int start,
int end)
|
java.util.List<Role> |
getRoles(int type,
java.lang.String subtype)
|
java.util.List<Role> |
getRoles(long companyId)
|
java.util.List<Role> |
getRoles(long[] roleIds)
|
int |
getRolesCount()
|
java.util.List<Role> |
getSubtypeRoles(java.lang.String subtype)
|
int |
getSubtypeRolesCount(java.lang.String subtype)
|
Role |
getTeamRole(long companyId,
long teamId)
|
java.util.List<Role> |
getUserGroupGroupRoles(long userId,
long groupId)
|
java.util.List<Role> |
getUserGroupRoles(long userId,
long groupId)
|
java.util.List<Role> |
getUserRelatedRoles(long userId,
java.util.List<Group> groups)
|
java.util.List<Role> |
getUserRelatedRoles(long userId,
long groupId)
|
java.util.List<Role> |
getUserRelatedRoles(long userId,
long[] groupIds)
|
java.util.List<Role> |
getUserRoles(long userId)
|
boolean |
hasUserRole(long userId,
long roleId)
|
boolean |
hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
Returns true if the user has the regular role. |
boolean |
hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
Returns true if the user has any one of the specified regular roles. |
java.util.List<Role> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer[] types,
int start,
int end,
OrderByComparator obc)
|
java.util.List<Role> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer[] types,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
OrderByComparator obc)
|
int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer[] types)
|
int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer[] types,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
void |
setUserRoles(long userId,
long[] roleIds)
|
void |
unsetUserRoles(long userId,
long[] roleIds)
|
Role |
updateRole(long roleId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String description,
java.lang.String subtype)
|
Role |
updateRole(Role role)
|
Role |
updateRole(Role role,
boolean merge)
|
Method Detail |
---|
Role addRole(Role role) throws SystemException
SystemException
Role createRole(long roleId)
void deleteRole(long roleId) throws PortalException, SystemException
PortalException
SystemException
void deleteRole(Role role) throws SystemException
SystemException
java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Role getRole(long roleId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getRoles(int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getRolesCount() throws SystemException
SystemException
Role updateRole(Role role) throws SystemException
SystemException
Role updateRole(Role role, boolean merge) throws SystemException
SystemException
Role addRole(long userId, long companyId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String description, int type) throws PortalException, SystemException
PortalException
SystemException
Role addRole(long userId, long companyId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String description, int type, java.lang.String className, long classPK) throws PortalException, SystemException
PortalException
SystemException
void addUserRoles(long userId, long[] roleIds) throws PortalException, SystemException
PortalException
SystemException
void checkSystemRoles(long companyId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Role getDefaultGroupRole(long groupId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getGroupRoles(long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResourceRoles(long companyId, java.lang.String name, int scope, java.lang.String primKey) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Role getRole(long companyId, java.lang.String name) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getRoles(long companyId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getRoles(long[] roleIds) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getRoles(int type, java.lang.String subtype) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getSubtypeRoles(java.lang.String subtype) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getSubtypeRolesCount(java.lang.String subtype) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Role getTeamRole(long companyId, long teamId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getUserGroupGroupRoles(long userId, long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getUserGroupRoles(long userId, long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getUserRelatedRoles(long userId, long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getUserRelatedRoles(long userId, long[] groupIds) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getUserRelatedRoles(long userId, java.util.List<Group> groups) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> getUserRoles(long userId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasUserRole(long userId, long roleId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasUserRole(long userId, long companyId, java.lang.String name, boolean inherited) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasUserRoles(long userId, long companyId, java.lang.String[] names, boolean inherited) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> search(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer[] types, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Role> search(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer[] types) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params) throws SystemException
SystemException
void setUserRoles(long userId, long[] roleIds) throws PortalException, SystemException
PortalException
SystemException
void unsetUserRoles(long userId, long[] roleIds) throws PortalException, SystemException
PortalException
SystemException
Role updateRole(long roleId, java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String description, java.lang.String subtype) throws PortalException, SystemException
PortalException
SystemException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |