Package org.cyclos.impl.users
Interface BrokeringServiceLocal
-
- All Superinterfaces:
BrokeringService,Service
- All Known Implementing Classes:
BrokeringServiceImpl
public interface BrokeringServiceLocal extends BrokeringService
Local interface forBrokeringService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongaddBroker(User user, User broker, boolean mainBroker, boolean notifyBroker)Adds a brokering relationBrokeringgetActiveBrokering(User user, User broker)Returns the active brokering for the given user and broker, or throwsEntityNotFoundExceptionif not his broker or the relation has expiredvoidremoveAll(User userOrBroker)Removes all brokerings relations in which the given user is either the broker or a the membervoidremoveBroker(User user, User broker)Removes a brokering relation-
Methods inherited from interface org.cyclos.services.users.BrokeringService
addBroker, getAddBrokerData, getByUserAndBroker, getData, removeBroker, setMainBroker
-
-
-
-
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 throwsEntityNotFoundExceptionif 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
-
-