Package org.cyclos.services.users
Interface BrokeringService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
BrokeringServiceLocal
public interface BrokeringService extends Service
Service interface for brokering
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongaddBroker(@NotNull UserLocatorVO userLocator, @NotNull UserLocatorVO brokerLocator, boolean mainBroker)Adds a broker for the given user, optionally setting the broker as mainAddBrokerDatagetAddBrokerData(@NotNull UserLocatorVO locator)Returns data for adding a broker to the given userBrokeringWithUserVOgetByUserAndBroker(@NotNull UserLocatorVO userLocator, @NotNull UserLocatorVO brokerLocator)Returns details of a brokering relation by user and broker, only if the broker is currently the user's brokerBrokeringDatagetData(@NotNull UserLocatorVO locator)Returns data for a user brokeringsvoidremoveBroker(@NotNull UserLocatorVO userLocator, @NotNull UserLocatorVO brokerLocator)Removes the given broker from the user brokeringsvoidsetMainBroker(@NotNull UserLocatorVO userLocator, @NotNull UserLocatorVO brokerLocator)Assigns the given brokering as main
-
-
-
Method Detail
-
addBroker
Long addBroker(@NotNull @NotNull UserLocatorVO userLocator, @NotNull @NotNull UserLocatorVO brokerLocator, boolean mainBroker) throws FrameworkException
Adds a broker for the given user, optionally setting the broker as main- Throws:
IllegalActionException- When the given broker is either inactive or is not a brokerFrameworkException
-
getAddBrokerData
AddBrokerData getAddBrokerData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Returns data for adding a broker to the given user- Throws:
FrameworkException
-
getByUserAndBroker
BrokeringWithUserVO getByUserAndBroker(@NotNull @NotNull UserLocatorVO userLocator, @NotNull @NotNull UserLocatorVO brokerLocator) throws FrameworkException
Returns details of a brokering relation by user and broker, only if the broker is currently the user's broker- Throws:
FrameworkException
-
getData
BrokeringData getData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Returns data for a user brokerings- Throws:
FrameworkException
-
removeBroker
void removeBroker(@NotNull @NotNull UserLocatorVO userLocator, @NotNull @NotNull UserLocatorVO brokerLocator) throws FrameworkExceptionRemoves the given broker from the user brokerings- Throws:
IllegalActionException- When the given broker is not a broker of the given userFrameworkException
-
setMainBroker
void setMainBroker(@NotNull @NotNull UserLocatorVO userLocator, @NotNull @NotNull UserLocatorVO brokerLocator) throws FrameworkExceptionAssigns the given brokering as main- Throws:
IllegalActionException- When the given broker is not a broker of the given userFrameworkException
-
-