Interface PermissionsBuilderDelegate
-
public interface PermissionsBuilderDelegateThis class is internally used by thePermissionsBuilderto create permissions. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Permissionsbuild()Creates aPermissionsinstance with the given values.PermissionStategetState(PermissionType type)Gets the state of the given type.voidsetState(PermissionType type, PermissionState state)Sets the new state of the given type.
-
-
-
Method Detail
-
setState
void setState(PermissionType type, PermissionState state)
Sets the new state of the given type.- Parameters:
type- The type to change.state- The state to set.
-
getState
PermissionState getState(PermissionType type)
Gets the state of the given type.- Parameters:
type- The type to check.- Returns:
- The state of the given type.
-
build
Permissions build()
Creates aPermissionsinstance with the given values.- Returns:
- The created permissions instance.
-
-