@@ -0,0 +1,1758 @@
+package fi.nls.oskari.control.view.modifier.param;%0A%0Aimport fi.nls.oskari.annotation.OskariViewModifier;%0Aimport fi.nls.oskari.util.JSONHelper;%0Aimport fi.nls.oskari.view.modifier.ModifierException;%0Aimport fi.nls.oskari.view.modifier.ModifierParams;%0Aimport fi.nls.oskari.view.modifier.ParamHandler;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0A@OskariViewModifier(%22time%22)%0Apublic class TimeParamHandler extends ParamHandler %7B%0A    private static final String KEY_DATE = %22date%22;%0A    private static final String KEY_DAY_TIME = %22time%22;%0A    private static final String KEY_YEAR = %22year%22;%0A    private static final String KEY_TIME = %22timePoint%22;%0A%0A    public boolean handleParam(final ModifierParams params) throws ModifierException %7B%0A        String paramValue = params.getParamValue();%0A        if (paramValue == null) %7B%0A            return false;%0A        %7D%0A        final String%5B%5D timeProps = paramValue.split(%22_%22);%0A        if (timeProps.length %3C 2) %7B%0A            return false;%0A        %7D%0A        JSONObject time = new JSONObject();%0A        JSONHelper.putValue(time, KEY_DATE, timeProps%5B0%5D);%0A        JSONHelper.putValue(time, KEY_DAY_TIME, timeProps%5B1%5D);%0A        if (timeProps.length == 3) %7B%0A            try %7B%0A                int year = Integer.parseInt(timeProps%5B2%5D);%0A                JSONHelper.putValue(time, KEY_YEAR, year);%0A            %7D catch (NumberFormatException e) %7B%0A                // year is optional, do nothing%0A            %7D%0A        %7D%0A        try %7B%0A            final JSONObject mapfullState = getBundleState(params.getConfig(), BUNDLE_MAPFULL);%0A            mapfullState.put(KEY_TIME, time);%0A        %7D catch (JSONException je) %7B%0A            throw new ModifierException(%22Could not apply time parameters%22);%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

add time param handler