Skip to content
Snippets Groups Projects
Commit 39d1964e authored by Lyn Elisa Goltz's avatar Lyn Elisa Goltz
Browse files

Merged in deprecatedGueltigkeitszeitraum-XPLANBOX-2302 (pull request #119)

Deprecated Gueltigkeitszeitraum XPLANBOX-2302

Approved-by: stenger
Approved-by: Torsten Friebe
parents 15117f26 4ac037e3
No related branches found
No related tags found
No related merge requests found
Showing
with 63 additions and 19 deletions
......@@ -32,6 +32,7 @@ import java.util.Collections;
/**
* Handles editing of Zeitraum.
*
* @deprecated will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz </a>
*/
@Component
......
......@@ -41,6 +41,7 @@ import javax.ws.rs.Produces;
/**
* Controller class for handling access to the gueltigkeit resource of a plan.
*
* @deprecated will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz </a>
* @since 4.4
*/
......@@ -59,11 +60,9 @@ public class PlanGueltigkeitApi {
@ApiResponse(responseCode = "400",
description = "Unsupported plan version or planID is not a valid int value"),
@ApiResponse(responseCode = "404", description = "Invalid planID, plan not found"),
@ApiResponse(responseCode = "406", description = "Requested format is not available"), })
public Zeitraum getGueltigkeit(
@PathParam("planId") @Parameter(description = "ID of the plan gueltigkeit to be returned",
example = "123") String planId)
throws Exception {
@ApiResponse(responseCode = "406", description = "Requested format is not available"), },
description = "deprecated: Gueltigkeitszeitraum will be removed in a future version.", deprecated = true)
public Zeitraum getGueltigkeit(@PathParam("planId") @Parameter(example = "123") String planId) throws Exception {
return editGueltigkeitHandler.retrieveGueltigkeit(planId);
}
......@@ -80,7 +79,8 @@ public class PlanGueltigkeitApi {
@ApiResponse(responseCode = "406", description = "Requested format is not available"),
@ApiResponse(responseCode = "422", description = "Request body contains invalid content") },
requestBody = @RequestBody(content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Zeitraum.class)) }))
@Content(mediaType = "application/json", schema = @Schema(implementation = Zeitraum.class)) }),
description = "deprecated: Gueltigkeitszeitraum will be removed in a future version.", deprecated = true)
public Zeitraum replaceGueltigkeit(@PathParam("planId") @Parameter(description = "ID of the plan to be returned",
example = "123") String planId, @Valid Zeitraum zeitraum) throws Exception {
return editGueltigkeitHandler.replaceGueltigkeit(planId, zeitraum);
......
......@@ -33,6 +33,7 @@ import java.util.Objects;
/**
* Datatype for Zeitraum.
*
* @deprecated will be removed in a future version.
* @since 4.4
*/
@XmlRootElement
......
......@@ -23,7 +23,7 @@
activateInternalIdDialog=${isInternalIdDialogActivated}
# enables the legislative status dialog
activateLegislationStatusDialog=${isLegislationStatusDialogActivated}
# enables the validity period dialog
# enables the validity period dialog (deprecated)
activateValidityPeriodDialog=${isValidityPeriodDialogActivated}
# activates the editor function
activateEditor=${isEditorActivated}
......
......@@ -52,8 +52,14 @@ public class FeatureCollectionManipulator {
private static final String XPLAN_MGR_PLAN_ID_PROP_NAME = "xplanMgrPlanId";
/**
* @deprecated will be removed in a future version.
*/
private static final String START_DATE_TIME_PROP_NAME = "gueltigkeitBeginn";
/**
* @deprecated will be removed in a future version.
*/
private static final String END_DATE_TIME_PROP_NAME = "gueltigkeitEnde";
/**
......@@ -142,6 +148,9 @@ public class FeatureCollectionManipulator {
addDateProperty(feature, featureType, WMS_SORT_DATE_PROP_NAME, releaseDate);
}
/**
* @deprecated will be removed in a future version.
*/
private void addStartAndEndDateTimeProperty(Date beginValidity, Date endValidity, Feature feature,
FeatureType featureType) {
if (beginValidity != null)
......
......@@ -26,6 +26,7 @@ import java.util.Date;
/**
* Encapsulates the validity period of a plan.
*
* @deprecated will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz</a>
* @version $Revision: $, $Date: $
*/
......
......@@ -72,6 +72,7 @@ public class XPlanToEdit {
}
/**
* @deprecated will be removed in a future version.
* @return the validityPeriod, never <code>null</code>
*/
public ValidityPeriod getValidityPeriod() {
......@@ -81,6 +82,7 @@ public class XPlanToEdit {
}
/**
* @deprecated will be removed in a future version.
* @param validityPeriod the validityPeriod to set, may be <code>null</code>
*/
public void setValidityPeriod(ValidityPeriod validityPeriod) {
......
......@@ -310,27 +310,45 @@ public class Plan {
return this;
}
/**
* @deprecated will be removed in a future version.
*/
public Date getGueltigkeitbeginn() {
return gueltigkeitbeginn;
}
/**
* @deprecated will be removed in a future version.
*/
public void setGueltigkeitbeginn(Date gueltigkeitbeginn) {
this.gueltigkeitbeginn = gueltigkeitbeginn;
}
/**
* @deprecated will be removed in a future version.
*/
public Plan gueltigkeitbeginn(Date gueltigkeitbeginn) {
this.gueltigkeitbeginn = gueltigkeitbeginn;
return this;
}
/**
* @deprecated will be removed in a future version.
*/
public Date getGueltigkeitende() {
return gueltigkeitende;
}
/**
* @deprecated will be removed in a future version.
*/
public void setGueltigkeitende(Date gueltigkeitende) {
this.gueltigkeitende = gueltigkeitende;
}
/**
* @deprecated will be removed in a future version.
*/
public Plan gueltigkeitende(Date gueltigkeitende) {
this.gueltigkeitende = gueltigkeitende;
return this;
......
......@@ -122,6 +122,9 @@ public class XPlanToEditFactory {
return xPlanToEdit;
}
/**
* @deprecated will be removed in a future version.
*/
private void setValidityPeriod(AdditionalPlanData additionalPlanData, XPlanToEdit xPlanToEdit) {
if (additionalPlanData != null) {
additionalPlanData.getStartDateTime();
......
......@@ -120,6 +120,8 @@ unbeabsichtigt zu einer Zustandsänderung des Plans kommen kann!
Entsprechung im XPlanGML. Die Angabe des Zeitraums, wie sie beim Import
erfolgt ist, wird beim Ändern des Zeitraums überschrieben.
IMPORTANT: Die Möglichkeit einen Gültigkeitszeitraum anzugeben ist veraltet, das Editieren des Gültigkeitszeitraum wird in zukünftigen Versionen der xPlanBox entfernt.
*Änderungen*
bis XPlanGML 5.4:
......
......@@ -226,6 +226,8 @@ Wird der XPlanWMSInAufstellung innerhalb des gewählten Zeitraums angefragt, so
NOTE: Ausnahme: Die Sichtbarkeit der Layer, die den Geltungsbereich darstellen, werden nicht über den Gültigkeitszeitraum verändert und werden immer angezeigt.
IMPORTANT: Die Möglichkeit einen Gültigkeitszeitraum anzugeben ist veraltet und wird in zukünftigen Versionen der xPlanBox entfernt.
[[xplanwms-getfeatureinfo]]
==== GetFeatureInfo
......
......@@ -34,7 +34,7 @@ ein FPlan mit Rasterdaten.
=== XPlanWMS - Darstellung von Plänen mit Gültigkeitszeitraum
Wenn beim Import eines Plans über den XPlanManager ein Gültigkeitszeitraum angegeben wird, werden derzeit keine Vektordaten bei GetMap-Anfragen an den XPlanWMS angezeigt. Dies gilt für alle XPlanWMS unabhängig vom Planststatus.
Wenn beim Import eines Plans über den XPlanManager ein Gültigkeitszeitraum angegeben wird, werden derzeit keine Vektordaten bei GetMap-Anfragen an den XPlanWMS angezeigt. Dies gilt für alle XPlanWMS unabhängig vom Planstatus.
=== XPlanManagerWeb - Anzeige der Pläne auf der letzten Seite
......
......@@ -28,4 +28,6 @@ Dazu ist folgender Abschnitt in der Datei _<DEEGREE_WORKSPACE_ROOT>/xplansyn-wms
<wms:CategoryLayerIdentifier>SO_Planraster</wms:CategoryLayerIdentifier>
<wms:CategoryLayerIdentifier>soplanraster_sortiert</wms:CategoryLayerIdentifier>
</wms:VisibilityInspector>
----
\ No newline at end of file
----
IMPORTANT: Die Möglichkeit einen Gültigkeitszeitraum für einen Plan anzugeben ist veraltet, die dazugehörigen Konfigurationsmöglichkeiten werden in zukünftigen Versionen der xPlanBox entfernt.
\ No newline at end of file
......@@ -20,22 +20,21 @@
*/
package de.latlon.xplan.manager.web.client.gui.dialog;
import java.util.Date;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;
import de.latlon.xplan.manager.web.client.gui.widget.Validable;
import de.latlon.xplan.manager.web.client.gui.widget.ValidityPeriodInput;
import de.latlon.xplan.manager.web.client.i18n.XPlanWebMessages;
import java.util.Date;
/**
* Dialog to set the validity period of a plan.
*
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz</a>
* @version $Revision: $, $Date: $
* @deprecated class will be removed in a future version.
*/
public class ValidityPeriodDialog extends WizardDialogBox implements Validable {
......
......@@ -20,23 +20,23 @@
*/
package de.latlon.xplan.manager.web.client.gui.editor.validityPeriod;
import static com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER;
import java.util.Date;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.CaptionPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import de.latlon.xplan.manager.web.client.gui.widget.Validable;
import de.latlon.xplan.manager.web.client.gui.widget.ValidityPeriodInput;
import de.latlon.xplan.manager.web.client.i18n.XPlanWebMessages;
import de.latlon.xplan.manager.web.shared.edit.ValidityPeriod;
import java.util.Date;
import static com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER;
/**
* CaptionPanel with editor for the validity period section.
*
* @deprecated will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz</a>
*/
public class ValidityPeriodPanel extends CaptionPanel implements Validable {
......
......@@ -109,6 +109,7 @@ public class ManagerWebConfiguration implements Serializable {
/**
* @return <code>true</code> if the dialog to select the validity period of a plan
* should be activated, <code>false</code> otherwise
* @deprecated method will be removed in a future version.
*/
public boolean isValidityPeriodActivated() {
return validityPeriodActivated;
......
......@@ -23,7 +23,7 @@
activateInternalIdDialog=false
# enables the legislative status dialog
activateLegislationStatusDialog=true
# enables the validity period dialog
# enables the validity period dialog (deprecated)
activateValidityPeriodDialog=true
# activates the editor function
activateEditor=true
......
......@@ -23,6 +23,7 @@ package de.latlon.xplan.wms.visibility;
/**
* A {@link ValidityPeriodInspector} for schema 'xplansynarchive'
*
* @deprecated The VisibilityInspector will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz </a>
*/
public class ArchiveValidityPeriodInspector extends ValidityPeriodInspector {
......
......@@ -23,6 +23,7 @@ package de.latlon.xplan.wms.visibility;
/**
* A {@link ValidityPeriodInspector} for schema 'xplansyn'
*
* @deprecated The VisibilityInspector will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz </a>
*/
public class DefaultValidityPeriodInspector extends ValidityPeriodInspector {
......
......@@ -23,6 +23,7 @@ package de.latlon.xplan.wms.visibility;
/**
* A {@link ValidityPeriodInspector} for schema 'xplansynpre'
*
* @deprecated The VisibilityInspector will be removed in a future version.
* @author <a href="mailto:goltz@lat-lon.de">Lyn Goltz </a>
*/
public class PreValidityPeriodInspector extends ValidityPeriodInspector {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.