Class ShadowRoleManager

    • Field Detail

      • roleManager

        @RealObject
        protected RoleManager roleManager
    • Constructor Detail

      • ShadowRoleManager

        public ShadowRoleManager()
    • Method Detail

      • isRoleHeld

        @Implementation
        public boolean isRoleHeld​(@NonNull
                                  String roleName)
        Check whether the calling application is holding a particular role.

        Callers can add held roles via addHeldRole(String)

        Parameters:
        roleName - the name of the role to check for
        Returns:
        whether the calling application is holding the role
      • removeHeldRole

        public void removeHeldRole​(@NonNull
                                   String roleName)