Package org.cyclos.security.system
Class SmsOperationConfigurationServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.CRUDServiceSecurity<DTO,E,D,DP>
-
- org.cyclos.security.ConfigurationEntityCRUDServiceSecurity<SmsOperationConfigurationDTO,SmsOperationConfiguration,SmsOperationConfigurationData,SmsOperationConfigurationDataParams>
-
- org.cyclos.security.system.SmsOperationConfigurationServiceSecurity
-
- All Implemented Interfaces:
CRUDService<SmsOperationConfigurationDTO,SmsOperationConfigurationData,SmsOperationConfigurationDataParams>,CRUDWithConfirmationPasswordService<SmsOperationConfigurationDTO,SmsOperationConfigurationData,SmsOperationConfigurationDataParams>,Service,SmsOperationConfigurationService
@Security public class SmsOperationConfigurationServiceSecurity extends ConfigurationEntityCRUDServiceSecurity<SmsOperationConfigurationDTO,SmsOperationConfiguration,SmsOperationConfigurationData,SmsOperationConfigurationDataParams> implements SmsOperationConfigurationService
Security layer forSmsOperationConfigurationService
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.CRUDServiceSecurity
entityClass
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description SmsOperationConfigurationServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCreateNew(SmsOperationConfigurationDataParams params)Checks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif notprotected voidcustomizeData(SmsOperationConfigurationData data)Can be overridden in order to process the returned data object for the given entityprotected booleandoHasManageAccess(SmsOperationConfiguration entity)Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given operationbooleandoHasViewAccess(SmsOperationConfiguration entity)Should be implemented in order to return whether the caller is allowed to view the given entity.protected SmsOperationConfigurationServiceLocalgetImplementation()Should be implemented in order to return the actual implementation of the serviceSmsTextsListDatagetSmsTextsListData(Long smsChannelConfigurationId)Returns data for listing sms textsbooleanhasManageContent(SmsOperationConfiguration operation)List<SmsOperationConfigurationVO>listSmsTexts(Long smsChannelConfigurationId)Returns all sms text operation configurations for the given channel configuration-
Methods inherited from class org.cyclos.security.ConfigurationEntityCRUDServiceSecurity
isAccessible
-
Methods inherited from class org.cyclos.security.CRUDServiceSecurity
canPerformOperation, canViewData, checkManageAccess, checkOperation, checkSave, checkViewAccess, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, onBeforeSave, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPassword
-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, 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, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
doHasViewAccess
public boolean doHasViewAccess(SmsOperationConfiguration entity)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to view the given entity.
-
getSmsTextsListData
public SmsTextsListData getSmsTextsListData(Long smsChannelConfigurationId) throws FrameworkException
Description copied from interface:SmsOperationConfigurationServiceReturns data for listing sms texts- Specified by:
getSmsTextsListDatain interfaceSmsOperationConfigurationService- Throws:
FrameworkException
-
hasManageContent
public boolean hasManageContent(SmsOperationConfiguration operation)
-
listSmsTexts
public List<SmsOperationConfigurationVO> listSmsTexts(Long smsChannelConfigurationId) throws FrameworkException
Description copied from interface:SmsOperationConfigurationServiceReturns all sms text operation configurations for the given channel configuration- Specified by:
listSmsTextsin interfaceSmsOperationConfigurationService- Throws:
FrameworkException
-
checkCreateNew
protected void checkCreateNew(SmsOperationConfigurationDataParams params)
Description copied from class:CRUDServiceSecurityChecks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif not
-
customizeData
protected void customizeData(SmsOperationConfigurationData data)
Description copied from class:CRUDServiceSecurityCan be overridden in order to process the returned data object for the given entity
-
doHasManageAccess
protected boolean doHasManageAccess(SmsOperationConfiguration entity)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to manage the given entity, for the given operation
-
getImplementation
protected SmsOperationConfigurationServiceLocal getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service
-
-