Skip to content

Package: JobTargetCreator

JobTargetCreator

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.job.targets;
14:
15: import org.eclipse.kapua.model.KapuaUpdatableEntityCreator;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.model.id.KapuaIdAdapter;
18:
19: import javax.xml.bind.annotation.XmlAccessType;
20: import javax.xml.bind.annotation.XmlAccessorType;
21: import javax.xml.bind.annotation.XmlRootElement;
22: import javax.xml.bind.annotation.XmlType;
23: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
24:
25: /**
26: * {@link JobTargetCreator} encapsulates all the information needed to create a new JobTarget in the system.<br>
27: * The data provided will be used to seed the new JobTarget.
28: *
29: * @since 1.0.0
30: */
31: @XmlRootElement(name = "jobTargetCreator")
32: @XmlAccessorType(XmlAccessType.PROPERTY)
33: @XmlType(factoryClass = JobTargetXmlRegistry.class, factoryMethod = "newJobTargetCreator")
34: public interface JobTargetCreator extends KapuaUpdatableEntityCreator<JobTarget> {
35:
36: @XmlJavaTypeAdapter(KapuaIdAdapter.class)
37: KapuaId getJobId();
38:
39: void setJobId(KapuaId jobId);
40:
41: @XmlJavaTypeAdapter(KapuaIdAdapter.class)
42: KapuaId getJobTargetId();
43:
44: void setJobTargetId(KapuaId jobTargetId);
45: }