@Security public class CaptchaServiceSecurity extends BaseServiceSecurity implements CaptchaService
CaptchaService| Constructor and Description |
|---|
CaptchaServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
generate()
Generates a new captcha challenge, returning it's identifier
|
boolean |
isValid(java.lang.Long id,
java.lang.String text)
Returns whether the captcha challenge is valid
|
SerializableInputStream |
readImage(java.lang.Long id,
BasicGroupVO basicGroupVO)
Returns the image which corresponds to the given captcha id and using the background defined for the specified
group
|
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 |
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 java.lang.Long generate()
throws FrameworkException
CaptchaServicegenerate in interface CaptchaServiceFrameworkExceptionpublic boolean isValid(java.lang.Long id,
java.lang.String text)
throws FrameworkException
CaptchaServiceisValid in interface CaptchaServiceFrameworkExceptionpublic SerializableInputStream readImage(java.lang.Long id, BasicGroupVO basicGroupVO) throws FrameworkException
CaptchaServicereadImage in interface CaptchaServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity