Class TestCaseResourceContext
- java.lang.Object
-
- org.openmetadata.service.security.policyevaluator.TestCaseResourceContext
-
- All Implemented Interfaces:
ResourceContextInterface
public class TestCaseResourceContext 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 TestCaseResourceContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityInterfacegetEntity()EntityReferencegetOwner()StringgetResource()List<TagLabel>getTags()
-
-
-
Method Detail
-
getResource
public String getResource()
- Specified by:
getResourcein interfaceResourceContextInterface
-
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
-
-