Package org.cyclos.security.banking
Class VoucherTypeServiceSecurity
- 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<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO>
-
- org.cyclos.security.banking.VoucherTypeServiceSecurity
-
- All Implemented Interfaces:
VoucherTypeService,CRUDService<VoucherTypeDTO,VoucherTypeData,ConfigurationVO>,CRUDWithConfirmationPasswordService<VoucherTypeDTO,VoucherTypeData,ConfigurationVO>,Service
@Security public class VoucherTypeServiceSecurity extends ConfigurationEntityCRUDServiceSecurity<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO> implements VoucherTypeService
Security layer forVoucherTypeService
-
-
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 VoucherTypeServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCreateNew(ConfigurationVO configurationVO)Checks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif notprotected voidcustomizeData(VoucherTypeData data)Can be overridden in order to process the returned data object for the given entityprotected booleandoHasManageAccess(VoucherType type)Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given operationbooleandoHasViewAccess(VoucherType type)Should be implemented in order to return whether the caller is allowed to view the given entity.protected CRUDServiceLocal<VoucherType,VoucherTypeDTO,VoucherTypeData,ConfigurationVO>getImplementation()Should be implemented in order to return the actual implementation of the serviceVoucherTypeListDatagetListData()Returns data for listing voucher typesList<VoucherTypeVO>list()Returns a list with all voucher types-
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(VoucherType type)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to view the given entity.- Specified by:
doHasViewAccessin classCRUDServiceSecurity<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO>
-
getListData
public VoucherTypeListData getListData() throws FrameworkException
Description copied from interface:VoucherTypeServiceReturns data for listing voucher types- Specified by:
getListDatain interfaceVoucherTypeService- Throws:
FrameworkException
-
list
public List<VoucherTypeVO> list() throws FrameworkException
Description copied from interface:VoucherTypeServiceReturns a list with all voucher types- Specified by:
listin interfaceVoucherTypeService- Throws:
FrameworkException
-
checkCreateNew
protected void checkCreateNew(ConfigurationVO configurationVO)
Description copied from class:CRUDServiceSecurityChecks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif not- Specified by:
checkCreateNewin classCRUDServiceSecurity<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO>
-
customizeData
protected void customizeData(VoucherTypeData data)
Description copied from class:CRUDServiceSecurityCan be overridden in order to process the returned data object for the given entity- Overrides:
customizeDatain classCRUDServiceSecurity<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO>
-
doHasManageAccess
protected boolean doHasManageAccess(VoucherType type)
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- Specified by:
doHasManageAccessin classCRUDServiceSecurity<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO>
-
getImplementation
protected CRUDServiceLocal<VoucherType,VoucherTypeDTO,VoucherTypeData,ConfigurationVO> getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service- Specified by:
getImplementationin classCRUDServiceSecurity<VoucherTypeDTO,VoucherType,VoucherTypeData,ConfigurationVO>
-
-