-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add openapi examples for policy definition endpoints (#3272)
- Loading branch information
Showing
35 changed files
with
393 additions
and
1,204 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
44 changes: 44 additions & 0 deletions
44
...mon/json-ld/src/main/java/org/eclipse/edc/jsonld/transformer/OdrlTransformersFactory.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,44 @@ | ||
/* | ||
* Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation | ||
* | ||
*/ | ||
|
||
package org.eclipse.edc.jsonld.transformer; | ||
|
||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToActionTransformer; | ||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToConstraintTransformer; | ||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToDutyTransformer; | ||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToOperatorTransformer; | ||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToPermissionTransformer; | ||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToPolicyTransformer; | ||
import org.eclipse.edc.jsonld.transformer.to.JsonObjectToProhibitionTransformer; | ||
import org.eclipse.edc.transform.spi.TypeTransformer; | ||
|
||
import java.util.stream.Stream; | ||
|
||
public final class OdrlTransformersFactory { | ||
|
||
private OdrlTransformersFactory() { | ||
} | ||
|
||
public static Stream<TypeTransformer<?, ?>> jsonObjectToOdrlTransformers() { | ||
return Stream.of( | ||
new JsonObjectToPolicyTransformer(), | ||
new JsonObjectToPermissionTransformer(), | ||
new JsonObjectToProhibitionTransformer(), | ||
new JsonObjectToDutyTransformer(), | ||
new JsonObjectToActionTransformer(), | ||
new JsonObjectToConstraintTransformer(), | ||
new JsonObjectToOperatorTransformer() | ||
); | ||
} | ||
} |
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.