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
|
int |
disableNotInCurrencies(User user,
java.util.Collection<Currency> currencies)
Disables all the ads for the given user which are not related to the given currencies
|
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(AdType type,
User owner)
Returns true if the logged user has can manage ads of the given type and user.
|
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)
Returns true if the logged user has manage access to the ad with the given conditions
|
java.util.List<org.cyclos.server.model.contentmanagement.contentitems.SitemapItemVO> |
listForSitemap()
Returns the sitemap entries for all enabled advertisements in this network
|
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)
int disableNotInCurrencies(User user, java.util.Collection<Currency> currencies)
java.lang.Integer getAdvertisementsCount(User user, AdType type)
java.util.Set<AdCategoryVO> getCategories(java.lang.Long adId)
boolean hasManageAccess(AdType type, User owner)
boolean hasManageAccess(BasicAd ad)
boolean hasManageAccess(java.util.Date deletedDate,
AdStatus status,
AdStatus persistedStatus,
AdType type,
User owner)
java.util.List<org.cyclos.server.model.contentmanagement.contentitems.SitemapItemVO> listForSitemap()
void removeAll(UserVO user)