Class SecurableObjectDTO.Builder
java.lang.Object
org.apache.gravitino.dto.authorization.SecurableObjectDTO.Builder
- Enclosing class:
- SecurableObjectDTO
Builder for
SecurableObjectDTO
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an instance of SecurableObjectDTO using the builder's properties.withFullName
(String fullName) Sets the full name of the securable object.withPrivileges
(PrivilegeDTO[] privileges) Sets the privileges of the securable object.withType
(MetadataObject.Type type) Sets the type of the securable object.
-
Method Details
-
withFullName
Sets the full name of the securable object.- Parameters:
fullName
- The full name of the securable object.- Returns:
- The builder instance.
-
withType
Sets the type of the securable object.- Parameters:
type
- The type of the securable object.- Returns:
- The builder instance.
-
withPrivileges
Sets the privileges of the securable object.- Parameters:
privileges
- The privileges of the securable object.- Returns:
- The builder instance.
-
build
Builds an instance of SecurableObjectDTO using the builder's properties.- Returns:
- An instance of SecurableObjectDTO.
- Throws:
IllegalArgumentException
- If the full name or type are not set.
-