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 Detail

      • canView

        boolean canView​(IUserCredentials credentials,
                        IScenarioInstance instance)
        Test if a user has rights to view a scenario instance.
        Parameters:
        credentials - Credentials of user
        instance - 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 user
        instance - 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 user
        instance - 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 user
        scenario - Scenario definition
        Returns:
        true if allowed, false otherwise