Liferay 6.2-ce-ga5

com.liferay.portal.service
Class ResourceTypePermissionLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.ResourceTypePermissionLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ResourceTypePermissionLocalService, ServiceWrapper<ResourceTypePermissionLocalService>

@ProviderType
public class ResourceTypePermissionLocalServiceWrapper
extends Object
implements ResourceTypePermissionLocalService, ServiceWrapper<ResourceTypePermissionLocalService>

Provides a wrapper for ResourceTypePermissionLocalService.

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

Constructor Summary
ResourceTypePermissionLocalServiceWrapper(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
           
 
Method Summary
 ResourceTypePermission addResourceTypePermission(ResourceTypePermission resourceTypePermission)
          Adds the resource type permission to the database.
 ResourceTypePermission createResourceTypePermission(long resourceTypePermissionId)
          Creates a new resource type permission with the primary key.
 ResourceTypePermission deleteResourceTypePermission(long resourceTypePermissionId)
          Deletes the resource type permission with the primary key from the database.
 ResourceTypePermission deleteResourceTypePermission(ResourceTypePermission resourceTypePermission)
          Deletes the resource type permission from the database.
 DynamicQuery dynamicQuery()
           
 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)
          Returns the number of rows that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 ResourceTypePermission fetchResourceTypePermission(long resourceTypePermissionId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 long getCompanyScopeActionIds(long companyId, String name, long roleId)
           
 long getGroupScopeActionIds(long companyId, long groupId, String name, long roleId)
           
 List<ResourceTypePermission> getGroupScopeResourceTypePermissions(long companyId, String name, long roleId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(long companyId, long groupId, String name)
           
 ResourceTypePermission getResourceTypePermission(long resourceTypePermissionId)
          Returns the resource type permission with the primary key.
 List<ResourceTypePermission> getResourceTypePermissions(int start, int end)
          Returns a range of all the resource type permissions.
 int getResourceTypePermissionsCount()
          Returns the number of resource type permissions.
 List<ResourceTypePermission> getRoleResourceTypePermissions(long roleId)
           
 ResourceTypePermissionLocalService getWrappedResourceTypePermissionLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 ResourceTypePermissionLocalService getWrappedService()
           
 boolean hasCompanyScopePermission(long companyId, String name, long roleId, String actionId)
           
 boolean hasEitherScopePermission(long companyId, String name, long roleId, String actionId)
           
 boolean hasGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedResourceTypePermissionLocalService(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portal.service.ResourceTypePermissionLocalService)
 void setWrappedService(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
           
 void updateCompanyScopeResourceTypePermissions(long companyId, String name, long roleId, long actionIdsLong, long operator)
           
 void updateGroupScopeResourceTypePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, long operator)
           
 ResourceTypePermission updateResourceTypePermission(ResourceTypePermission resourceTypePermission)
          Updates the resource type permission in the database or adds it if it does not yet exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTypePermissionLocalServiceWrapper

public ResourceTypePermissionLocalServiceWrapper(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
Method Detail

addResourceTypePermission

public ResourceTypePermission addResourceTypePermission(ResourceTypePermission resourceTypePermission)
                                                 throws SystemException
Adds the resource type permission to the database. Also notifies the appropriate model listeners.

Specified by:
addResourceTypePermission in interface ResourceTypePermissionLocalService
Parameters:
resourceTypePermission - the resource type permission
Returns:
the resource type permission that was added
Throws:
SystemException - if a system exception occurred

createResourceTypePermission

public ResourceTypePermission createResourceTypePermission(long resourceTypePermissionId)
Creates a new resource type permission with the primary key. Does not add the resource type permission to the database.

Specified by:
createResourceTypePermission in interface ResourceTypePermissionLocalService
Parameters:
resourceTypePermissionId - the primary key for the new resource type permission
Returns:
the new resource type permission

deleteResourceTypePermission

public ResourceTypePermission deleteResourceTypePermission(long resourceTypePermissionId)
                                                    throws PortalException,
                                                           SystemException
Deletes the resource type permission with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteResourceTypePermission in interface ResourceTypePermissionLocalService
Parameters:
resourceTypePermissionId - the primary key of the resource type permission
Returns:
the resource type permission that was removed
Throws:
PortalException - if a resource type permission with the primary key could not be found
SystemException - if a system exception occurred

deleteResourceTypePermission

public ResourceTypePermission deleteResourceTypePermission(ResourceTypePermission resourceTypePermission)
                                                    throws SystemException
Deletes the resource type permission from the database. Also notifies the appropriate model listeners.

Specified by:
deleteResourceTypePermission in interface ResourceTypePermissionLocalService
Parameters:
resourceTypePermission - the resource type permission
Returns:
the resource type permission that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface ResourceTypePermissionLocalService

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 ResourceTypePermissionLocalService
Parameters:
dynamicQuery - the dynamic query
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface ResourceTypePermissionLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

dynamicQueryCount

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

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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

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

fetchResourceTypePermission

public ResourceTypePermission fetchResourceTypePermission(long resourceTypePermissionId)
                                                   throws SystemException
Specified by:
fetchResourceTypePermission in interface ResourceTypePermissionLocalService
Throws:
SystemException

getResourceTypePermission

public ResourceTypePermission getResourceTypePermission(long resourceTypePermissionId)
                                                 throws PortalException,
                                                        SystemException
Returns the resource type permission with the primary key.

Specified by:
getResourceTypePermission in interface ResourceTypePermissionLocalService
Parameters:
resourceTypePermissionId - the primary key of the resource type permission
Returns:
the resource type permission
Throws:
PortalException - if a resource type permission with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface ResourceTypePermissionLocalService
Throws:
PortalException
SystemException

getResourceTypePermissions

public List<ResourceTypePermission> getResourceTypePermissions(int start,
                                                               int end)
                                                        throws SystemException
Returns a range of all the resource type 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

getResourceTypePermissionsCount

public int getResourceTypePermissionsCount()
                                    throws SystemException
Returns the number of resource type permissions.

Specified by:
getResourceTypePermissionsCount in interface ResourceTypePermissionLocalService
Returns:
the number of resource type permissions
Throws:
SystemException - if a system exception occurred

updateResourceTypePermission

public ResourceTypePermission updateResourceTypePermission(ResourceTypePermission resourceTypePermission)
                                                    throws SystemException
Updates the resource type permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateResourceTypePermission in interface ResourceTypePermissionLocalService
Parameters:
resourceTypePermission - the resource type permission
Returns:
the resource type permission that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface ResourceTypePermissionLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface ResourceTypePermissionLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

getCompanyScopeActionIds

public long getCompanyScopeActionIds(long companyId,
                                     String name,
                                     long roleId)
                              throws SystemException
Specified by:
getCompanyScopeActionIds in interface ResourceTypePermissionLocalService
Throws:
SystemException

getGroupScopeActionIds

public long getGroupScopeActionIds(long companyId,
                                   long groupId,
                                   String name,
                                   long roleId)
                            throws SystemException
Specified by:
getGroupScopeActionIds in interface ResourceTypePermissionLocalService
Throws:
SystemException

getGroupScopeResourceTypePermissions

public List<ResourceTypePermission> getGroupScopeResourceTypePermissions(long companyId,
                                                                         String name,
                                                                         long roleId)
                                                                  throws SystemException
Specified by:
getGroupScopeResourceTypePermissions in interface ResourceTypePermissionLocalService
Throws:
SystemException

getResourceBlockPermissionsContainer

public ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(long companyId,
                                                                              long groupId,
                                                                              String name)
                                                                       throws SystemException
Specified by:
getResourceBlockPermissionsContainer in interface ResourceTypePermissionLocalService
Throws:
SystemException

getRoleResourceTypePermissions

public List<ResourceTypePermission> getRoleResourceTypePermissions(long roleId)
                                                            throws SystemException
Specified by:
getRoleResourceTypePermissions in interface ResourceTypePermissionLocalService
Throws:
SystemException

hasCompanyScopePermission

public boolean hasCompanyScopePermission(long companyId,
                                         String name,
                                         long roleId,
                                         String actionId)
                                  throws PortalException,
                                         SystemException
Specified by:
hasCompanyScopePermission in interface ResourceTypePermissionLocalService
Throws:
PortalException
SystemException

hasEitherScopePermission

public boolean hasEitherScopePermission(long companyId,
                                        String name,
                                        long roleId,
                                        String actionId)
                                 throws PortalException,
                                        SystemException
Specified by:
hasEitherScopePermission in interface ResourceTypePermissionLocalService
Throws:
PortalException
SystemException

hasGroupScopePermission

public boolean hasGroupScopePermission(long companyId,
                                       long groupId,
                                       String name,
                                       long roleId,
                                       String actionId)
                                throws PortalException,
                                       SystemException
Specified by:
hasGroupScopePermission in interface ResourceTypePermissionLocalService
Throws:
PortalException
SystemException

updateCompanyScopeResourceTypePermissions

public void updateCompanyScopeResourceTypePermissions(long companyId,
                                                      String name,
                                                      long roleId,
                                                      long actionIdsLong,
                                                      long operator)
                                               throws SystemException
Specified by:
updateCompanyScopeResourceTypePermissions in interface ResourceTypePermissionLocalService
Throws:
SystemException

updateGroupScopeResourceTypePermissions

public void updateGroupScopeResourceTypePermissions(long companyId,
                                                    long groupId,
                                                    String name,
                                                    long roleId,
                                                    long actionIdsLong,
                                                    long operator)
                                             throws SystemException
Specified by:
updateGroupScopeResourceTypePermissions in interface ResourceTypePermissionLocalService
Throws:
SystemException

getWrappedResourceTypePermissionLocalService

public ResourceTypePermissionLocalService getWrappedResourceTypePermissionLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedResourceTypePermissionLocalService

public void setWrappedResourceTypePermissionLocalService(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portal.service.ResourceTypePermissionLocalService)


getWrappedService

public ResourceTypePermissionLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<ResourceTypePermissionLocalService>

setWrappedService

public void setWrappedService(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<ResourceTypePermissionLocalService>

Liferay 6.2-ce-ga5