Skip to content

Commit

Permalink
Add assetLifecyclePhase to the default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacicek committed Aug 22, 2023
1 parent 6a56248 commit 589f2ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.eclipse.tractusx.semantics.RegistryProperties;
import org.eclipse.tractusx.semantics.registry.model.Shell;
Expand Down Expand Up @@ -98,8 +96,8 @@ private Set<ShellIdentifier> filterSpecificAssetIdsByTenantId( Set<ShellIdentifi
shellIdentifierExternalSubjectReferenceKey.getValue().equals( tenantId ) ||
// or match if externalSubjectId = externalSubjectIdWildcardPrefix and key of identifier (for example manufacturerPartId) is allowing wildcard.
(shellIdentifierExternalSubjectReferenceKey.getValue().equals( externalSubjectIdWildcardPrefix ) &&
externalSubjectIdWildcardAllowedTypes.contains( identifier.getKey() )) ).collect( Collectors.toSet() );
if ( optionalReferenceKey!=null && !optionalReferenceKey.isEmpty() ) {
externalSubjectIdWildcardAllowedTypes.contains( identifier.getKey() )) ).collect( Collectors.toSet() );
if ( optionalReferenceKey != null && !optionalReferenceKey.isEmpty() ) {
identifier.getExternalSubjectId().setKeys( optionalReferenceKey );
externalSubjectIdSet.add( identifier );
}
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ registry:
# This wildcard prefix is used to make specificAssetIds public vor everyone.
# The default-value "PUBLIC_READABLE" is used by all catenaX participants.
external-subject-id-wildcard-prefix: "PUBLIC_READABLE"
external-subject-id-wildcard-allowed-types: manufacturerPartId
external-subject-id-wildcard-allowed-types: manufacturerPartId, assetLifecyclePhase
idm:
public-client-id: catenax-portal

Expand Down

0 comments on commit 589f2ea

Please sign in to comment.