Skip to content

Package: AccountFactory

AccountFactory

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.account;
14:
15: import org.eclipse.kapua.model.KapuaEntityFactory;
16: import org.eclipse.kapua.model.id.KapuaId;
17:
18: /**
19: * {@link Account} {@link KapuaEntityFactory} definition.
20: *
21: * @see KapuaEntityFactory
22: * @since 1.0.0
23: */
24: public interface AccountFactory extends KapuaEntityFactory<Account, AccountCreator, AccountQuery, AccountListResult> {
25:
26: /**
27: * Instantiates a new {@link AccountCreator} with the given name.
28: *
29: * @param scopeId The scope {@link KapuaId} to set in the {@link AccountCreator}
30: * @param name The name to set in the {@link AccountCreator}
31: * @return The newly instantiated {@link AccountCreator}
32: * @since 1.0.0
33: * @deprecated Since 1.6.0. Please make use of {@link #newCreator(KapuaId)} and then use {@link AccountCreator#setName(String)}.
34: */
35: @Deprecated
36: AccountCreator newCreator(KapuaId scopeId, String name);
37:
38: /**
39: * Instantiates a new {@link Organization}.
40: *
41: * @return The newly instantiated {@link Organization}.
42: * @since 1.0.0
43: */
44: Organization newOrganization();
45: }