Class BackgroundTaskLocalServiceWrapper
- All Implemented Interfaces:
BackgroundTaskLocalService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.ServiceWrapper<BackgroundTaskLocalService>
BackgroundTaskLocalService.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundTaskLocalServiceWrapper(BackgroundTaskLocalService backgroundTaskLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddBackgroundTask(long userId, long groupId, String name, String[] servletContextNames, Class<?> taskExecutorClass, Map<String, Serializable> taskContextMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) addBackgroundTask(long userId, long groupId, String name, String taskExecutorClassName, Map<String, Serializable> taskContextMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) addBackgroundTask(BackgroundTask backgroundTask) Adds the background task to the database.voidaddBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, File file) voidaddBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, InputStream inputStream) amendBackgroundTask(long backgroundTaskId, Map<String, Serializable> taskContextMap, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) amendBackgroundTask(long backgroundTaskId, Map<String, Serializable> taskContextMap, int status, String statusMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidcleanUpBackgroundTask(long backgroundTaskId, int status) voidcreateBackgroundTask(long backgroundTaskId) Creates a new background task with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) deleteBackgroundTask(long backgroundTaskId) Deletes the background task with the primary key from the database.deleteBackgroundTask(BackgroundTask backgroundTask) Deletes the background task from the database.voiddeleteCompanyBackgroundTasks(long companyId) voiddeleteGroupBackgroundTasks(long groupId) voiddeleteGroupBackgroundTasks(long groupId, String name, String taskExecutorClassName) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.fetchBackgroundTask(long backgroundTaskId) fetchFirstBackgroundTask(long groupId, String taskExecutorClassName, boolean completed, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) fetchFirstBackgroundTask(String taskExecutorClassName, int status) fetchFirstBackgroundTask(String taskExecutorClassName, int status, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerygetBackgroundTask(long backgroundTaskId) Returns the background task with the primary key.getBackgroundTasks(int start, int end) Returns a range of all the background tasks.getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames) getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames, boolean completed) getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames, boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(long[] groupIds, String name, String[] taskExecutorClassNames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(long[] groupIds, String name, String taskExecutorClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(long groupId, int status) getBackgroundTasks(long groupId, String taskExecutorClassName) getBackgroundTasks(long groupId, String[] taskExecutorClassNames, int status) getBackgroundTasks(long groupId, String taskExecutorClassName, boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(long groupId, String taskExecutorClassName, int status) getBackgroundTasks(long groupId, String taskExecutorClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(long groupId, String name, String taskExecutorClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(String[] taskExecutorClassNames, int status) getBackgroundTasks(String[] taskExecutorClassNames, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasks(String taskExecutorClassName, int status) getBackgroundTasks(String taskExecutorClassName, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) getBackgroundTasksByDuration(long[] groupIds, String[] taskExecutorClassNames, boolean completed, int start, int end, boolean orderByType) getBackgroundTasksByDuration(long[] groupIds, String[] taskExecutorClassNames, int start, int end, boolean orderByType) intReturns the number of background tasks.intgetBackgroundTasksCount(long[] groupIds, String[] taskExecutorClassNames) intgetBackgroundTasksCount(long[] groupIds, String[] taskExecutorClassNames, boolean completed) intgetBackgroundTasksCount(long[] groupIds, String name, String taskExecutorClassName) intgetBackgroundTasksCount(long[] groupIds, String name, String[] taskExecutorClassName) intgetBackgroundTasksCount(long[] groupIds, String name, String taskExecutorClassName, boolean completed) intgetBackgroundTasksCount(long groupId, String taskExecutorClassName) intgetBackgroundTasksCount(long groupId, String taskExecutorClassName, boolean completed) intgetBackgroundTasksCount(long groupId, String name, String taskExecutorClassName) intgetBackgroundTasksCount(long groupId, String name, String taskExecutorClassName, boolean completed) getBackgroundTaskStatusJSON(long backgroundTaskId) com.liferay.portal.kernel.service.persistence.BasePersistence<?>com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) voidresumeBackgroundTask(long backgroundTaskId) voidsetWrappedService(BackgroundTaskLocalService backgroundTaskLocalService) voidtriggerBackgroundTask(long backgroundTaskId) updateBackgroundTask(BackgroundTask backgroundTask) Updates the background task 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, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
BackgroundTaskLocalServiceWrapper
public BackgroundTaskLocalServiceWrapper() -
BackgroundTaskLocalServiceWrapper
-
-
Method Details
-
addBackgroundTask
Adds the background task to the database. Also notifies the appropriate model listeners.Important: Inspect BackgroundTaskLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addBackgroundTaskin interfaceBackgroundTaskLocalService- Parameters:
backgroundTask- the background task- Returns:
- the background task that was added
-
addBackgroundTask
public BackgroundTask addBackgroundTask(long userId, long groupId, String name, String taskExecutorClassName, Map<String, Serializable> taskContextMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addBackgroundTaskin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addBackgroundTask
public BackgroundTask addBackgroundTask(long userId, long groupId, String name, String[] servletContextNames, Class<?> taskExecutorClass, Map<String, Serializable> taskContextMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addBackgroundTaskin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addBackgroundTaskAttachment
public void addBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, File file) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addBackgroundTaskAttachmentin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addBackgroundTaskAttachment
public void addBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addBackgroundTaskAttachmentin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
amendBackgroundTask
public BackgroundTask amendBackgroundTask(long backgroundTaskId, Map<String, Serializable> taskContextMap, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Specified by:
amendBackgroundTaskin interfaceBackgroundTaskLocalService
-
amendBackgroundTask
public BackgroundTask amendBackgroundTask(long backgroundTaskId, Map<String, Serializable> taskContextMap, int status, String statusMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Specified by:
amendBackgroundTaskin interfaceBackgroundTaskLocalService
-
cleanUpBackgroundTask
public void cleanUpBackgroundTask(long backgroundTaskId, int status) - Specified by:
cleanUpBackgroundTaskin interfaceBackgroundTaskLocalService
-
cleanUpBackgroundTasks
public void cleanUpBackgroundTasks()- Specified by:
cleanUpBackgroundTasksin interfaceBackgroundTaskLocalService
-
createBackgroundTask
Creates a new background task with the primary key. Does not add the background task to the database.- Specified by:
createBackgroundTaskin interfaceBackgroundTaskLocalService- Parameters:
backgroundTaskId- the primary key for the new background task- Returns:
- the new background task
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfaceBackgroundTaskLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
deleteBackgroundTask
public BackgroundTask deleteBackgroundTask(BackgroundTask backgroundTask) throws com.liferay.portal.kernel.exception.PortalException Deletes the background task from the database. Also notifies the appropriate model listeners.Important: Inspect BackgroundTaskLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteBackgroundTaskin interfaceBackgroundTaskLocalService- Parameters:
backgroundTask- the background task- Returns:
- the background task that was removed
- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
deleteBackgroundTask
public BackgroundTask deleteBackgroundTask(long backgroundTaskId) throws com.liferay.portal.kernel.exception.PortalException Deletes the background task with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect BackgroundTaskLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteBackgroundTaskin interfaceBackgroundTaskLocalService- Parameters:
backgroundTaskId- the primary key of the background task- Returns:
- the background task that was removed
- Throws:
PortalException- if a background task with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCompanyBackgroundTasks
public void deleteCompanyBackgroundTasks(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCompanyBackgroundTasksin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteGroupBackgroundTasks
public void deleteGroupBackgroundTasks(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteGroupBackgroundTasksin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteGroupBackgroundTasks
public void deleteGroupBackgroundTasks(long groupId, String name, String taskExecutorClassName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteGroupBackgroundTasksin interfaceBackgroundTaskLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfaceBackgroundTaskLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceBackgroundTaskLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceBackgroundTaskLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceBackgroundTaskLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceBackgroundTaskLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.background.task.model.impl.BackgroundTaskModelImpl.- Specified by:
dynamicQueryin interfaceBackgroundTaskLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.background.task.model.impl.BackgroundTaskModelImpl.- Specified by:
dynamicQueryin interfaceBackgroundTaskLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceBackgroundTaskLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceBackgroundTaskLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchBackgroundTask
- Specified by:
fetchBackgroundTaskin interfaceBackgroundTaskLocalService
-
fetchFirstBackgroundTask
public BackgroundTask fetchFirstBackgroundTask(long groupId, String taskExecutorClassName, boolean completed, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
fetchFirstBackgroundTaskin interfaceBackgroundTaskLocalService
-
fetchFirstBackgroundTask
- Specified by:
fetchFirstBackgroundTaskin interfaceBackgroundTaskLocalService
-
fetchFirstBackgroundTask
public BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName, int status, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
fetchFirstBackgroundTaskin interfaceBackgroundTaskLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceBackgroundTaskLocalService
-
getBackgroundTask
public BackgroundTask getBackgroundTask(long backgroundTaskId) throws com.liferay.portal.kernel.exception.PortalException Returns the background task with the primary key.- Specified by:
getBackgroundTaskin interfaceBackgroundTaskLocalService- Parameters:
backgroundTaskId- the primary key of the background task- Returns:
- the background task
- Throws:
PortalException- if a background task with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getBackgroundTasks
Returns a range of all the background tasks.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.background.task.model.impl.BackgroundTaskModelImpl.- Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService- Parameters:
start- the lower bound of the range of background tasksend- the upper bound of the range of background tasks (not inclusive)- Returns:
- the range of background tasks
-
getBackgroundTasks
- Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
- Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, int status) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long groupId, String name, String taskExecutorClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames, int status) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long[] groupIds, String name, String taskExecutorClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long[] groupIds, String name, String[] taskExecutorClassNames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
- Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames, boolean completed) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames, boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(long[] groupIds, String[] taskExecutorClassNames, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
- Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
- Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasks
public List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BackgroundTask> orderByComparator) - Specified by:
getBackgroundTasksin interfaceBackgroundTaskLocalService
-
getBackgroundTasksByDuration
public List<BackgroundTask> getBackgroundTasksByDuration(long[] groupIds, String[] taskExecutorClassNames, boolean completed, int start, int end, boolean orderByType) - Specified by:
getBackgroundTasksByDurationin interfaceBackgroundTaskLocalService
-
getBackgroundTasksByDuration
public List<BackgroundTask> getBackgroundTasksByDuration(long[] groupIds, String[] taskExecutorClassNames, int start, int end, boolean orderByType) - Specified by:
getBackgroundTasksByDurationin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
public int getBackgroundTasksCount()Returns the number of background tasks.- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService- Returns:
- the number of background tasks
-
getBackgroundTasksCount
- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
public int getBackgroundTasksCount(long groupId, String name, String taskExecutorClassName, boolean completed) - Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
public int getBackgroundTasksCount(long[] groupIds, String name, String taskExecutorClassName, boolean completed) - Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
- Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTasksCount
public int getBackgroundTasksCount(long[] groupIds, String[] taskExecutorClassNames, boolean completed) - Specified by:
getBackgroundTasksCountin interfaceBackgroundTaskLocalService
-
getBackgroundTaskStatusJSON
- Specified by:
getBackgroundTaskStatusJSONin interfaceBackgroundTaskLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceBackgroundTaskLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceBackgroundTaskLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfaceBackgroundTaskLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
resumeBackgroundTask
public void resumeBackgroundTask(long backgroundTaskId) - Specified by:
resumeBackgroundTaskin interfaceBackgroundTaskLocalService
-
triggerBackgroundTask
public void triggerBackgroundTask(long backgroundTaskId) - Specified by:
triggerBackgroundTaskin interfaceBackgroundTaskLocalService
-
updateBackgroundTask
Updates the background task in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect BackgroundTaskLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateBackgroundTaskin interfaceBackgroundTaskLocalService- Parameters:
backgroundTask- the background task- Returns:
- the background task that was updated
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<BackgroundTaskLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<BackgroundTaskLocalService>
-