-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add rest.jersey.server-module to inject encrypted reader/writer - add IIdCodecFlag to parametrize IdCodec-calls - add idEncryption to ScoutDataObjectModuleContext and pass context to all IId-serializers/deserializers - add IIdEncryptionDataObjectMapper/JacksonIdEncryptionDataObjectMapper that uses the ScoutDataObjectModuleContexts idEncryption flag - use IIdEncryptionDataObjectMapper in Json layer 340299
- Loading branch information
Showing
41 changed files
with
1,132 additions
and
115 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
18 changes: 18 additions & 0 deletions
18
...taobject/src/main/java/org/eclipse/scout/rt/dataobject/IIdEncryptionDataObjectMapper.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,18 @@ | ||
/* | ||
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG | ||
* | ||
* 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 | ||
*/ | ||
package org.eclipse.scout.rt.dataobject; | ||
|
||
/** | ||
* Interface to a data mapper that uses id encryption. | ||
* | ||
* @see IDataObjectMapper | ||
*/ | ||
public interface IIdEncryptionDataObjectMapper extends IDataObjectMapper { | ||
} |
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
31 changes: 31 additions & 0 deletions
31
...ain/java/org/eclipse/scout/rt/jackson/dataobject/JacksonIdEncryptionDataObjectMapper.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,31 @@ | ||
/* | ||
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG | ||
* | ||
* 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 | ||
*/ | ||
package org.eclipse.scout.rt.jackson.dataobject; | ||
|
||
import org.eclipse.scout.rt.dataobject.IDataObjectMapper; | ||
import org.eclipse.scout.rt.dataobject.IIdEncryptionDataObjectMapper; | ||
import org.eclipse.scout.rt.platform.IBean; | ||
import org.eclipse.scout.rt.platform.Order; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
/** | ||
* {@link IDataObjectMapper} implementation based on jackson {@link ObjectMapper} with id encrypted | ||
* serialization/deserialization. | ||
*/ | ||
@Order(IBean.DEFAULT_BEAN_ORDER + 100) | ||
public class JacksonIdEncryptionDataObjectMapper extends JacksonDataObjectMapper implements IIdEncryptionDataObjectMapper { | ||
|
||
@Override | ||
protected void prepareScoutDataModuleContext(ScoutDataObjectModuleContext moduleContext) { | ||
super.prepareScoutDataModuleContext(moduleContext); | ||
moduleContext.withIdEncryption(true); | ||
} | ||
} |
Oops, something went wrong.