Package org.cyclos.impl.banking
Class TransactionCustomFieldServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<CF,A,DTO,D,DP>
-
- org.cyclos.impl.system.BaseCustomFieldServiceImpl<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,QTransactionCustomField,TransactionCustomFieldDTO,TransactionCustomFieldData,Void>
-
- org.cyclos.impl.banking.TransactionCustomFieldServiceImpl
-
- All Implemented Interfaces:
TransactionCustomFieldServiceLocal,CRUDServiceLocal<TransactionCustomField,TransactionCustomFieldDTO,TransactionCustomFieldData,Void>,TransactionCustomFieldService,CRUDService<TransactionCustomFieldDTO,TransactionCustomFieldData,Void>,CRUDWithConfirmationPasswordService<TransactionCustomFieldDTO,TransactionCustomFieldData,Void>,Service,BaseCustomFieldService<TransactionCustomFieldDTO,TransactionCustomFieldData,Void>
@Service public class TransactionCustomFieldServiceImpl extends BaseCustomFieldServiceImpl<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,QTransactionCustomField,TransactionCustomFieldDTO,TransactionCustomFieldData,Void> implements TransactionCustomFieldServiceLocal
Service implementation for transaction custom fields
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.system.BaseCustomFieldServiceImpl
customFieldValueHandler, customScriptService, dataClass
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, dtoClass, entityClass, extensionPointService, idPath, internalNamePath, namePath, ownerEntityIdPath, ownerEntityPath, ownerEntityPropertyName, passwordHandler, richTextHandler, withConfirmationPassword
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, 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 TransactionCustomFieldServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRelation(TransferTypeVO transferTypeVO, CustomFieldVO customFieldVO)Relates the given transfer type with the given custom fieldprotected IntegergetMaxOrder(TransactionCustomField field)Should be implemented in order to return the maximum order number for fields like the given oneprotected BaseCustomFieldPossibleValueCategoryServiceLocal<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue>getPossibleValueCategoryService()Must be implemented in order to return the corresponding category serviceprotected TransactionCustomFieldPossibleValueServiceLocalgetPossibleValueService()Must be implemented in order to return the corresponding possible value serviceprotected List<Class<?>>getPropertyClasses()May be overridden in order to return a list of classes to apply internal name property validationsprotected booleanisBinaryTypesAllowed()Indicates whether this custom field nature allows binary typesList<TransactionCustomFieldDetailedVO>list()Lists all transaction custom fields with detailed informationList<TransactionCustomField>listAll()Returns all custom fieldsList<CustomFieldVO>listAllRelated(TransferTypeVO transferTypeVO)Returns all the custom fields which are related to the given transfer typeList<TransactionCustomField>listRelated(TransferType transferType)Returns the custom fields which are related to the given transfer type and visible by the logged user.List<CustomFieldVO>listRelated(TransferTypeVO transferTypeVO)Returns the custom fields which are visible (according to the products) and related to the given transfer typeList<TransactionCustomField>listVisible(AccountOwner owner)Returns the custom fields which are related to the current user over the given account ownerTransactionCustomFieldnewEntity(Void params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterRemove(TransactionCustomField entity)May be overridden in order to perform custom logic after removing an entityprotected voidonAfterSave(TransactionCustomField entity, TransactionCustomField currentCopy, Object dataFromOnBeforeSave)May be overridden in order to perform custom logic after saving an entityprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidremoveRelation(TransferTypeVO transferTypeVO, CustomFieldVO customFieldVO)Removes the given transfer type with the given custom field-
Methods inherited from class org.cyclos.impl.system.BaseCustomFieldServiceImpl
addCustomInternalNameValidations, addCustomValidations, getData, isEntityInternalNameRequired, onBeforeSave, resolveValidator, supportsValues, toDetailedVOs, toDTO
-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isNameRequired, load, logEntity, onBeforeRemove, preProcessCurrentCopy, remove, remove, removeAll, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveDTOType, resolveEntityType, resolveExtensionPointAccessor, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, subClassMappings, toEntity, validate
-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
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
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Method Detail
-
addRelation
public void addRelation(TransferTypeVO transferTypeVO, CustomFieldVO customFieldVO) throws EntityNotFoundException
Description copied from interface:TransactionCustomFieldServiceRelates the given transfer type with the given custom field- Specified by:
addRelationin interfaceTransactionCustomFieldService- Throws:
EntityNotFoundException
-
list
public List<TransactionCustomFieldDetailedVO> list()
Description copied from interface:TransactionCustomFieldServiceLists all transaction custom fields with detailed information- Specified by:
listin interfaceTransactionCustomFieldService
-
listAll
public List<TransactionCustomField> listAll()
Description copied from interface:TransactionCustomFieldServiceLocalReturns all custom fields- Specified by:
listAllin interfaceTransactionCustomFieldServiceLocal
-
listAllRelated
public List<CustomFieldVO> listAllRelated(TransferTypeVO transferTypeVO) throws EntityNotFoundException
Description copied from interface:TransactionCustomFieldServiceReturns all the custom fields which are related to the given transfer type- Specified by:
listAllRelatedin interfaceTransactionCustomFieldService- Throws:
EntityNotFoundException
-
listRelated
public List<TransactionCustomField> listRelated(TransferType transferType)
Description copied from interface:TransactionCustomFieldServiceLocalReturns the custom fields which are related to the given transfer type and visible by the logged user.- Specified by:
listRelatedin interfaceTransactionCustomFieldServiceLocal
-
listRelated
public List<CustomFieldVO> listRelated(TransferTypeVO transferTypeVO) throws EntityNotFoundException
Description copied from interface:TransactionCustomFieldServiceReturns the custom fields which are visible (according to the products) and related to the given transfer type- Specified by:
listRelatedin interfaceTransactionCustomFieldService- Throws:
EntityNotFoundException
-
listVisible
public List<TransactionCustomField> listVisible(AccountOwner owner) throws FrameworkException
Description copied from interface:TransactionCustomFieldServiceLocalReturns the custom fields which are related to the current user over the given account owner- Specified by:
listVisiblein interfaceTransactionCustomFieldServiceLocal- Throws:
FrameworkException
-
newEntity
public TransactionCustomField newEntity(Void params)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<TransactionCustomField,TransactionCustomFieldDTO,TransactionCustomFieldData,Void>- Specified by:
newEntityin classCRUDServiceImpl<TransactionCustomField,QTransactionCustomField,TransactionCustomFieldDTO,TransactionCustomFieldData,Void>
-
removeRelation
public void removeRelation(TransferTypeVO transferTypeVO, CustomFieldVO customFieldVO) throws EntityNotFoundException
Description copied from interface:TransactionCustomFieldServiceRemoves the given transfer type with the given custom field- Specified by:
removeRelationin interfaceTransactionCustomFieldService- Throws:
EntityNotFoundException
-
getMaxOrder
protected Integer getMaxOrder(TransactionCustomField field)
Description copied from class:BaseCustomFieldServiceImplShould be implemented in order to return the maximum order number for fields like the given one
-
getPossibleValueCategoryService
protected BaseCustomFieldPossibleValueCategoryServiceLocal<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue> getPossibleValueCategoryService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding category service
-
getPossibleValueService
protected TransactionCustomFieldPossibleValueServiceLocal getPossibleValueService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding possible value service
-
getPropertyClasses
protected List<Class<?>> getPropertyClasses()
Description copied from class:BaseCustomFieldServiceImplMay be overridden in order to return a list of classes to apply internal name property validations
-
isBinaryTypesAllowed
protected boolean isBinaryTypesAllowed()
Description copied from class:BaseCustomFieldServiceImplIndicates whether this custom field nature allows binary types
-
onAfterRemove
protected void onAfterRemove(TransactionCustomField entity)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after removing an entity
-
onAfterSave
protected void onAfterSave(TransactionCustomField entity, TransactionCustomField currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-