@Security public class AdQuestionServiceSecurity extends BaseServiceSecurity implements AdQuestionService
AdQuestionService| Constructor and Description |
|---|
AdQuestionServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
answer(java.lang.Long id,
java.lang.String answer)
Saves the answer for the given question
|
java.lang.Long |
ask(java.lang.Long adId,
java.lang.String question)
Creates a new question for the given ad
|
java.util.List<AdQuestionVO> |
list(java.lang.Long adId)
Returns the questions for the given ad
|
void |
remove(java.lang.Long id)
Removes a question
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
Page<AdQuestionVO> |
search(AdQuestionQuery params)
Searches for questions
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic void answer(java.lang.Long id,
java.lang.String answer)
throws FrameworkException,
IllegalActionException
AdQuestionServiceanswer in interface AdQuestionServiceIllegalActionException - If the given question was already answeredFrameworkExceptionpublic java.lang.Long ask(java.lang.Long adId,
java.lang.String question)
throws FrameworkException
AdQuestionServiceask in interface AdQuestionServiceFrameworkExceptionpublic java.util.List<AdQuestionVO> list(java.lang.Long adId)
AdQuestionServicelist in interface AdQuestionServicepublic void remove(java.lang.Long id)
throws FrameworkException
AdQuestionServiceremove in interface AdQuestionServiceFrameworkExceptionpublic Page<AdQuestionVO> search(AdQuestionQuery params)
AdQuestionServicesearch in interface AdQuestionServiceprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity