Loading src/main/java/es/redmic/usersettingslib/events/select/SelectCancelledEvent.java 0 → 100644 +49 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.brokerlib.avro.common.EventError; import es.redmic.usersettingslib.events.SettingsEventTypes; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectCancelledEvent extends EventError { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectCancelledEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getFailEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT_CANCELLED; public SelectCancelledEvent() { super(type); } @Override public Schema getSchema() { return SCHEMA$; } } src/main/java/es/redmic/usersettingslib/events/select/SelectConfirmedEvent.java 0 → 100644 +48 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.brokerlib.avro.common.SimpleEvent; import es.redmic.usersettingslib.events.SettingsEventTypes; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectConfirmedEvent extends SimpleEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectConfirmedEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT_CONFIRMED; public SelectConfirmedEvent() { super(type); } @Override public Schema getSchema() { return SCHEMA$; } } src/main/java/es/redmic/usersettingslib/events/select/SelectEvent.java 0 → 100644 +59 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import java.util.UUID; import org.apache.avro.Schema; import es.redmic.usersettingslib.dto.SelectionDTO; import es.redmic.usersettingslib.events.SettingsEventTypes; import es.redmic.usersettingslib.events.common.SelectionEvent; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectEvent extends SelectionEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getSelectionEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT; public SelectEvent() { super(type); setSessionId(UUID.randomUUID().toString()); } public SelectEvent(SelectionDTO selection) { super(type); this.setSelection(selection); setSessionId(UUID.randomUUID().toString()); } @Override public Schema getSchema() { return SCHEMA$; } } src/main/java/es/redmic/usersettingslib/events/select/SelectFailedEvent.java 0 → 100644 +49 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.brokerlib.avro.common.EventError; import es.redmic.usersettingslib.events.SettingsEventTypes; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectFailedEvent extends EventError { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectFailedEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getFailEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT_FAILED; public SelectFailedEvent() { super(type); } @Override public Schema getSchema() { return SCHEMA$; } } src/main/java/es/redmic/usersettingslib/events/select/SelectedEvent.java 0 → 100644 +54 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.usersettingslib.dto.SelectionDTO; import es.redmic.usersettingslib.events.SettingsEventTypes; import es.redmic.usersettingslib.events.common.SelectionEvent; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectedEvent extends SelectionEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser() .parse("{" + "\"type\":\"record\",\"name\":\"SelectedEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getSelectionEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECTED; public SelectedEvent() { super(type); } public SelectedEvent(SelectionDTO selection) { super(type); this.setSelection(selection); } @Override public Schema getSchema() { return SCHEMA$; } } Loading
src/main/java/es/redmic/usersettingslib/events/select/SelectCancelledEvent.java 0 → 100644 +49 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.brokerlib.avro.common.EventError; import es.redmic.usersettingslib.events.SettingsEventTypes; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectCancelledEvent extends EventError { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectCancelledEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getFailEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT_CANCELLED; public SelectCancelledEvent() { super(type); } @Override public Schema getSchema() { return SCHEMA$; } }
src/main/java/es/redmic/usersettingslib/events/select/SelectConfirmedEvent.java 0 → 100644 +48 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.brokerlib.avro.common.SimpleEvent; import es.redmic.usersettingslib.events.SettingsEventTypes; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectConfirmedEvent extends SimpleEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectConfirmedEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT_CONFIRMED; public SelectConfirmedEvent() { super(type); } @Override public Schema getSchema() { return SCHEMA$; } }
src/main/java/es/redmic/usersettingslib/events/select/SelectEvent.java 0 → 100644 +59 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import java.util.UUID; import org.apache.avro.Schema; import es.redmic.usersettingslib.dto.SelectionDTO; import es.redmic.usersettingslib.events.SettingsEventTypes; import es.redmic.usersettingslib.events.common.SelectionEvent; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectEvent extends SelectionEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getSelectionEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT; public SelectEvent() { super(type); setSessionId(UUID.randomUUID().toString()); } public SelectEvent(SelectionDTO selection) { super(type); this.setSelection(selection); setSessionId(UUID.randomUUID().toString()); } @Override public Schema getSchema() { return SCHEMA$; } }
src/main/java/es/redmic/usersettingslib/events/select/SelectFailedEvent.java 0 → 100644 +49 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.brokerlib.avro.common.EventError; import es.redmic.usersettingslib.events.SettingsEventTypes; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectFailedEvent extends EventError { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"SelectFailedEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getFailEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECT_FAILED; public SelectFailedEvent() { super(type); } @Override public Schema getSchema() { return SCHEMA$; } }
src/main/java/es/redmic/usersettingslib/events/select/SelectedEvent.java 0 → 100644 +54 −0 Original line number Diff line number Diff line package es.redmic.usersettingslib.events.select; import org.apache.avro.Schema; import es.redmic.usersettingslib.dto.SelectionDTO; import es.redmic.usersettingslib.events.SettingsEventTypes; import es.redmic.usersettingslib.events.common.SelectionEvent; /*- * #%L * user-settings-lib * %% * Copyright (C) 2019 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public class SelectedEvent extends SelectionEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser() .parse("{" + "\"type\":\"record\",\"name\":\"SelectedEvent\"," + "\"namespace\":\"es.redmic.usersettingslib.events.select\",\"fields\":[" + getSelectionEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on static String type = SettingsEventTypes.SELECTED; public SelectedEvent() { super(type); } public SelectedEvent(SelectionDTO selection) { super(type); this.setSelection(selection); } @Override public Schema getSchema() { return SCHEMA$; } }