@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
For the
answer parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message. |
java.lang.Long |
ask(BasicAdVO adVO,
java.lang.String question)
Creates a new question for the given ad
For the
question parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message. |
java.util.List<AdQuestionVO> |
list(BasicAdVO adVO)
Returns the questions for the given ad
|
AdQuestionVO |
load(java.lang.Long id)
Loads a question by id.
Only if the logged user can ask for or it's the owner of the related advertisement. |
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, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updatepublic void answer(java.lang.Long id,
java.lang.String answer)
throws FrameworkException,
IllegalActionException
AdQuestionServiceanswer parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message.answer in interface AdQuestionServiceIllegalActionException - If the given question was already answeredFrameworkExceptionpublic java.lang.Long ask(BasicAdVO adVO, java.lang.String question) throws FrameworkException
AdQuestionServicequestion parameter we don't use the ValidationApi because it is validated in the service
implementation to allow send a properly validation message.ask in interface AdQuestionServiceFrameworkExceptionpublic java.util.List<AdQuestionVO> list(BasicAdVO adVO)
AdQuestionServicelist in interface AdQuestionServicepublic AdQuestionVO load(java.lang.Long id) throws FrameworkException
AdQuestionServiceload in interface AdQuestionServiceFrameworkExceptionpublic 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