package edu.ucsf.lava.crms.enrollment.controller;

import edu.ucsf.lava.crms.file.controller.BaseCrmsFileHandler;
import edu.ucsf.lava.crms.file.model.CrmsFile;
import edu.ucsf.lava.crms.session.CrmsSessionUtils;

public class EnrollmentAttachmentHandler extends BaseCrmsFileHandler {

	public EnrollmentAttachmentHandler() {
		super();
		CrmsSessionUtils.setIsPatientContext(this);
		this.setHandledEntity("enrollmentAttachment", CrmsFile.class);
	}

	
}

@@ -44,16 +44,276 @@
 oller;%0A%0A
+import java.util.Map;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0Aimport org.springframework.validation.BindingResult;%0Aimport org.springframework.webflow.context.servlet.ServletExternalContext;%0Aimport org.springframework.webflow.execution.RequestContext;%0A%0A
 import e
@@ -706,11 +706,630 @@
 );%0A%09%7D%0A%0A%09
+public Map addReferenceData(RequestContext context, Object command, BindingResult errors, Map model)%0A%09%7B%0A%09%09HttpServletRequest request =  ((ServletExternalContext)context.getExternalContext()).getRequest();%0A%09%09// cannot get request parameter value directly from the request because of post-redirect-get second request. instead. the%0A%09%09// flow will pass request parameters with predefined names (%22param%22, %22param1%22, etc.) into flowScope to be accessed%0A%09%09String parentView = context.getFlowScope().getString(%22param%22);%0A%09%09model.put(%22parentView%22, parentView);%0A%09%09return super.addReferenceData(context, command, errors, model);%0A%09%7D%0A
 %0A%7D%0A

add flag to model to signal to view to support view logic