Class GrantedPermissions.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<GrantedPermissions>
co.yellowdog.platform.model.GrantedPermissions.Builder
- Enclosing class:
GrantedPermissions
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.global
(Permission... permissions) permission
(Permission permission, GrantedPermissionScope scope) permissions
(Map<@NotNull Permission, @NotNull GrantedPermissionScope> permissions) toString()
withNamespaces
(Permission permission, NamespaceRef... namespaces) withNamespaces
(Permission permission, Set<NamespaceRef> namespaces) Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
global
-
withNamespaces
-
withNamespaces
public GrantedPermissions.Builder withNamespaces(Permission permission, Set<NamespaceRef> namespaces) -
permission
-
permissions
public GrantedPermissions.Builder permissions(Map<@NotNull Permission, @NotNull GrantedPermissionScope> permissions) - Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<GrantedPermissions>
- Returns:
- the object being built
-
toString
-