// Path: src/java/com/idega/documentmanager/component/FormDocument.java
// public interface FormDocument extends FormComponentContainer {
// 
// 	public abstract void setFormDocumentModified(boolean changed);
// 	
// 	public abstract boolean isFormDocumentModified();
// 	
// 	public abstract Document getComponentsXml(FormComponent component, Locale locale);
// 	
// 	public abstract Long getFormId();
// 	
// 	public abstract Locale getDefaultLocale();
// 	
// 	public abstract Page getConfirmationPage();
// 	
// 	public abstract PageThankYou getThxPage();
// 	
// 	public abstract void registerForLastPage(String register_page_id);
// 	
// 	public abstract String generateNewComponentId();
// 	
// 	public abstract Element getAutofillModelElement();
// 	
// 	public abstract Element getFormDataModelElement();
// 	
// 	public abstract Element getFormMainDataInstanceElement();
// 	
// 	public abstract Element getSubmissionElement();
// 	
// 	public abstract Element getSectionsVisualizationInstanceElement();
// 	
// 	public abstract PropertiesDocument getProperties();
// 	
// 	public abstract String getFormType();
// 	
// 	public abstract LocalizedStringBean getFormTitle();
// }


import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import com.idega.documentmanager.component.FormDocument;
package com.idega.documentmanager.business;



/**
 * @author <a href="mailto:civilis@idega.com">Vytautas Čivilis</a>
 * @version $Revision: 1.11 $
 * 
 *          Last modified: $Date: 2008/10/29 12:31:20 $ by $Author: civilis $
 */
public interface PersistenceManager {

	public abstract PersistedFormDocument loadForm(Long formId);

	public abstract PersistedFormDocument loadPopulatedForm(Long submissionId);

// Path: src/java/com/idega/documentmanager/component/FormDocument.java
// public interface FormDocument extends FormComponentContainer {
// 
// 	public abstract void setFormDocumentModified(boolean changed);
// 	
// 	public abstract boolean isFormDocumentModified();
// 	
// 	public abstract Document getComponentsXml(FormComponent component, Locale locale);
// 	
// 	public abstract Long getFormId();
// 	
// 	public abstract Locale getDefaultLocale();
// 	
// 	public abstract Page getConfirmationPage();
// 	
// 	public abstract PageThankYou getThxPage();
// 	
// 	public abstract void registerForLastPage(String register_page_id);
// 	
// 	public abstract String generateNewComponentId();
// 	
// 	public abstract Element getAutofillModelElement();
// 	
// 	public abstract Element getFormDataModelElement();
// 	
// 	public abstract Element getFormMainDataInstanceElement();
// 	
// 	public abstract Element getSubmissionElement();
// 	
// 	public abstract Element getSectionsVisualizationInstanceElement();
// 	
// 	public abstract PropertiesDocument getProperties();
// 	
// 	public abstract String getFormType();
// 	
// 	public abstract LocalizedStringBean getFormTitle();
// }


// Path: src/java/com/idega/documentmanager/business/PersistenceManager.java
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import com.idega.documentmanager.component.FormDocument;

package com.idega.documentmanager.business;



/**
 * @author <a href="mailto:civilis@idega.com">Vytautas Čivilis</a>
 * @version $Revision: 1.11 $
 * 
 *          Last modified: $Date: 2008/10/29 12:31:20 $ by $Author: civilis $
 */
public interface PersistenceManager {

	public abstract PersistedFormDocument loadForm(Long formId);

	public abstract PersistedFormDocument loadPopulatedForm(Long submissionId);

	public abstract PersistedFormDocument saveForm(FormDocument document)