-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3969 from elbert3/chng-forwardableEntities
Improve/cleanup forwardable entities
- Loading branch information
Showing
44 changed files
with
704 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
.../main/java/org/eclipse/kapua/commons/model/query/AbstractKapuaForwardableEntityQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.commons.model.query; | ||
|
||
import org.eclipse.kapua.model.id.KapuaId; | ||
import org.eclipse.kapua.model.query.KapuaForwardableEntityQuery; | ||
import org.eclipse.kapua.model.query.KapuaQuery; | ||
|
||
public class AbstractKapuaForwardableEntityQuery extends AbstractKapuaNamedQuery implements KapuaForwardableEntityQuery { | ||
|
||
protected Boolean includeInherited = Boolean.FALSE; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
*/ | ||
public AbstractKapuaForwardableEntityQuery() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param scopeId The {@link #getScopeId()}. | ||
*/ | ||
public AbstractKapuaForwardableEntityQuery(KapuaId scopeId) { | ||
super(scopeId); | ||
} | ||
|
||
/** | ||
* Clone constructor. | ||
* | ||
* @param query The {@link AbstractKapuaForwardableEntityQuery} to clone. | ||
*/ | ||
public AbstractKapuaForwardableEntityQuery(KapuaQuery query) { | ||
super(query); | ||
if(query instanceof KapuaForwardableEntityQuery) { | ||
this.includeInherited = ((KapuaForwardableEntityQuery) query).getIncludeInherited(); | ||
} | ||
} | ||
|
||
@Override | ||
public Boolean getIncludeInherited() { | ||
return includeInherited; | ||
} | ||
|
||
@Override | ||
public void setIncludeInherited(Boolean includeInherited) { | ||
this.includeInherited = includeInherited; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.