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
      • removeAll

        void removeAll​(User userOrBroker)
        Removes all brokerings relations in which the given user is either the broker or a the member
      • 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