Package org.apache.gravitino.dto.policy
Class PolicyDTO
java.lang.Object
org.apache.gravitino.dto.policy.PolicyDTO
Represents a Policy Data Transfer Object (DTO).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class for constructing PolicyDTO instances.Nested classes/interfaces inherited from interface org.apache.gravitino.policy.Policy
Policy.AssociatedObjects, Policy.BuiltInType
-
Field Summary
Fields inherited from interface org.apache.gravitino.policy.Policy
BUILT_IN_TYPE_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyDTO.Builder
builder()
comment()
Get the comment of the policy.content()
Get the content of the policy.boolean
enabled()
Whether the policy is enabled or not.boolean
int
hashCode()
Check if the policy is inherited from a parent object or not.name()
Get the name of the policy.Get the type of the policy.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.policy.Policy
associatedObjects
-
Method Details
-
equals
-
hashCode
public int hashCode() -
builder
- Returns:
- a new builder for constructing a PolicyDTO.
-
name
Description copied from interface:Policy
Get the name of the policy. -
policyType
Description copied from interface:Policy
Get the type of the policy.- Specified by:
policyType
in interfacePolicy
- Returns:
- The type of the policy.
-
comment
Description copied from interface:Policy
Get the comment of the policy. -
enabled
public boolean enabled()Description copied from interface:Policy
Whether the policy is enabled or not. -
content
Description copied from interface:Policy
Get the content of the policy. -
inherited
Description copied from interface:Policy
Check if the policy is inherited from a parent object or not.Note: The return value is optional, Only when the policy is associated with a metadata object, and called from the metadata object, the return value will be present. Otherwise, it will be empty.
-
auditInfo
-