Package org.cyclos.impl.marketplace
Interface AdDeliveryMethodServiceLocal
-
- All Superinterfaces:
AdDeliveryMethodService,CRUDService<AdDeliveryMethodDTO,AdDeliveryMethodData,UserLocatorVO>,CRUDServiceLocal<AdDeliveryMethod,AdDeliveryMethodDTO,AdDeliveryMethodData,UserLocatorVO>,Service
public interface AdDeliveryMethodServiceLocal extends CRUDServiceLocal<AdDeliveryMethod,AdDeliveryMethodDTO,AdDeliveryMethodData,UserLocatorVO>, AdDeliveryMethodService
Local interface forAdDeliveryMethodService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdisableNotInCurrencies(User user, Collection<Currency> currencies)Disables all the delivery methods for the given user which are not related to the given currenciesList<AdDeliveryMethod>listAllowed(User user)Returns all allowed delivery methods from the given user, or the logged user when null, excluding disabled and removed from owner delivery methodsList<AdDeliveryMethodVO>listMineByCurrency(Currency currency)Returns user's delivery methods for this currency.voidremoveAll(User user)Removes all delivery methods of the specified user.-
Methods inherited from interface org.cyclos.services.marketplace.AdDeliveryMethodService
getListData, list
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Method Detail
-
disableNotInCurrencies
int disableNotInCurrencies(User user, Collection<Currency> currencies)
Disables all the delivery methods for the given user which are not related to the given currencies
-
listAllowed
List<AdDeliveryMethod> listAllowed(User user)
Returns all allowed delivery methods from the given user, or the logged user when null, excluding disabled and removed from owner delivery methods
-
listMineByCurrency
List<AdDeliveryMethodVO> listMineByCurrency(Currency currency)
Returns user's delivery methods for this currency. Only delivery methods with defaultOption field enable will be returned.
-
removeAll
void removeAll(User user)
Removes all delivery methods of the specified user.
-
-