Skip to content

Commit

Permalink
Adjust thumbnail operations to actual state
Browse files Browse the repository at this point in the history
Signed-off-by: Zai Müller-Zhang <[email protected]>
  • Loading branch information
zhangzai123 committed Nov 30, 2023
1 parent 03cd800 commit 878f387
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public static Reference createDummyReference(String submodelId) {
}

private AssetInformation createDummyAssetInformation() {
return new DefaultAssetInformation.Builder().assetKind(AssetKind.INSTANCE).globalAssetID("assetIDTestKey").build();
return new DefaultAssetInformation.Builder().assetKind(AssetKind.INSTANCE).globalAssetId("assetIDTestKey").build();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
******************************************************************************/
package org.eclipse.digitaltwin.basyx.aasrepository.feature.registry.integration;

import java.io.File;
import java.io.InputStream;
import java.util.List;

import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell;
Expand Down Expand Up @@ -168,4 +170,19 @@ private boolean shellExistsOnRegistry(String shellId, RegistryAndDiscoveryInterf
}
}

@Override
public File getThumbnail(String aasId) {
return decorated.getThumbnail(aasId);
}

@Override
public void setThumbnail(String aasId, String fileName, String contentType, InputStream inputStream) {
decorated.setThumbnail(aasId, fileName, contentType, inputStream);
}

@Override
public void deleteThumbnail(String aasId) {
decorated.deleteThumbnail(aasId);
}

}

0 comments on commit 878f387

Please sign in to comment.