-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): authorization extended for soft-delete and suspended
* fix AspectRetriever behavior with respect to key aspects always returned * Deprecated active boolean in corpUserInfo not supported
- Loading branch information
1 parent
d0b4f7a
commit 6d03e03
Showing
78 changed files
with
979 additions
and
430 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
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
36 changes: 35 additions & 1 deletion
36
entity-registry/src/main/java/com/linkedin/metadata/aspect/CachingAspectRetriever.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 |
---|---|---|
@@ -1,4 +1,38 @@ | ||
package com.linkedin.metadata.aspect; | ||
|
||
import com.linkedin.common.urn.Urn; | ||
import com.linkedin.entity.Aspect; | ||
import com.linkedin.metadata.models.registry.EmptyEntityRegistry; | ||
import com.linkedin.metadata.models.registry.EntityRegistry; | ||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import javax.annotation.Nonnull; | ||
|
||
/** Responses can be cached based on application.yaml caching configuration for the EntityClient */ | ||
public interface CachingAspectRetriever extends AspectRetriever {} | ||
public interface CachingAspectRetriever extends AspectRetriever { | ||
|
||
CachingAspectRetriever EMPTY = new EmptyAspectRetriever(); | ||
|
||
class EmptyAspectRetriever implements CachingAspectRetriever { | ||
@Nonnull | ||
@Override | ||
public Map<Urn, Map<String, Aspect>> getLatestAspectObjects( | ||
Set<Urn> urns, Set<String> aspectNames) { | ||
return Collections.emptyMap(); | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public Map<Urn, Map<String, SystemAspect>> getLatestSystemAspects( | ||
Map<Urn, Set<String>> urnAspectNames) { | ||
return Collections.emptyMap(); | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public EntityRegistry getEntityRegistry() { | ||
return EmptyEntityRegistry.EMPTY; | ||
} | ||
} | ||
} |
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
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
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.