Show SynchronousPersister.java syntax highlighted
package persister;
import java.sql.Timestamp;
import java.util.List;
public interface SynchronousPersister {
/****************************************************************************************
* LOAD AND SAVE *
****************************************************************************************/
public Project load(String projectName) throws CouldNotLoadProjectException;
public Project load(String projectName, Timestamp start, Timestamp end) throws CouldNotLoadProjectException;
public boolean save();
public boolean saveAs(String path);
public Project getProject();
public List<String> getProjectNames();
public void writeToFile(String fileName, String fileContents);
public String[] readFromFile(String fileName);
public String[][] getIterationNames(String projectName) ;
/****************************************************************************************
* CREATE *
****************************************************************************************/
public Project createProject(String name) throws ForbiddenOperationException;
public Backlog createBacklog(int width, int height, int locationX, int locationY) throws ForbiddenOperationException;
public Iteration createIteration(String name, String description, int width, int height, int locationX, int locationY,
float availableEffort, Timestamp startDate, Timestamp endDate) ;
public StoryCard createStoryCard(String name, String description, int width, int height, int locationX, int locationY,
long parentid, float bestCaseEstimate, float mostlikelyEstimate, float worstCaseEstimate, float actualEffort, String status) throws IndexCardNotFoundException;
/****************************************************************************************
* DELETE & UNDELETE *
****************************************************************************************/
public IndexCard deleteCard(long id) throws IndexCardNotFoundException,ForbiddenOperationException;
public IndexCard undeleteCard(IndexCard indexCard) throws IndexCardNotFoundException, ForbiddenOperationException;
/****************************************************************************************
* UPDATE *
****************************************************************************************/
public IndexCard updateCard(IndexCard indexCard) throws IndexCardNotFoundException;
public Project updateProjectName(long id, String name) throws IndexCardNotFoundException;
/****************************************************************************************
* MOVE STORYCARD BETWEEN PARENTS *
****************************************************************************************/
public StoryCard moveStoryCardToNewParent(long id, long oldparentid, long newparentid, int locationX, int locationY) throws IndexCardNotFoundException;
/******************************************************************************************
* Find objects by id
* *****************************************************************************************/
public IndexCard findCard(long id) throws IndexCardNotFoundException;
}//end of interface SynchronousPersister
See more files for this project here