Interface AnoSiteAccessAPI

  • All Superinterfaces:
    net.anotheria.anoplass.api.API
    All Known Implementing Classes:
    AnoSiteAccessAPIImpl

    public interface AnoSiteAccessAPI
    extends net.anotheria.anoplass.api.API
    API for validate current user access to requested Page, Box, Action, Wizard, etc.
    Author:
    Alexandr Bolbat
    • Method Detail

      • isAllowedForPage

        boolean isAllowedForPage​(String pageId)
                          throws AnoSiteAccessAPIException
        Validate access for given page. If access operation not configured for given page this validation return true.
        Parameters:
        pageId - - given page it
        Returns:
        true if have access or false
        Throws:
        AnoSiteAccessAPIException - TODO dummy comment for javadoc.
      • isAllowedForBox

        boolean isAllowedForBox​(String boxId)
                         throws AnoSiteAccessAPIException
        Validate access for given box. If access operation not configured for given box this validation return true.
        Parameters:
        boxId - - given box it
        Returns:
        true if have access or false
        Throws:
        AnoSiteAccessAPIException - TODO dummy comment for javadoc.
      • isAllowedForNaviItem

        boolean isAllowedForNaviItem​(String naviItemId)
                              throws AnoSiteAccessAPIException
        Validate access for given navigation item. If access operation not configured for given navigation item this validation return true.
        Parameters:
        naviItemId - given navigation item it
        Returns:
        true if have access or false
        Throws:
        AnoSiteAccessAPIException - TODO dummy comment for javadoc.
      • isAllowedForAction

        boolean isAllowedForAction​(String actionId)
                            throws AnoSiteAccessAPIException
        Validate access for given action. If access operation not configured for given action this validation return true.
        Parameters:
        actionId - - given action it
        Returns:
        true if have access or false
        Throws:
        AnoSiteAccessAPIException - TODO dummy comment for javadoc.
      • isAllowedForWizard

        boolean isAllowedForWizard​(String wizardId)
                            throws AnoSiteAccessAPIException
        Validate access for given wizard. If access operation not configured for given wizard this validation return true.
        Parameters:
        wizardId - given wizard it.
        Returns:
        true if have access or false
        Throws:
        AnoSiteAccessAPIException - TODO dummy comment for javadoc.