@Security public class PhoneServiceSecurity extends CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams> implements PhoneService
PhoneServiceentityClass| Constructor and Description |
|---|
PhoneServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(PhoneDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
void |
disableForSms(java.lang.Long id,
java.lang.String confirmationPassword)
Disables the given mobile phone to operate via SMS
|
boolean |
doHasManageAccess(Phone phone)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(Phone phone)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
void |
enableForSms(java.lang.Long id)
Enables the given mobile phone to operate via SMS
|
PasswordInputDTO |
getConfirmationPasswordInputForDisableSms(java.lang.Long id)
Returns data for the confirmation password needed to disable a phone by sms
|
protected PhoneServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
PhoneListData |
getPhoneListData(UserLocatorVO locator)
Returns data containing all phones belonging to the given user
|
boolean |
isAccessible(SessionData sessionData,
Phone entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
PhoneVO |
loadByNumber(java.lang.String number)
Returns a mobile phone by number, making sure it is visible
|
protected void |
onBeforeSave(PhoneDTO dto,
Phone phone) |
java.lang.String |
sendVerificationCode(java.lang.Long id)
Sends a verification code to a mobile phone via SMS.
|
CodeVerificationStatus |
verify(java.lang.Long id,
java.lang.String verificationCode)
Verifies a mobile phone with a code received via SMS.
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savepublic void disableForSms(java.lang.Long id,
java.lang.String confirmationPassword)
throws FrameworkException
PhoneServicedisableForSms in interface PhoneServiceFrameworkExceptionpublic boolean doHasManageAccess(Phone phone)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams>public boolean doHasViewAccess(Phone phone)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams>public void enableForSms(java.lang.Long id)
throws FrameworkException
PhoneServiceenableForSms in interface PhoneServiceFrameworkExceptionpublic PasswordInputDTO getConfirmationPasswordInputForDisableSms(java.lang.Long id) throws FrameworkException
PhoneServicegetConfirmationPasswordInputForDisableSms in interface PhoneServiceFrameworkExceptionpublic PhoneListData getPhoneListData(UserLocatorVO locator)
PhoneServicegetPhoneListData in interface PhoneServicepublic boolean isAccessible(SessionData sessionData, Phone entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams>public PhoneVO loadByNumber(java.lang.String number) throws FrameworkException
PhoneServiceloadByNumber in interface PhoneServiceFrameworkExceptionpublic java.lang.String sendVerificationCode(java.lang.Long id)
throws FrameworkException
PhoneServicesendVerificationCode in interface PhoneServiceIllegalActionException - If the mobile phone is already verifiedFrameworkExceptionpublic CodeVerificationStatus verify(java.lang.Long id, java.lang.String verificationCode) throws FrameworkException
PhoneServiceverify in interface PhoneServiceFrameworkExceptionprotected void checkCreateNew(PhoneDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams>protected PhoneServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams>protected void onBeforeSave(PhoneDTO dto, Phone phone)
onBeforeSave in class CRUDServiceSecurity<PhoneDTO,Phone,PhoneData,PhoneDataParams>