com.liferay.portal.service.impl
Class RoleServiceImpl
java.lang.Object
com.liferay.portal.service.impl.PrincipalBean
com.liferay.portal.service.impl.RoleServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.service.RoleService
- public class RoleServiceImpl
- extends PrincipalBean
- implements com.liferay.portal.service.RoleService
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
com.liferay.portal.model.Role |
addRole(java.lang.String name,
int type)
|
void |
deleteRole(long roleId)
|
com.liferay.portal.model.Role |
getGroupRole(long companyId,
long groupId)
|
java.util.List |
getGroupRoles(long groupId)
|
com.liferay.portal.model.Role |
getRole(long roleId)
|
com.liferay.portal.model.Role |
getRole(long companyId,
java.lang.String name)
|
java.util.List |
getUserGroupRoles(long userId,
long groupId)
|
java.util.List |
getUserRelatedRoles(long userId,
java.util.List groups)
|
java.util.List |
getUserRoles(long userId)
|
boolean |
hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
|
boolean |
hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
|
com.liferay.portal.model.Role |
updateRole(long roleId,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleServiceImpl
public RoleServiceImpl()
addRole
public com.liferay.portal.model.Role addRole(java.lang.String name,
int type)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteRole
public void deleteRole(long roleId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
deleteRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroupRole
public com.liferay.portal.model.Role getGroupRole(long companyId,
long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getGroupRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroupRoles
public java.util.List getGroupRoles(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getGroupRoles
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getRole
public com.liferay.portal.model.Role getRole(long roleId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getRole
public com.liferay.portal.model.Role getRole(long companyId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroupRoles
public java.util.List getUserGroupRoles(long userId,
long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserGroupRoles
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserRelatedRoles
public java.util.List getUserRelatedRoles(long userId,
java.util.List groups)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserRelatedRoles
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserRoles
public java.util.List getUserRoles(long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserRoles
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasUserRole
public boolean hasUserRole(long userId,
long companyId,
java.lang.String name,
boolean inherited)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
hasUserRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasUserRoles
public boolean hasUserRoles(long userId,
long companyId,
java.lang.String[] names,
boolean inherited)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
hasUserRoles
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateRole
public com.liferay.portal.model.Role updateRole(long roleId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateRole
in interface com.liferay.portal.service.RoleService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException