Liferay 6.0.5

com.liferay.portal.service
Class RoleServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.RoleServiceWrapper
All Implemented Interfaces:
RoleService

public class RoleServiceWrapper
extends Object
implements RoleService

This class is a wrapper for RoleService.

See Also:
RoleService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
RoleServiceWrapper(RoleService roleService)
           
 
Method Summary
 Role addRole(String name, Map<Locale,String> titleMap, String description, int type)
           
 void addUserRoles(long userId, long[] roleIds)
           
 void deleteRole(long roleId)
           
 List<Role> getGroupRoles(long groupId)
           
 Role getRole(long roleId)
           
 Role getRole(long companyId, String name)
           
 List<Role> getUserGroupGroupRoles(long userId, long groupId)
           
 List<Role> getUserGroupRoles(long userId, long groupId)
           
 List<Role> getUserRelatedRoles(long userId, List<Group> groups)
           
 List<Role> getUserRoles(long userId)
           
 RoleService getWrappedRoleService()
           
 boolean hasUserRole(long userId, long companyId, String name, boolean inherited)
           
 boolean hasUserRoles(long userId, long companyId, String[] names, boolean inherited)
           
 void unsetUserRoles(long userId, long[] roleIds)
           
 Role updateRole(long roleId, String name, Map<Locale,String> titleMap, String description, String subtype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleServiceWrapper

public RoleServiceWrapper(RoleService roleService)
Method Detail

addRole

public Role addRole(String name,
                    Map<Locale,String> titleMap,
                    String description,
                    int type)
             throws PortalException,
                    SystemException
Specified by:
addRole in interface RoleService
Throws:
PortalException
SystemException

addUserRoles

public void addUserRoles(long userId,
                         long[] roleIds)
                  throws PortalException,
                         SystemException
Specified by:
addUserRoles in interface RoleService
Throws:
PortalException
SystemException

deleteRole

public void deleteRole(long roleId)
                throws PortalException,
                       SystemException
Specified by:
deleteRole in interface RoleService
Throws:
PortalException
SystemException

getGroupRoles

public List<Role> getGroupRoles(long groupId)
                         throws SystemException
Specified by:
getGroupRoles in interface RoleService
Throws:
SystemException

getRole

public Role getRole(long roleId)
             throws PortalException,
                    SystemException
Specified by:
getRole in interface RoleService
Throws:
PortalException
SystemException

getRole

public Role getRole(long companyId,
                    String name)
             throws PortalException,
                    SystemException
Specified by:
getRole in interface RoleService
Throws:
PortalException
SystemException

getUserGroupGroupRoles

public List<Role> getUserGroupGroupRoles(long userId,
                                         long groupId)
                                  throws SystemException
Specified by:
getUserGroupGroupRoles in interface RoleService
Throws:
SystemException

getUserGroupRoles

public List<Role> getUserGroupRoles(long userId,
                                    long groupId)
                             throws SystemException
Specified by:
getUserGroupRoles in interface RoleService
Throws:
SystemException

getUserRelatedRoles

public List<Role> getUserRelatedRoles(long userId,
                                      List<Group> groups)
                               throws SystemException
Specified by:
getUserRelatedRoles in interface RoleService
Throws:
SystemException

getUserRoles

public List<Role> getUserRoles(long userId)
                        throws SystemException
Specified by:
getUserRoles in interface RoleService
Throws:
SystemException

hasUserRole

public boolean hasUserRole(long userId,
                           long companyId,
                           String name,
                           boolean inherited)
                    throws PortalException,
                           SystemException
Specified by:
hasUserRole in interface RoleService
Throws:
PortalException
SystemException

hasUserRoles

public boolean hasUserRoles(long userId,
                            long companyId,
                            String[] names,
                            boolean inherited)
                     throws PortalException,
                            SystemException
Specified by:
hasUserRoles in interface RoleService
Throws:
PortalException
SystemException

unsetUserRoles

public void unsetUserRoles(long userId,
                           long[] roleIds)
                    throws PortalException,
                           SystemException
Specified by:
unsetUserRoles in interface RoleService
Throws:
PortalException
SystemException

updateRole

public Role updateRole(long roleId,
                       String name,
                       Map<Locale,String> titleMap,
                       String description,
                       String subtype)
                throws PortalException,
                       SystemException
Specified by:
updateRole in interface RoleService
Throws:
PortalException
SystemException

getWrappedRoleService

public RoleService getWrappedRoleService()

Liferay 6.0.5