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) throws FrameworkException, IllegalActionException
IllegalActionException - When the given broker is either inactive or is not a brokerFrameworkExceptionBrokering getActiveBrokering(User user, User broker) throws FrameworkException
EntityNotFoundException if not his broker or the relation has
expiredFrameworkExceptionvoid removeAllBrokeringsOfBroker(User broker) throws FrameworkException
broker - the broker of whom all brokerings are to be removed.FrameworkExceptionvoid removeBroker(User user, User broker) throws FrameworkException, IllegalActionException
IllegalActionException - When the given broker is not a broker of the given userFrameworkException