package org.ow2.proactive.scheduler.common.task;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;


/**
 * This class is the super class of the every task that can be integrated in a job.<br>
 * A task contains some properties that can be set but also : <ul>
 * <li>A selection script that can be used to select a specific execution node for this task.</li>
 * <li>A preScript that will be launched before the real task (can be used to set environment vars).</li>
 * <li>A postScript that will be launched just after the end of the real task.
 * (this can be used to transfer files that have been created by the task).</li>
 * <li>A CleaningScript that will be launched by the resource manager to perform some cleaning. (deleting files or resources).</li>
 * </ul>
 * You will also be able to add dependences (if necessary) to
 * this task. The dependences mechanism are best describe below.
 * 
 * TODO PARAITA update javadoc
 *
 */
@XmlRootElement
public class TaskStatesPage {

    private int size;
    
    private List<TaskState> taskStates;
    
    public TaskStatesPage() {
        
    }
    
    public TaskStatesPage(List<TaskState> taskStates, int size) {
        this.taskStates = taskStates;
        this.size = size;
    }
    
    public int getSize() {
        return size;
    }
    
    public void setSize(final int size) {
        this.size = size;
    }
    
    public List<TaskState> getTaskStates() {
        return taskStates;
    }
    
    public void setTaskStates(List<TaskState> taskStates) {
        this.taskStates = taskStates;
    }
    
    @Override
    public String toString() {
        return "TaskStatePage{" + "size=" + size + ", taskStates='" + taskStates + '\'' + '}';
    }
}

@@ -140,819 +140,106 @@
 ass 
-is the super class of the every task that can be integrated in a job.%3Cbr%3E%0A * A task contains some properties that can be set but also : %3Cul%3E%0A * %3Cli%3EA selection script that can be used to select a specific execution node for this task.%3C/li%3E%0A * %3Cli%3EA preScript that will be launched before the real task (can be used to set environment vars).%3C/li%3E%0A * %3Cli%3EA postScript that will be launched just after the end of the real task.%0A * (this can be used to transfer files that have been created by the task).%3C/li%3E%0A * %3Cli%3EA CleaningScript that will be launched by the resource manager to perform some cleaning. (deleting files or resources).%3C/li%3E%0A * %3C/ul%3E%0A * You will also be able to add dependences (if necessary) to%0A * this task. The dependences mechanism are best describe below.%0A * %0A * TODO PARAITA update javadoc%0A *
+holds a paginated list of %3Ccode%3ETaskState%3C/code%3E%0A * server-wise and the total number of tasks.%0A * 
 %0A */

Fix javadoc for the TaskStatePage