Liferay 7.0-ce-b4

com.liferay.portal.service.base
Class ResourceTypePermissionLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.ResourceTypePermissionLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, ResourceTypePermissionLocalService
Direct Known Subclasses:
ResourceTypePermissionLocalServiceImpl

@ProviderType
public abstract class ResourceTypePermissionLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements ResourceTypePermissionLocalService, IdentifiableOSGiService

Provides the base implementation for the resource type permission local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in ResourceTypePermissionLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  ResourceActionLocalService resourceActionLocalService
           
protected  ResourceActionPersistence resourceActionPersistence
           
protected  ResourceTypePermissionFinder resourceTypePermissionFinder
           
protected  ResourceTypePermissionLocalService resourceTypePermissionLocalService
           
protected  ResourceTypePermissionPersistence resourceTypePermissionPersistence
           
 
Constructor Summary
ResourceTypePermissionLocalServiceBaseImpl()
           
 
Method Summary
 ResourceTypePermission addResourceTypePermission(ResourceTypePermission resourceTypePermission)
          Adds the resource type permission to the database.
 void afterPropertiesSet()
           
 ResourceTypePermission createResourceTypePermission(long resourceTypePermissionId)
          Creates a new resource type permission with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 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.
 void destroy()
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> 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 matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 ResourceTypePermission fetchResourceTypePermission(long resourceTypePermissionId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceActionLocalService getResourceActionLocalService()
          Returns the resource action local service.
 ResourceActionPersistence getResourceActionPersistence()
          Returns the resource action persistence.
 ResourceTypePermission getResourceTypePermission(long resourceTypePermissionId)
          Returns the resource type permission with the primary key.
 ResourceTypePermissionFinder getResourceTypePermissionFinder()
          Returns the resource type permission finder.
 ResourceTypePermissionLocalService getResourceTypePermissionLocalService()
          Returns the resource type permission local service.
 ResourceTypePermissionPersistence getResourceTypePermissionPersistence()
          Returns the resource type permission persistence.
 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.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setResourceActionLocalService(ResourceActionLocalService resourceActionLocalService)
          Sets the resource action local service.
 void setResourceActionPersistence(ResourceActionPersistence resourceActionPersistence)
          Sets the resource action persistence.
 void setResourceTypePermissionFinder(ResourceTypePermissionFinder resourceTypePermissionFinder)
          Sets the resource type permission finder.
 void setResourceTypePermissionLocalService(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
          Sets the resource type permission local service.
 void setResourceTypePermissionPersistence(ResourceTypePermissionPersistence resourceTypePermissionPersistence)
          Sets the resource type permission persistence.
 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 com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.ResourceTypePermissionLocalService
getCompanyScopeActionIds, getGroupScopeActionIds, getGroupScopeResourceTypePermissions, getResourceBlockPermissionsContainer, getRoleResourceTypePermissions, hasCompanyScopePermission, hasEitherScopePermission, hasGroupScopePermission, updateCompanyScopeResourceTypePermissions, updateGroupScopeResourceTypePermissions
 

Field Detail

resourceTypePermissionLocalService

@BeanReference(type=ResourceTypePermissionLocalService.class)
protected ResourceTypePermissionLocalService resourceTypePermissionLocalService

resourceTypePermissionPersistence

@BeanReference(type=ResourceTypePermissionPersistence.class)
protected ResourceTypePermissionPersistence resourceTypePermissionPersistence

resourceTypePermissionFinder

@BeanReference(type=ResourceTypePermissionFinder.class)
protected ResourceTypePermissionFinder resourceTypePermissionFinder

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

resourceActionLocalService

@BeanReference(type=ResourceActionLocalService.class)
protected ResourceActionLocalService resourceActionLocalService

resourceActionPersistence

@BeanReference(type=ResourceActionPersistence.class)
protected ResourceActionPersistence resourceActionPersistence

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

ResourceTypePermissionLocalServiceBaseImpl

public ResourceTypePermissionLocalServiceBaseImpl()
Method Detail

addResourceTypePermission

@Indexable(type=REINDEX)
public ResourceTypePermission addResourceTypePermission(ResourceTypePermission resourceTypePermission)
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

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

@Indexable(type=DELETE)
public ResourceTypePermission deleteResourceTypePermission(long resourceTypePermissionId)
                                                    throws PortalException
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

deleteResourceTypePermission

@Indexable(type=DELETE)
public ResourceTypePermission deleteResourceTypePermission(ResourceTypePermission resourceTypePermission)
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

dynamicQuery

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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ResourceTypePermissionLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching 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 matching the dynamic query

fetchResourceTypePermission

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

getResourceTypePermission

public ResourceTypePermission getResourceTypePermission(long resourceTypePermissionId)
                                                 throws PortalException
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

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface ResourceTypePermissionLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface ResourceTypePermissionLocalService

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface ResourceTypePermissionLocalService
Throws:
PortalException

getPersistedModel

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

getResourceTypePermissions

public List<ResourceTypePermission> getResourceTypePermissions(int start,
                                                               int end)
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

getResourceTypePermissionsCount

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

Specified by:
getResourceTypePermissionsCount in interface ResourceTypePermissionLocalService
Returns:
the number of resource type permissions

updateResourceTypePermission

@Indexable(type=REINDEX)
public ResourceTypePermission updateResourceTypePermission(ResourceTypePermission resourceTypePermission)
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

getResourceTypePermissionLocalService

public ResourceTypePermissionLocalService getResourceTypePermissionLocalService()
Returns the resource type permission local service.

Returns:
the resource type permission local service

setResourceTypePermissionLocalService

public void setResourceTypePermissionLocalService(ResourceTypePermissionLocalService resourceTypePermissionLocalService)
Sets the resource type permission local service.

Parameters:
resourceTypePermissionLocalService - the resource type permission local service

getResourceTypePermissionPersistence

public ResourceTypePermissionPersistence getResourceTypePermissionPersistence()
Returns the resource type permission persistence.

Returns:
the resource type permission persistence

setResourceTypePermissionPersistence

public void setResourceTypePermissionPersistence(ResourceTypePermissionPersistence resourceTypePermissionPersistence)
Sets the resource type permission persistence.

Parameters:
resourceTypePermissionPersistence - the resource type permission persistence

getResourceTypePermissionFinder

public ResourceTypePermissionFinder getResourceTypePermissionFinder()
Returns the resource type permission finder.

Returns:
the resource type permission finder

setResourceTypePermissionFinder

public void setResourceTypePermissionFinder(ResourceTypePermissionFinder resourceTypePermissionFinder)
Sets the resource type permission finder.

Parameters:
resourceTypePermissionFinder - the resource type permission finder

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getResourceActionLocalService

public ResourceActionLocalService getResourceActionLocalService()
Returns the resource action local service.

Returns:
the resource action local service

setResourceActionLocalService

public void setResourceActionLocalService(ResourceActionLocalService resourceActionLocalService)
Sets the resource action local service.

Parameters:
resourceActionLocalService - the resource action local service

getResourceActionPersistence

public ResourceActionPersistence getResourceActionPersistence()
Returns the resource action persistence.

Returns:
the resource action persistence

setResourceActionPersistence

public void setResourceActionPersistence(ResourceActionPersistence resourceActionPersistence)
Sets the resource action persistence.

Parameters:
resourceActionPersistence - the resource action persistence

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService
Specified by:
getOSGiServiceIdentifier in interface ResourceTypePermissionLocalService
Returns:
the OSGi service identifier

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-b4