com.liferay.portal.service
Class RoleLocalServiceUtil
java.lang.Object
com.liferay.portal.service.RoleLocalServiceUtil
public class RoleLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portal.service.RoleLocalService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
RoleLocalService
Method Summary |
static Role |
addRole(long userId,
long companyId,
java.lang.String name,
java.lang.String description,
int type)
|
static Role |
addRole(long userId,
long companyId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String className,
long classPK)
|
static Role |
addRole(Role role)
|
static void |
addUserRoles(long userId,
long[] roleIds)
|
static void |
checkSystemRoles(long companyId)
|
static Role |
createRole(long roleId)
|
static void |
deleteRole(long roleId)
|
static void |
deleteRole(Role role)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static Role |
getGroupRole(long companyId,
long groupId)
|
static java.util.List<Role> |
getGroupRoles(long groupId)
|
static 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)
|
static Role |
getRole(long roleId)
|
static Role |
getRole(long companyId,
java.lang.String name)
|
static java.util.List<Role> |
getRoles(int start,
int end)
|
static java.util.List<Role> |
getRoles(long companyId)
|
static java.util.List<Role> |
getRoles(long[] roleIds)
|
static int |
getRolesCount()
|
static RoleLocalService |
getService()
|
static java.util.List<Role> |
getUserGroupRoles(long userId,
long groupId)
|
static java.util.List<Role> |
getUserRelatedRoles(long userId,
java.util.List<Group> groups)
|
static java.util.List<Role> |
getUserRelatedRoles(long userId,
long groupId)
|
static java.util.List<Role> |
getUserRelatedRoles(long userId,
long[] groupIds)
|
static java.util.List<Role> |
getUserRoles(long userId)
|
static boolean |
hasUserRole(long userId,
long roleId)
|
static boolean |
hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
|
static boolean |
hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
|
static java.util.List<Role> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Role> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type)
|
static int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
void |
setService(RoleLocalService service)
|
static void |
setUserRoles(long userId,
long[] roleIds)
|
static void |
unsetUserRoles(long userId,
long[] roleIds)
|
static Role |
updateRole(long roleId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String subtype)
|
static Role |
updateRole(Role role)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleLocalServiceUtil
public RoleLocalServiceUtil()
addRole
public static Role addRole(Role role)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createRole
public static Role createRole(long roleId)
deleteRole
public static void deleteRole(long roleId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteRole
public static void deleteRole(Role role)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRole
public static Role getRole(long roleId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getRoles
public static java.util.List<Role> getRoles(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRolesCount
public static int getRolesCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateRole
public static Role updateRole(Role role)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addRole
public static Role addRole(long userId,
long companyId,
java.lang.String name,
java.lang.String description,
int type)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addRole
public static Role addRole(long userId,
long companyId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String className,
long classPK)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addUserRoles
public static void addUserRoles(long userId,
long[] roleIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
checkSystemRoles
public static void checkSystemRoles(long companyId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroupRole
public static Role getGroupRole(long companyId,
long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroupRoles
public static java.util.List<Role> getGroupRoles(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getResourceRoles
public static 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 com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRole
public static Role getRole(long companyId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getRoles
public static java.util.List<Role> getRoles(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRoles
public static java.util.List<Role> getRoles(long[] roleIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroupRoles
public static java.util.List<Role> getUserGroupRoles(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserRelatedRoles
public static java.util.List<Role> getUserRelatedRoles(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserRelatedRoles
public static java.util.List<Role> getUserRelatedRoles(long userId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserRelatedRoles
public static java.util.List<Role> getUserRelatedRoles(long userId,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserRoles
public static java.util.List<Role> getUserRoles(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserRole
public static boolean hasUserRole(long userId,
long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserRole
public static boolean hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasUserRoles
public static boolean hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
search
public static java.util.List<Role> search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Role> search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public static int searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public static int searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setUserRoles
public static void setUserRoles(long userId,
long[] roleIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetUserRoles
public static void unsetUserRoles(long userId,
long[] roleIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateRole
public static Role updateRole(long roleId,
java.lang.String name,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String subtype)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getService
public static RoleLocalService getService()
setService
public void setService(RoleLocalService service)