Interface PermissionsSetupEvent
-
- All Superinterfaces:
Event
- All Known Implementing Classes:
PermissionsSetupEventImpl
public interface PermissionsSetupEvent extends Event
Called when aPermissionSubject's permissions are being setup.This event is only called once per subject, on initialisation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PermissionFunctioncreateFunction(PermissionSubject subject)Uses the provider function to obtain aPermissionFunctionfor the subject.PermissionProviderprovider()voidsetProvider(@Nullable PermissionProvider provider)Sets thePermissionFunctionthat should be used for the subject.PermissionSubjectsubject()
-
-
-
Method Detail
-
subject
PermissionSubject subject()
-
createFunction
PermissionFunction createFunction(PermissionSubject subject)
Uses the provider function to obtain aPermissionFunctionfor the subject.- Parameters:
subject- the subject- Returns:
- the obtained permission function
-
provider
PermissionProvider provider()
-
setProvider
void setProvider(@Nullable PermissionProvider provider)
Sets thePermissionFunctionthat should be used for the subject.Specifying
nullwill reset the provider to the default instance given when the event was posted.- Parameters:
provider- the provider
-
-