\r
package eu.etaxonomy.cdm.api.facade;\r
\r
+import java.util.List;\r
+\r
import org.apache.log4j.Logger;\r
\r
+import eu.etaxonomy.cdm.api.service.IOccurrenceService;\r
+\r
/**\r
* @author a.mueller\r
*\r
private boolean moveFieldObjectMediaToGallery = false;\r
\r
private boolean moveDerivedUnitMediaToGallery = false;\r
+ \r
+ private boolean throwExceptionForNonSpecimenPreservationMethodRequest = true;\r
+ \r
+ private boolean firePropertyChangeEvents = true;\r
+\r
+ \r
+ //needed if inititialization via property paths is required\r
+ private IOccurrenceService occurrenceService;\r
+ \r
+ //for object initialization \r
+ private List<String> propertyPaths;\r
\r
\r
private DerivedUnitFacadeConfigurator(){\r
public boolean isMoveDerivedUnitMediaToGallery() {\r
return moveDerivedUnitMediaToGallery;\r
}\r
+\r
+ public void setOccurrenceService(IOccurrenceService occurrenceService) {\r
+ this.occurrenceService = occurrenceService;\r
+ }\r
+\r
+ \r
+ /**\r
+ * Needed for object initialization. \r
+ * @see #getPropertyPaths()\r
+ * @return\r
+ */\r
+ public IOccurrenceService getOccurrenceService() {\r
+ return occurrenceService;\r
+ }\r
+\r
+ public void setPropertyPaths(List<String> propertyPaths) {\r
+ this.propertyPaths = propertyPaths;\r
+ }\r
+\r
+ /**\r
+ * Needed for object initialization.\r
+ * Also requires to set occurrence service\r
+ * @see #getOccurrenceService()\r
+ * @return\r
+ */\r
+ public List<String> getPropertyPaths() {\r
+ return propertyPaths;\r
+ }\r
+\r
+ /**\r
+ * @param throwExceptionForNonSpecimenPreservationMethodRequest the throwExceptionForNonSpecimenPreservationMethodRequest to set\r
+ */\r
+ public void setThrowExceptionForNonSpecimenPreservationMethodRequest(\r
+ boolean throwExceptionForNonSpecimenPreservationMethodRequest) {\r
+ this.throwExceptionForNonSpecimenPreservationMethodRequest = throwExceptionForNonSpecimenPreservationMethodRequest;\r
+ }\r
+\r
+ /**\r
+ * @return the throwExceptionForNonSpecimenPreservationMethodRequest\r
+ */\r
+ public boolean isThrowExceptionForNonSpecimenPreservationMethodRequest() {\r
+ return throwExceptionForNonSpecimenPreservationMethodRequest;\r
+ }\r
+\r
+ public void setFirePropertyChangeEvents(boolean firePropertyChangeEvents) {\r
+ this.firePropertyChangeEvents = firePropertyChangeEvents;\r
+ }\r
+\r
+ public boolean isFirePropertyChangeEvents() {\r
+ return firePropertyChangeEvents;\r
+ }\r
\r
\r
}\r