Skip to content

Package: StorableCreator

StorableCreator

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 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.storable.model;
14:
15: import org.eclipse.kapua.model.id.KapuaId;
16:
17: /**
18: * {@link StorableCreator} definition.
19: * <p>
20: * It is the base {@code interface} for all {@link Object} creators that are {@link Storable}.
21: *
22: * @param <E> The {@link Storable} for which this is a {@link StorableCreator} for.
23: * @since 1.0.0
24: */
25: public interface StorableCreator<E extends Storable> {
26:
27: /**
28: * Gets the scope {@link KapuaId}.
29: *
30: * @return The scope {@link KapuaId}.
31: * @since 1.0.0
32: */
33: KapuaId getScopeId();
34:
35: /**
36: * Sets the scope {@link KapuaId}.
37: *
38: * @param scopeId The scope {@link KapuaId}.
39: * @since 1.3.0
40: */
41: void setScopeId(KapuaId scopeId);
42: }