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
Constructors Constructor Description ResourceContext(String resource)ResourceContext(String resource, UUID id, String name)ResourceContext(String resource, T entity, EntityRepository<T> repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityInterfacegetEntity()EntityReferencegetOwner()List<TagLabel>getTags()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openmetadata.service.security.policyevaluator.ResourceContextInterface
getResource
-
-
-
-
Method Detail
-
getOwner
public EntityReference getOwner()
- Specified by:
getOwnerin interfaceResourceContextInterface
-
getTags
public List<TagLabel> getTags()
- Specified by:
getTagsin interfaceResourceContextInterface
-
getEntity
public EntityInterface getEntity()
- Specified by:
getEntityin interfaceResourceContextInterface
-
-