public interface BrokeringServiceLocal extends BrokeringService
BrokeringService| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
addBroker(User user,
User broker,
boolean mainBroker,
boolean notifyBroker)
Adds a brokering relation
|
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 |
void |
removeAllBrokeringsOfBroker(User broker)
Removes all brokerings of a broker
|
void |
removeBroker(User user,
User broker)
Removes a brokering relation
|
addBroker, getAddBrokerData, getBrokeringLogs, getData, removeBroker, setMainBrokerjava.lang.Long addBroker(User user, User broker, boolean mainBroker, boolean notifyBroker)
IllegalActionException - When the given broker is either inactive or is not a brokerBrokering getActiveBrokering(User user, User broker)
EntityNotFoundException if not his
broker or the relation has
expiredvoid removeAllBrokeringsOfBroker(User broker)
broker - the broker of whom all brokerings are to be removed.void removeBroker(User user, User broker)
IllegalActionException - When the given broker is not a broker of the given user