Package org.cyclos.impl.users
Interface BrokeringServiceLocal
-
- All Superinterfaces:
BrokeringService,Service
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 expiredList<Long>listBrokeredIds(User broker)Returns the ids of all users whose the given user is a brokervoidremoveAllBrokered(User broker)Removes all brokerings relations in which the given user is the brokervoidremoveBroker(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
-
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
-
-