Liferay 6.0.5

com.liferay.portal.service
Class ResourcePermissionLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.ResourcePermissionLocalServiceWrapper
All Implemented Interfaces:
ResourcePermissionLocalService

public class ResourcePermissionLocalServiceWrapper
extends Object
implements ResourcePermissionLocalService

This class is a wrapper for ResourcePermissionLocalService.

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

Constructor Summary
ResourcePermissionLocalServiceWrapper(ResourcePermissionLocalService resourcePermissionLocalService)
           
 
Method Summary
 void addResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId)
           
 ResourcePermission addResourcePermission(ResourcePermission resourcePermission)
          Adds the resource permission to the database.
 ResourcePermission createResourcePermission(long resourcePermissionId)
          Creates a new resource permission with the primary key.
 void deleteResourcePermission(long resourcePermissionId)
          Deletes the resource permission with the primary key from the database.
 void deleteResourcePermission(ResourcePermission resourcePermission)
          Deletes the resource permission from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 List<String> getAvailableResourcePermissionActionIds(long companyId, String name, int scope, String primKey, long roleId, List<String> actionIds)
           
 ResourcePermission getResourcePermission(long resourcePermissionId)
          Gets the resource permission with the primary key.
 List<ResourcePermission> getResourcePermissions(int start, int end)
          Gets a range of all the resource permissions.
 List<ResourcePermission> getResourcePermissions(long companyId, String name, int scope, String primKey)
           
 int getResourcePermissionsCount()
          Gets the number of resource permissions.
 int getResourcePermissionsCount(long companyId, String name, int scope, String primKey)
           
 List<ResourcePermission> getRoleResourcePermissions(long roleId)
           
 List<ResourcePermission> getRoleResourcePermissions(long roleId, int[] scopes, int start, int end)
           
 ResourcePermissionLocalService getWrappedResourcePermissionLocalService()
           
 boolean hasActionId(ResourcePermission resourcePermission, ResourceAction resourceAction)
           
 boolean hasResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId)
           
 boolean hasScopeResourcePermission(long companyId, String name, int scope, long roleId, String actionId)
           
 void mergePermissions(long fromRoleId, long toRoleId)
           
 void reassignPermissions(long resourcePermissionId, long toRoleId)
           
 void removeResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId)
           
 void removeResourcePermissions(long companyId, String name, int scope, long roleId, String actionId)
           
 void setResourcePermissions(long companyId, String name, int scope, String primKey, long roleId, String[] actionIds)
           
 ResourcePermission updateResourcePermission(ResourcePermission resourcePermission)
          Updates the resource permission in the database.
 ResourcePermission updateResourcePermission(ResourcePermission resourcePermission, boolean merge)
          Updates the resource permission in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcePermissionLocalServiceWrapper

public ResourcePermissionLocalServiceWrapper(ResourcePermissionLocalService resourcePermissionLocalService)
Method Detail

addResourcePermission

public ResourcePermission addResourcePermission(ResourcePermission resourcePermission)
                                         throws SystemException
Adds the resource permission to the database. Also notifies the appropriate model listeners.

Specified by:
addResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermission - the resource permission to add
Returns:
the resource permission that was added
Throws:
SystemException - if a system exception occurred

createResourcePermission

public ResourcePermission createResourcePermission(long resourcePermissionId)
Creates a new resource permission with the primary key. Does not add the resource permission to the database.

Specified by:
createResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermissionId - the primary key for the new resource permission
Returns:
the new resource permission

deleteResourcePermission

public void deleteResourcePermission(long resourcePermissionId)
                              throws PortalException,
                                     SystemException
Deletes the resource permission with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermissionId - the primary key of the resource permission to delete
Throws:
PortalException - if a resource permission with the primary key could not be found
SystemException - if a system exception occurred

deleteResourcePermission

public void deleteResourcePermission(ResourcePermission resourcePermission)
                              throws SystemException
Deletes the resource permission from the database. Also notifies the appropriate model listeners.

Specified by:
deleteResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermission - the resource permission to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface ResourcePermissionLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface ResourcePermissionLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface ResourcePermissionLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface ResourcePermissionLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getResourcePermission

public ResourcePermission getResourcePermission(long resourcePermissionId)
                                         throws PortalException,
                                                SystemException
Gets the resource permission with the primary key.

Specified by:
getResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermissionId - the primary key of the resource permission to get
Returns:
the resource permission
Throws:
PortalException - if a resource permission with the primary key could not be found
SystemException - if a system exception occurred

getResourcePermissions

public List<ResourcePermission> getResourcePermissions(int start,
                                                       int end)
                                                throws SystemException
Gets a range of all the resource permissions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getResourcePermissions in interface ResourcePermissionLocalService
Parameters:
start - the lower bound of the range of resource permissions to return
end - the upper bound of the range of resource permissions to return (not inclusive)
Returns:
the range of resource permissions
Throws:
SystemException - if a system exception occurred

getResourcePermissionsCount

public int getResourcePermissionsCount()
                                throws SystemException
Gets the number of resource permissions.

Specified by:
getResourcePermissionsCount in interface ResourcePermissionLocalService
Returns:
the number of resource permissions
Throws:
SystemException - if a system exception occurred

updateResourcePermission

public ResourcePermission updateResourcePermission(ResourcePermission resourcePermission)
                                            throws SystemException
Updates the resource permission in the database. Also notifies the appropriate model listeners.

Specified by:
updateResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermission - the resource permission to update
Returns:
the resource permission that was updated
Throws:
SystemException - if a system exception occurred

updateResourcePermission

public ResourcePermission updateResourcePermission(ResourcePermission resourcePermission,
                                                   boolean merge)
                                            throws SystemException
Updates the resource permission in the database. Also notifies the appropriate model listeners.

Specified by:
updateResourcePermission in interface ResourcePermissionLocalService
Parameters:
resourcePermission - the resource permission to update
merge - whether to merge the resource permission with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the resource permission that was updated
Throws:
SystemException - if a system exception occurred

addResourcePermission

public void addResourcePermission(long companyId,
                                  String name,
                                  int scope,
                                  String primKey,
                                  long roleId,
                                  String actionId)
                           throws PortalException,
                                  SystemException
Specified by:
addResourcePermission in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

getAvailableResourcePermissionActionIds

public List<String> getAvailableResourcePermissionActionIds(long companyId,
                                                            String name,
                                                            int scope,
                                                            String primKey,
                                                            long roleId,
                                                            List<String> actionIds)
                                                     throws PortalException,
                                                            SystemException
Specified by:
getAvailableResourcePermissionActionIds in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

getResourcePermissions

public List<ResourcePermission> getResourcePermissions(long companyId,
                                                       String name,
                                                       int scope,
                                                       String primKey)
                                                throws SystemException
Specified by:
getResourcePermissions in interface ResourcePermissionLocalService
Throws:
SystemException

getResourcePermissionsCount

public int getResourcePermissionsCount(long companyId,
                                       String name,
                                       int scope,
                                       String primKey)
                                throws SystemException
Specified by:
getResourcePermissionsCount in interface ResourcePermissionLocalService
Throws:
SystemException

getRoleResourcePermissions

public List<ResourcePermission> getRoleResourcePermissions(long roleId)
                                                    throws SystemException
Specified by:
getRoleResourcePermissions in interface ResourcePermissionLocalService
Throws:
SystemException

getRoleResourcePermissions

public List<ResourcePermission> getRoleResourcePermissions(long roleId,
                                                           int[] scopes,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Specified by:
getRoleResourcePermissions in interface ResourcePermissionLocalService
Throws:
SystemException

hasActionId

public boolean hasActionId(ResourcePermission resourcePermission,
                           ResourceAction resourceAction)
Specified by:
hasActionId in interface ResourcePermissionLocalService

hasResourcePermission

public boolean hasResourcePermission(long companyId,
                                     String name,
                                     int scope,
                                     String primKey,
                                     long roleId,
                                     String actionId)
                              throws PortalException,
                                     SystemException
Specified by:
hasResourcePermission in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

hasScopeResourcePermission

public boolean hasScopeResourcePermission(long companyId,
                                          String name,
                                          int scope,
                                          long roleId,
                                          String actionId)
                                   throws PortalException,
                                          SystemException
Specified by:
hasScopeResourcePermission in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

mergePermissions

public void mergePermissions(long fromRoleId,
                             long toRoleId)
                      throws PortalException,
                             SystemException
Specified by:
mergePermissions in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

reassignPermissions

public void reassignPermissions(long resourcePermissionId,
                                long toRoleId)
                         throws PortalException,
                                SystemException
Specified by:
reassignPermissions in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

removeResourcePermission

public void removeResourcePermission(long companyId,
                                     String name,
                                     int scope,
                                     String primKey,
                                     long roleId,
                                     String actionId)
                              throws PortalException,
                                     SystemException
Specified by:
removeResourcePermission in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

removeResourcePermissions

public void removeResourcePermissions(long companyId,
                                      String name,
                                      int scope,
                                      long roleId,
                                      String actionId)
                               throws PortalException,
                                      SystemException
Specified by:
removeResourcePermissions in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

setResourcePermissions

public void setResourcePermissions(long companyId,
                                   String name,
                                   int scope,
                                   String primKey,
                                   long roleId,
                                   String[] actionIds)
                            throws PortalException,
                                   SystemException
Specified by:
setResourcePermissions in interface ResourcePermissionLocalService
Throws:
PortalException
SystemException

getWrappedResourcePermissionLocalService

public ResourcePermissionLocalService getWrappedResourcePermissionLocalService()

Liferay 6.0.5