Class ResourceContext<T extends EntityInterface>
java.lang.Object
org.openmetadata.service.security.policyevaluator.ResourceContext<T>
- All Implemented Interfaces:
ResourceContextInterface
public class ResourceContext<T extends EntityInterface>
extends Object
implements ResourceContextInterface
Builds ResourceContext lazily. ResourceContext includes all the attributes of a resource a user is trying to access
to be used for evaluating Access Control policies.
As multiple threads don't access this, the class is not thread-safe by design.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceContext(@NonNull String resource) ResourceContext(@NonNull String resource, UUID id, String name) ResourceContext(@NonNull String resource, T entity, EntityRepository<T> repository) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openmetadata.service.security.policyevaluator.ResourceContextInterface
getResource
-
Constructor Details
-
ResourceContext
-
ResourceContext
-
ResourceContext
-
-
Method Details
-
getOwner
- Specified by:
getOwnerin interfaceResourceContextInterface
-
getTags
- Specified by:
getTagsin interfaceResourceContextInterface
-
getEntity
- Specified by:
getEntityin interfaceResourceContextInterface
-