com.liferay.portal.service
Class RoleLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.RoleLocalServiceWrapper
All Implemented Interfaces:
RoleLocalService

public class RoleLocalServiceWrapper
extends java.lang.Object
implements RoleLocalService

View Source

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

This class is a wrapper for RoleLocalService.

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

Constructor Summary
RoleLocalServiceWrapper(RoleLocalService roleLocalService)
           
 
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<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 Role getGroupRole(long companyId, 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)
           
 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)
           
 RoleLocalService getWrappedRoleLocalService()
           
 boolean hasUserRole(long userId, long roleId)
           
 boolean hasUserRole(long userId, long companyId, java.lang.String name, boolean inherited)
           
 boolean hasUserRoles(long userId, long companyId, java.lang.String[] names, boolean inherited)
           
 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)
           
 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)
           
 int searchCount(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer type)
           
 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 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleLocalServiceWrapper

public RoleLocalServiceWrapper(RoleLocalService roleLocalService)
Method Detail

addRole

public Role addRole(Role role)
             throws com.liferay.portal.kernel.exception.SystemException
Specified by:
addRole in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

createRole

public Role createRole(long roleId)
Specified by:
createRole in interface RoleLocalService

deleteRole

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

deleteRole

public void deleteRole(Role role)
                throws com.liferay.portal.kernel.exception.SystemException
Specified by:
deleteRole in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

public java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
dynamicQuery in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

public java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
dynamicQuery in interface RoleLocalService
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 RoleLocalService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRoles

public java.util.List<Role> getRoles(int start,
                                     int end)
                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getRoles in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

getRolesCount

public int getRolesCount()
                  throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getRolesCount in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

updateRole

public Role updateRole(Role role)
                throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateRole in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

updateRole

public Role updateRole(Role role,
                       boolean merge)
                throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateRole in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

addRole

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

addRole

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

checkSystemRoles

public void checkSystemRoles(long companyId)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Specified by:
checkSystemRoles in interface RoleLocalService
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 RoleLocalService
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 RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

getResourceRoles

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

getRoles

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

getRoles

public java.util.List<Role> getRoles(long[] roleIds)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Specified by:
getRoles in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRoles

public java.util.List<Role> getRoles(int type,
                                     java.lang.String subtype)
                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getRoles in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

getSubtypeRoles

public java.util.List<Role> getSubtypeRoles(java.lang.String subtype)
                                     throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getSubtypeRoles in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

getSubtypeRolesCount

public int getSubtypeRolesCount(java.lang.String subtype)
                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getSubtypeRolesCount in interface RoleLocalService
Throws:
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 RoleLocalService
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 RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

getUserRelatedRoles

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

getUserRelatedRoles

public java.util.List<Role> getUserRelatedRoles(long userId,
                                                long[] groupIds)
                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserRelatedRoles in interface RoleLocalService
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 RoleLocalService
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 RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

hasUserRole

public boolean hasUserRole(long userId,
                           long roleId)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
hasUserRole in interface RoleLocalService
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 RoleLocalService
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 RoleLocalService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

search

public 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.kernel.exception.SystemException
Specified by:
search in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

search

public 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.kernel.exception.SystemException
Specified by:
search in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

searchCount

public int searchCount(long companyId,
                       java.lang.String name,
                       java.lang.String description,
                       java.lang.Integer type)
                throws com.liferay.portal.kernel.exception.SystemException
Specified by:
searchCount in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

searchCount

public 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.kernel.exception.SystemException
Specified by:
searchCount in interface RoleLocalService
Throws:
com.liferay.portal.kernel.exception.SystemException

setUserRoles

public void setUserRoles(long userId,
                         long[] roleIds)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Specified by:
setUserRoles in interface RoleLocalService
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 RoleLocalService
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 RoleLocalService
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getWrappedRoleLocalService

public RoleLocalService getWrappedRoleLocalService()