public interface AdService extends CRUDService<BasicAdDTO,AdDetailsData,AdDataParams>
| Modifier and Type | Method and Description |
|---|---|
void |
approve(@NotNull BasicAdVO adVO)
Approves the publication of an advertisement in status
AdStatus.PENDING. |
FileInfo |
exportAd(ExportFormatVO format,
BasicAdVO adVO)
Exports the given advertisement to file
|
AdSearchData |
getAdSearchData(AdType type,
boolean overBrokeredUsers)
Returns data for searching advertisements
|
UserAdsSearchData |
getUserAdsSearchData(@NotNull UserLocatorVO locator,
AdType type)
Returns data for searching advertisements
|
AdViewData |
getViewData(@NotNull BasicAdVO adVO)
Returns data for viewing details of an advertisement
|
BasicAdVO |
loadVO(@NotNull BasicAdVO adVO)
Loads a VO, by id
|
void |
reject(@NotNull BasicAdVO adVO,
java.lang.String comments)
Rejects the publication of an advertisement in status
AdStatus.PENDING. |
Page<BasicAdVO> |
search(@NotNull BasicAdQuery params)
Searches for advertisements, according to the given query parameters
|
void |
setAsDraft(@NotNull BasicAdVO adVO,
java.lang.String comments)
Sets the ad back to draft status.
|
void |
setHidden(@NotNull BasicAdVO adVO,
boolean hidden)
Hides or unhides the ad according to given hidden parameter.
|
void |
submitForAuthorization(@NotNull BasicAdVO adVO)
Submits the given ad for authorization.
|
getData, getDataForNew, load, remove, removeAll, savevoid approve(@NotNull
@NotNull BasicAdVO adVO)
throws FrameworkException
AdStatus.PENDING.
The new status will be AdStatus.ACTIVE.FrameworkExceptionFileInfo exportAd(ExportFormatVO format, BasicAdVO adVO) throws FrameworkException
FrameworkExceptionAdSearchData getAdSearchData(AdType type, boolean overBrokeredUsers) throws FrameworkException
FrameworkExceptionUserAdsSearchData getUserAdsSearchData(@NotNull @NotNull UserLocatorVO locator, AdType type) throws FrameworkException
FrameworkExceptionAdViewData getViewData(@NotNull @NotNull BasicAdVO adVO) throws FrameworkException
FrameworkExceptionBasicAdVO loadVO(@NotNull @NotNull BasicAdVO adVO) throws FrameworkException
FrameworkExceptionvoid reject(@NotNull
@NotNull BasicAdVO adVO,
java.lang.String comments)
throws FrameworkException
AdStatus.PENDING.
The new status will be AdStatus.DRAFT.FrameworkExceptionPage<BasicAdVO> search(@NotNull @NotNull BasicAdQuery params) throws FrameworkException, QueryParseException
void setAsDraft(@NotNull
@NotNull BasicAdVO adVO,
java.lang.String comments)
void setHidden(@NotNull
@NotNull BasicAdVO adVO,
boolean hidden)
void submitForAuthorization(@NotNull
@NotNull BasicAdVO adVO)
AdStatus.PENDING status.
This is used only by the REST services but we should refactor the marketplace module too to use actions instead
of save the ad each time the status changes.