import java.util.List;
import java.util.Set;
+import org.splat.dal.bo.som.DocumentType;
import org.splat.dal.bo.som.ProjectElement;
import org.splat.service.technical.ProjectSettingsServiceImpl.FileNaming;
import org.splat.service.technical.ProjectSettingsServiceImpl.ProjectSettingsValidationCycle;
/**
* Transient study step data.
*/
- class Step {
+ class Step {
/**
* The sequential number of the step.
*/
/**
* Get the module.
+ *
* @return the module
*/
public String getModule() {
/**
* Set the module.
- * @param module the module to set
+ *
+ * @param module
+ * the module to set
*/
public void setModule(final String module) {
_module = module;
/**
* Get the key.
+ *
* @return the key
*/
public String getKey() {
/**
* Set the key.
- * @param key the key to set
+ *
+ * @param key
+ * the key to set
*/
public void setKey(final String key) {
_key = key;
*/
List<ProjectSettingsService.Step> getStepsOf(
Class<? extends ProjectElement> level);
-
+
/**
* Check if a file of the given format should be imported during check-in of a document of the given type.
*
* file format
* @return true if file should be imported
*/
- public boolean doImport(final String type, final String format);
+ boolean doImport(final String type, final String format);
+
+ /**
+ * Get default document type for the given file format on the given study step.
+ *
+ * @param step
+ * the study step
+ * @param format
+ * the file format (extension)
+ * @return document type
+ */
+ DocumentType getDefaultDocumentType(final Step step, final String format);
+
+ /**
+ * Get the list of default formats for the given study step.
+ *
+ * @param step
+ * the study step
+ * @return list of formats (file extensions)
+ */
+ List<String> getDefaultFormats(final Step step);
}