Package org.silverpeas.components.yellowpages.servlets

## Class YellowpagesActionAccessController

- java.lang.Object
- - org.silverpeas.components.yellowpages.servlets.YellowpagesActionAccessController

-     public class YellowpagesActionAccessController
      extends Object

  Author:
    ebonnet

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `YellowpagesActionAccessController()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `hasRightAccess​(String action, org.silverpeas.core.admin.user.model.SilverpeasRole role)` | Check if user role has access right to the given action

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### YellowpagesActionAccessController

          public YellowpagesActionAccessController()

  - ### Method Detail

    - #### hasRightAccess

          public boolean hasRightAccess​(String action,
                                        org.silverpeas.core.admin.user.model.SilverpeasRole role)

      Check if user role has access right to the given action
      Parameters:
        `action` - the checked action
        `role` - the highest user role
      Returns:
        true if given role has access right to the action