com.liferay.portal.service
Class RoleServiceWrapper

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

public class RoleServiceWrapper
extends java.lang.Object
implements RoleService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class is a wrapper for RoleService.

Author:
Brian Wing Shun Chan
See Also:
RoleService
Generated:

Constructor Summary
RoleServiceWrapper(RoleService roleService)
           
 
Method Summary
 Role addRole(java.lang.String name, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String description, int type)
           
 void addUserRoles(long userId, long[] roleIds)
           
 void deleteRole(long roleId)
           
 Role getGroupRole(long companyId, long groupId)
           
 java.util.List<Role> getGroupRoles(long groupId)
           
 Role getRole(long roleId)
           
 Role getRole(long companyId, java.lang.String name)
           
 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> getUserRoles(long userId)
           
 RoleService getWrappedRoleService()
           
 boolean hasUserRole(long userId, long companyId, java.lang.String name, boolean inherited)
           
 boolean hasUserRoles(long userId, long companyId, java.lang.String[] names, boolean inherited)
           
 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)
           
 
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(java.lang.String name,
                    java.util.Map<java.util.Locale,java.lang.String> titleMap,
                    java.lang.String description,
                    int type)
             throws com.liferay.portal.kernel.exception.PortalException,
                    com.liferay.portal.kernel.exception.SystemException
Specified by:
addRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addUserRoles

public void addUserRoles(long userId,
                         long[] roleIds)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Specified by:
addUserRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteRole

public void deleteRole(long roleId)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Specified by:
deleteRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupRole

public Role getGroupRole(long companyId,
                         long groupId)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Specified by:
getGroupRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupRoles

public java.util.List<Role> getGroupRoles(long groupId)
                                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getGroupRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.SystemException

getRole

public Role getRole(long roleId)
             throws com.liferay.portal.kernel.exception.PortalException,
                    com.liferay.portal.kernel.exception.SystemException
Specified by:
getRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRole

public Role getRole(long companyId,
                    java.lang.String name)
             throws com.liferay.portal.kernel.exception.PortalException,
                    com.liferay.portal.kernel.exception.SystemException
Specified by:
getRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getUserGroupGroupRoles

public java.util.List<Role> getUserGroupGroupRoles(long userId,
                                                   long groupId)
                                            throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserGroupGroupRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.SystemException

getUserGroupRoles

public java.util.List<Role> getUserGroupRoles(long userId,
                                              long groupId)
                                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserGroupRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.SystemException

getUserRelatedRoles

public java.util.List<Role> getUserRelatedRoles(long userId,
                                                java.util.List<Group> groups)
                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserRelatedRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.SystemException

getUserRoles

public java.util.List<Role> getUserRoles(long userId)
                                  throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.SystemException

hasUserRole

public boolean hasUserRole(long userId,
                           long companyId,
                           java.lang.String name,
                           boolean inherited)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Specified by:
hasUserRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasUserRoles

public boolean hasUserRoles(long userId,
                            long companyId,
                            java.lang.String[] names,
                            boolean inherited)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Specified by:
hasUserRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

unsetUserRoles

public void unsetUserRoles(long userId,
                           long[] roleIds)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Specified by:
unsetUserRoles in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateRole

public 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 com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Specified by:
updateRole in interface RoleService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getWrappedRoleService

public RoleService getWrappedRoleService()