Package org.cyclos.security.banking
Class VoucherCustomFieldServiceSecurity
- 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<DTO,CF,D,DP>
-
- org.cyclos.security.system.BaseCustomFieldServiceSecurity<DTO,CF,C,PV,D,DP>
-
- org.cyclos.security.system.BaseSimpleCustomFieldServiceSecurity<VoucherCustomFieldDTO,VoucherCustomField,VoucherCustomFieldPossibleValueCategory,VoucherCustomFieldPossibleValue,VoucherCustomFieldData,Void>
-
- org.cyclos.security.banking.VoucherCustomFieldServiceSecurity
-
- All Implemented Interfaces:
VoucherCustomFieldService,CRUDService<VoucherCustomFieldDTO,VoucherCustomFieldData,Void>,CRUDWithConfirmationPasswordService<VoucherCustomFieldDTO,VoucherCustomFieldData,Void>,Service,BaseCustomFieldService<VoucherCustomFieldDTO,VoucherCustomFieldData,Void>
@Security public class VoucherCustomFieldServiceSecurity extends BaseSimpleCustomFieldServiceSecurity<VoucherCustomFieldDTO,VoucherCustomField,VoucherCustomFieldPossibleValueCategory,VoucherCustomFieldPossibleValue,VoucherCustomFieldData,Void> implements VoucherCustomFieldService
Security forVoucherCustomFieldService
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.system.BaseSimpleCustomFieldServiceSecurity
managePermission, viewPermission
-
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 VoucherCustomFieldServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRelation(VoucherTypeVO transferTypeVO, CustomFieldVO customFieldVO)Relates the given voucher type with the given custom fieldprotected VoucherCustomFieldServiceLocalgetImplementation()Should be implemented in order to return the actual implementation of the serviceList<CustomFieldVO>list()Lists all voucher custom fields with detailed informationList<CustomFieldVO>listAllRelated(VoucherTypeVO transferTypeVO)Returns all the custom fields which are related to the given voucher typeList<CustomFieldVO>listRelated(VoucherTypeVO transferTypeVO, UserVO userVO)Returns the custom fields which are visible (according to the products) and related to the given voucher typevoidremoveRelation(VoucherTypeVO transferTypeVO, CustomFieldVO customFieldVO)Removes the given voucher type with the given custom field-
Methods inherited from class org.cyclos.security.system.BaseSimpleCustomFieldServiceSecurity
checkCreateNew, checkManagePermission, checkViewPermission, doHasManageAccess, doHasViewAccess, hasManagePermission, hasViewPermission
-
Methods inherited from class org.cyclos.security.system.BaseCustomFieldServiceSecurity
saveOrder
-
Methods inherited from class org.cyclos.security.ConfigurationEntityCRUDServiceSecurity
isAccessible
-
Methods inherited from class org.cyclos.security.CRUDServiceSecurity
canPerformOperation, canViewData, checkManageAccess, checkOperation, checkSave, checkViewAccess, customizeData, 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, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, 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.system.BaseCustomFieldService
saveOrder
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
addRelation
public void addRelation(VoucherTypeVO transferTypeVO, CustomFieldVO customFieldVO) throws EntityNotFoundException
Description copied from interface:VoucherCustomFieldServiceRelates the given voucher type with the given custom field- Specified by:
addRelationin interfaceVoucherCustomFieldService- Throws:
EntityNotFoundException
-
list
public List<CustomFieldVO> list()
Description copied from interface:VoucherCustomFieldServiceLists all voucher custom fields with detailed information- Specified by:
listin interfaceVoucherCustomFieldService
-
listAllRelated
public List<CustomFieldVO> listAllRelated(VoucherTypeVO transferTypeVO) throws FrameworkException
Description copied from interface:VoucherCustomFieldServiceReturns all the custom fields which are related to the given voucher type- Specified by:
listAllRelatedin interfaceVoucherCustomFieldService- Throws:
FrameworkException
-
listRelated
public List<CustomFieldVO> listRelated(VoucherTypeVO transferTypeVO, UserVO userVO) throws EntityNotFoundException
Description copied from interface:VoucherCustomFieldServiceReturns the custom fields which are visible (according to the products) and related to the given voucher type- Specified by:
listRelatedin interfaceVoucherCustomFieldService- Throws:
EntityNotFoundException
-
removeRelation
public void removeRelation(VoucherTypeVO transferTypeVO, CustomFieldVO customFieldVO) throws EntityNotFoundException
Description copied from interface:VoucherCustomFieldServiceRemoves the given voucher type with the given custom field- Specified by:
removeRelationin interfaceVoucherCustomFieldService- Throws:
EntityNotFoundException
-
getImplementation
protected VoucherCustomFieldServiceLocal getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service- Specified by:
getImplementationin classCRUDServiceSecurity<VoucherCustomFieldDTO,VoucherCustomField,VoucherCustomFieldData,Void>
-
-