Package com.xwiki.task
Interface TaskMissingDataManager
-
@Role public interface TaskMissingDataManagerHandles operations on task macros that have missing data.- Since:
- 3.3
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<org.xwiki.model.reference.DocumentReference>getMissingDataTaskOwners()voidinferMissingTaskData()Some task macros, such as the ones resulted from a migration, can have some data missing.voidinferMissingTaskData(org.xwiki.model.reference.DocumentReference documentReference)Similar toinferMissingTaskData()only that the process is run on a given document reference.
-
-
-
Method Detail
-
inferMissingTaskData
void inferMissingTaskData() throws TaskExceptionSome task macros, such as the ones resulted from a migration, can have some data missing. This method tries to infer the missing data from the history of the page.- Throws:
TaskException- if the query to retrieve the pages has failed.
-
inferMissingTaskData
void inferMissingTaskData(org.xwiki.model.reference.DocumentReference documentReference) throws TaskExceptionSimilar toinferMissingTaskData()only that the process is run on a given document reference.- Parameters:
documentReference- the reference of the document that will be analyzed- Throws:
TaskException- if the retrieval of the document has failed.
-
getMissingDataTaskOwners
List<org.xwiki.model.reference.DocumentReference> getMissingDataTaskOwners() throws TaskException
- Returns:
- a list of pages that contain task macros with missing data.
- Throws:
TaskException
-
-