Interface BrokeringServiceLocal

    • Method Detail

      • addBroker

        Long addBroker​(User user,
                       User broker,
                       boolean mainBroker,
                       boolean notifyBroker)
        Adds a brokering relation
        Throws:
        IllegalActionException - When the given broker is either inactive or is not a broker
      • getActiveBrokering

        Brokering getActiveBrokering​(User user,
                                     User broker)
        Returns the active brokering for the given user and broker, or throws EntityNotFoundException if not his broker or the relation has expired
      • listBrokeredIds

        List<Long> listBrokeredIds​(User broker)
        Returns the ids of all users whose the given user is a broker
      • removeAllBrokered

        void removeAllBrokered​(User broker)
        Removes all brokerings relations in which the given user is the broker
      • removeBroker

        void removeBroker​(User user,
                          User broker)
        Removes a brokering relation
        Throws:
        IllegalActionException - When the given broker is not a broker of the given user