public interface AdServiceLocal extends AdService, CRUDServiceLocal<BasicAd,BasicAdDTO,AdDetailsData,AdDataParams>
AdService| Modifier and Type | Method and Description |
|---|---|
boolean |
adRequiresAuthorization(BasicAd ad)
Returns true if the ad requires authorization
for publishing.
|
boolean |
canViewAddresses(User adOwner)
Returns if the given ad owner or a user manager can view addresses in an ad
|
boolean |
canViewAuthorizationNotes(BasicAd ad)
Returns true if the logged user can view the authorization notes of the given ad
|
boolean |
canViewPendings(AdType adType,
User owner,
boolean brokeredSearch)
Returns true if the logged user can view pending ads with the given restrictions
|
void |
disableForCurrency(User user,
Currency currency)
Disables all the ads for the given user and currency
|
java.lang.Integer |
getAdvertisementsCount(User user,
AdType type)
Counts the number of active ads given user and ad type
|
java.util.Set<AdCategoryVO> |
getCategories(java.lang.Long adId)
Returns the categories for the given Ad id
|
boolean |
hasManageAccess(BasicAd ad)
Returns true if the logged user has manage access to the ad
|
boolean |
hasManageAccess(java.util.Date deletedDate,
AdStatus status,
AdStatus persistedStatus,
AdType type,
User owner,
boolean isPersistent)
Returns true if the logged user has manage access to the ad with the given conditions
|
void |
removeAll(UserVO user)
Removes all the ads for the given user.
|
getAdSearchData, getUserAdsSearchData, getViewData, loadVO, search, setAsDraft, setHiddenfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveboolean adRequiresAuthorization(BasicAd ad)
boolean canViewAddresses(User adOwner)
boolean canViewAuthorizationNotes(BasicAd ad)
boolean canViewPendings(AdType adType, User owner, boolean brokeredSearch)
void disableForCurrency(User user, Currency currency)
java.lang.Integer getAdvertisementsCount(User user, AdType type)
java.util.Set<AdCategoryVO> getCategories(java.lang.Long adId)
boolean hasManageAccess(BasicAd ad)
boolean hasManageAccess(java.util.Date deletedDate,
AdStatus status,
AdStatus persistedStatus,
AdType type,
User owner,
boolean isPersistent)
void removeAll(UserVO user)