Interface RequiredPermission
-
public interface RequiredPermission
Returned when checking privileges. IfisAllowed()
returnsfalse
, it will contain the privilege needed and the original entity that requires this privilege.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.redwood.scheduler.api.model.SchedulerEntity
getEntity()
String
getPrivilege()
boolean
isAllowed()
-
-
-
Method Detail
-
isAllowed
boolean isAllowed()
- Returns:
- Returns a boolean indicating whether the required permission is available.
-
getPrivilege
String getPrivilege()
- Returns:
- Returns the missing privilege.
-
getEntity
com.redwood.scheduler.api.model.SchedulerEntity getEntity()
- Returns:
- Returns the entity (cause that was created/updated etc).
-
-