Liferay 7.0-ce-m6

com.liferay.portal.service.impl
Class BackgroundTaskLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.BackgroundTaskLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.BackgroundTaskLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BackgroundTaskLocalService, BaseLocalService, PersistedModelLocalService

public class BackgroundTaskLocalServiceImpl
extends BackgroundTaskLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.BackgroundTaskLocalServiceBaseImpl
backgroundTaskLocalService, backgroundTaskPersistence, backgroundTaskService, counterLocalService, persistedModelLocalServiceRegistry, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
BackgroundTaskLocalServiceImpl()
           
 
Method Summary
 BackgroundTask addBackgroundTask(BackgroundTask backgroundTask)
          Adds the background task to the database.
 BackgroundTask addBackgroundTask(long userId, long groupId, String name, String[] servletContextNames, Class<?> taskExecutorClass, Map<String,Serializable> taskContextMap, ServiceContext serviceContext)
           
 void addBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, File file)
           
 void addBackgroundTaskAttachment(long userId, long backgroundTaskId, String fileName, InputStream inputStream)
           
 BackgroundTask amendBackgroundTask(long backgroundTaskId, Map<String,Serializable> taskContextMap, int status, ServiceContext serviceContext)
           
 BackgroundTask amendBackgroundTask(long backgroundTaskId, Map<String,Serializable> taskContextMap, int status, String statusMessage, ServiceContext serviceContext)
           
 void cleanUpBackgroundTask(BackgroundTask backgroundTask, int status)
           
 void cleanUpBackgroundTasks()
           
 BackgroundTask deleteBackgroundTask(BackgroundTask backgroundTask)
          Deletes the background task from the database.
 BackgroundTask deleteBackgroundTask(long backgroundTaskId)
          Deletes the background task with the primary key from the database.
 void deleteCompanyBackgroundTasks(long companyId)
           
 void deleteGroupBackgroundTasks(long groupId)
           
 BackgroundTask fetchBackgroundTask(long backgroundTaskId)
           
 BackgroundTask fetchFirstBackgroundTask(long groupId, String taskExecutorClassName, boolean completed, OrderByComparator<BackgroundTask> orderByComparator)
           
 BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName, int status)
           
 BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> orderByComparator)
           
 BackgroundTask getBackgroundTask(long backgroundTaskId)
          Returns the background task with the primary key.
 List<BackgroundTask> getBackgroundTasks(long groupId, int status)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames, int status)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String[] taskExecutorClassNames, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, int status)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String taskExecutorClassName, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
           
 List<BackgroundTask> getBackgroundTasks(long groupId, String name, String taskExecutorClassName, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
           
 List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames, int status)
           
 List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames, int status, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
           
 List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName, int status)
           
 List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName, int status, int start, int end, OrderByComparator<BackgroundTask> orderByComparator)
           
 int getBackgroundTasksCount(long groupId, String taskExecutorClassName)
           
 int getBackgroundTasksCount(long groupId, String[] taskExecutorClassNames)
           
 int getBackgroundTasksCount(long groupId, String[] taskExecutorClassNames, boolean completed)
           
 int getBackgroundTasksCount(long groupId, String taskExecutorClassName, boolean completed)
           
 int getBackgroundTasksCount(long groupId, String name, String taskExecutorClassName)
           
 int getBackgroundTasksCount(long groupId, String name, String taskExecutorClassName, boolean completed)
           
 String getBackgroundTaskStatusJSON(long backgroundTaskId)
           
 void resumeBackgroundTask(long backgroundTaskId)
           
 void triggerBackgroundTask(long backgroundTaskId)
           
 
Methods inherited from class com.liferay.portal.service.base.BackgroundTaskLocalServiceBaseImpl
afterPropertiesSet, createBackgroundTask, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, getActionableDynamicQuery, getBackgroundTaskLocalService, getBackgroundTaskPersistence, getBackgroundTasks, getBackgroundTasksCount, getBackgroundTaskService, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setBackgroundTaskLocalService, setBackgroundTaskPersistence, setBackgroundTaskService, setBeanIdentifier, setCounterLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateBackgroundTask
 
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
 

Constructor Detail

BackgroundTaskLocalServiceImpl

public BackgroundTaskLocalServiceImpl()
Method Detail

addBackgroundTask

public BackgroundTask addBackgroundTask(BackgroundTask backgroundTask)
Description copied from class: BackgroundTaskLocalServiceBaseImpl
Adds the background task to the database. Also notifies the appropriate model listeners.

Specified by:
addBackgroundTask in interface BackgroundTaskLocalService
Overrides:
addBackgroundTask in class BackgroundTaskLocalServiceBaseImpl
Parameters:
backgroundTask - the background task
Returns:
the background task that was added

addBackgroundTask

public BackgroundTask addBackgroundTask(long userId,
                                        long groupId,
                                        String name,
                                        String[] servletContextNames,
                                        Class<?> taskExecutorClass,
                                        Map<String,Serializable> taskContextMap,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

addBackgroundTaskAttachment

public void addBackgroundTaskAttachment(long userId,
                                        long backgroundTaskId,
                                        String fileName,
                                        File file)
                                 throws PortalException
Throws:
PortalException

addBackgroundTaskAttachment

public void addBackgroundTaskAttachment(long userId,
                                        long backgroundTaskId,
                                        String fileName,
                                        InputStream inputStream)
                                 throws PortalException
Throws:
PortalException

amendBackgroundTask

public BackgroundTask amendBackgroundTask(long backgroundTaskId,
                                          Map<String,Serializable> taskContextMap,
                                          int status,
                                          ServiceContext serviceContext)

amendBackgroundTask

public BackgroundTask amendBackgroundTask(long backgroundTaskId,
                                          Map<String,Serializable> taskContextMap,
                                          int status,
                                          String statusMessage,
                                          ServiceContext serviceContext)

cleanUpBackgroundTask

@Clusterable(onMaster=true)
public void cleanUpBackgroundTask(BackgroundTask backgroundTask,
                                                      int status)

cleanUpBackgroundTasks

@Clusterable(onMaster=true)
public void cleanUpBackgroundTasks()

deleteBackgroundTask

public BackgroundTask deleteBackgroundTask(BackgroundTask backgroundTask)
                                    throws PortalException
Description copied from class: BackgroundTaskLocalServiceBaseImpl
Deletes the background task from the database. Also notifies the appropriate model listeners.

Specified by:
deleteBackgroundTask in interface BackgroundTaskLocalService
Overrides:
deleteBackgroundTask in class BackgroundTaskLocalServiceBaseImpl
Parameters:
backgroundTask - the background task
Returns:
the background task that was removed
Throws:
PortalException

deleteBackgroundTask

public BackgroundTask deleteBackgroundTask(long backgroundTaskId)
                                    throws PortalException
Description copied from class: BackgroundTaskLocalServiceBaseImpl
Deletes the background task with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteBackgroundTask in interface BackgroundTaskLocalService
Overrides:
deleteBackgroundTask in class BackgroundTaskLocalServiceBaseImpl
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 found

deleteCompanyBackgroundTasks

public void deleteCompanyBackgroundTasks(long companyId)
                                  throws PortalException
Throws:
PortalException

deleteGroupBackgroundTasks

public void deleteGroupBackgroundTasks(long groupId)
                                throws PortalException
Throws:
PortalException

fetchBackgroundTask

public BackgroundTask fetchBackgroundTask(long backgroundTaskId)
Specified by:
fetchBackgroundTask in interface BackgroundTaskLocalService
Overrides:
fetchBackgroundTask in class BackgroundTaskLocalServiceBaseImpl

fetchFirstBackgroundTask

public BackgroundTask fetchFirstBackgroundTask(long groupId,
                                               String taskExecutorClassName,
                                               boolean completed,
                                               OrderByComparator<BackgroundTask> orderByComparator)

fetchFirstBackgroundTask

public BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName,
                                               int status)

fetchFirstBackgroundTask

public BackgroundTask fetchFirstBackgroundTask(String taskExecutorClassName,
                                               int status,
                                               OrderByComparator<BackgroundTask> orderByComparator)

getBackgroundTask

public BackgroundTask getBackgroundTask(long backgroundTaskId)
                                 throws PortalException
Description copied from class: BackgroundTaskLocalServiceBaseImpl
Returns the background task with the primary key.

Specified by:
getBackgroundTask in interface BackgroundTaskLocalService
Overrides:
getBackgroundTask in class BackgroundTaskLocalServiceBaseImpl
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 found

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               int status)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String taskExecutorClassName)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String taskExecutorClassName,
                                               int status)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String taskExecutorClassName,
                                               int start,
                                               int end,
                                               OrderByComparator<BackgroundTask> orderByComparator)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String name,
                                               String taskExecutorClassName,
                                               int start,
                                               int end,
                                               OrderByComparator<BackgroundTask> orderByComparator)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String[] taskExecutorClassNames)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String[] taskExecutorClassNames,
                                               int status)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(long groupId,
                                               String[] taskExecutorClassNames,
                                               int start,
                                               int end,
                                               OrderByComparator<BackgroundTask> orderByComparator)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName,
                                               int status)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(String taskExecutorClassName,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator<BackgroundTask> orderByComparator)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames,
                                               int status)

getBackgroundTasks

public List<BackgroundTask> getBackgroundTasks(String[] taskExecutorClassNames,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator<BackgroundTask> orderByComparator)

getBackgroundTasksCount

public int getBackgroundTasksCount(long groupId,
                                   String taskExecutorClassName)

getBackgroundTasksCount

public int getBackgroundTasksCount(long groupId,
                                   String taskExecutorClassName,
                                   boolean completed)

getBackgroundTasksCount

public int getBackgroundTasksCount(long groupId,
                                   String name,
                                   String taskExecutorClassName)

getBackgroundTasksCount

public int getBackgroundTasksCount(long groupId,
                                   String name,
                                   String taskExecutorClassName,
                                   boolean completed)

getBackgroundTasksCount

public int getBackgroundTasksCount(long groupId,
                                   String[] taskExecutorClassNames)

getBackgroundTasksCount

public int getBackgroundTasksCount(long groupId,
                                   String[] taskExecutorClassNames,
                                   boolean completed)

getBackgroundTaskStatusJSON

@Clusterable(onMaster=true)
public String getBackgroundTaskStatusJSON(long backgroundTaskId)

resumeBackgroundTask

@Clusterable(onMaster=true)
public void resumeBackgroundTask(long backgroundTaskId)

triggerBackgroundTask

@Clusterable(onMaster=true)
public void triggerBackgroundTask(long backgroundTaskId)

Liferay 7.0-ce-m6