/*
* JFolder, Copyright 2001-2006 Gary Steinmetz
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jfolder.workflow.lifecycle;
//base classes
import java.io.File;
//project specific classes
import org.jfolder.common.utils.misc.MiscHelper;
import org.jfolder.project.model.ProjectWebPage;
//other classes
/*public class GenericFileProjectWebPage implements ProjectWebPage {
private File file = null;
private String content = null;
protected GenericFileProjectWebPage(File inFile) {
this.file = inFile;
//this.content = DEFAULT_WEB_PAGE;
//this.content = WebTagHelper.getRootConceptTagHolder((Node)null,
// ConceptTagSetContext.newInstance()).getXMLRepresentation();
if (this.file.exists()) {
load();
}
else {
this.content = "";
}
}
protected void load() {
this.content = MiscHelper.readTextFile(this.file);
}
protected void store() {
MiscHelper.writeTextFile(this.file, this.content);
}
public String getName() {
return this.file.getName();
}
public String getFormattedDate() {
return MiscHelper.formatTime(this.file.lastModified());
}
public String getContent() {
//MiscHelper.println("");
load();
return this.content;
}
public void setContent(String inContent) {
this.content = inContent;
store();
}
}*/
|