Package com.apama.dashboard.security
Interface IScenarioAuthority
-
public interface IScenarioAuthority
An IScenarioAuthority authorizes users for viewing, editing, deleting, and creating scenarios. Implementations can use the user credentials to provide discrete access control for individual scenarios and instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canCreate(IUserCredentials credentials, IScenarioDefinition scenario)
Test if a user has rights to create a scenario instance.boolean
canDelete(IUserCredentials credentials, IScenarioInstance instance)
Test if a user has rights to delete a scenario instance.boolean
canEdit(IUserCredentials credentials, IScenarioInstance instance)
Test if a user has rights to edit a scenario instance.boolean
canView(IUserCredentials credentials, IScenarioInstance instance)
Test if a user has rights to view a scenario instance.
-
-
-
Method Detail
-
canView
boolean canView(IUserCredentials credentials, IScenarioInstance instance)
Test if a user has rights to view a scenario instance.- Parameters:
credentials
- Credentials of userinstance
- Scenario instance- Returns:
- true if allowed, false otherwise
-
canEdit
boolean canEdit(IUserCredentials credentials, IScenarioInstance instance)
Test if a user has rights to edit a scenario instance.- Parameters:
credentials
- Credentials of userinstance
- Scenario instance- Returns:
- true if allowed, false otherwise
-
canDelete
boolean canDelete(IUserCredentials credentials, IScenarioInstance instance)
Test if a user has rights to delete a scenario instance.- Parameters:
credentials
- Credentials of userinstance
- Scenario instance- Returns:
- true if allowed, false otherwise
-
canCreate
boolean canCreate(IUserCredentials credentials, IScenarioDefinition scenario)
Test if a user has rights to create a scenario instance.- Parameters:
credentials
- Credentials of userscenario
- Scenario definition- Returns:
- true if allowed, false otherwise
-
-