Package org.cyclos.impl.banking
Class TransferStatusServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<TransferStatus,QTransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>
-
- org.cyclos.impl.banking.TransferStatusServiceImpl
-
- All Implemented Interfaces:
TransferStatusServiceLocal,CRUDServiceLocal<TransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>,TransferStatusService,CRUDService<TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>,CRUDWithConfirmationPasswordService<TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>,Service
@Service public class TransferStatusServiceImpl extends CRUDServiceImpl<TransferStatus,QTransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO> implements TransferStatusServiceLocal
Implementation forTransferStatusService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, cacheHandler, dtoClass, entityClass, idPath, internalNamePath, namePath, ownerEntityIdPath, ownerEntityPath, ownerEntityPropertyName, passwordHandler, richTextHandler, withConfirmationPassword
-
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
-
Fields inherited from interface org.cyclos.impl.banking.TransferStatusServiceLocal
ATTR_FLOW, ATTR_STATUS, ATTR_TRANSFER
-
-
Constructor Summary
Constructors Constructor Description TransferStatusServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeStatus(ChangeTransferStatusDTO params)Changes the status of the given transferprotected TransferStatusDatagetData(TransferStatus status)Returns details data for the given entityList<TransferStatusLog>getLog(Transfer transfer, TransferStatusFlow flow)Returns the log for the given transfer and flowList<TransferStatus>getPossibleNext(Transfer transfer, TransferStatusFlow flow)Returns the statuses which can be set as next for the given transfer / flowList<TransferStatusDetailedVO>list(TransferStatusFlowVO transferStatusFlowVO)Returns all transfer statuses in the given flowTransferStatusnewEntity(TransferStatusFlowVO transferStatusFlowVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected ValidatorresolveValidator(TransferStatusDTO dto)voidsetInitialStatuses(Transfer transfer)Sets the initial statuses for this transfer, according to the transfer type configuration-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomInternalNameValidations, addCustomNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isEntityInternalNameRequired, isNameRequired, load, logEntity, onAfterRemove, onAfterSave, onBeforeRemove, onBeforeSave, preProcessCurrentCopy, remove, remove, removeAll, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveDTOType, resolveEntityType, resolveExtensionPointAccessor, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, subClassMappings, toDTO, 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.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
-
changeStatus
public void changeStatus(ChangeTransferStatusDTO params) throws FrameworkException
Description copied from interface:TransferStatusServiceChanges the status of the given transfer- Specified by:
changeStatusin interfaceTransferStatusService- Throws:
IllegalActionException- If the given status is not a valid state given the current oneFrameworkException
-
getLog
public List<TransferStatusLog> getLog(Transfer transfer, TransferStatusFlow flow)
Description copied from interface:TransferStatusServiceLocalReturns the log for the given transfer and flow- Specified by:
getLogin interfaceTransferStatusServiceLocal
-
getPossibleNext
public List<TransferStatus> getPossibleNext(Transfer transfer, TransferStatusFlow flow)
Description copied from interface:TransferStatusServiceLocalReturns the statuses which can be set as next for the given transfer / flow- Specified by:
getPossibleNextin interfaceTransferStatusServiceLocal
-
list
public List<TransferStatusDetailedVO> list(TransferStatusFlowVO transferStatusFlowVO) throws FrameworkException
Description copied from interface:TransferStatusServiceReturns all transfer statuses in the given flow- Specified by:
listin interfaceTransferStatusService- Throws:
FrameworkException
-
newEntity
public TransferStatus newEntity(TransferStatusFlowVO transferStatusFlowVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<TransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>- Specified by:
newEntityin classCRUDServiceImpl<TransferStatus,QTransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>
-
setInitialStatuses
public void setInitialStatuses(Transfer transfer)
Description copied from interface:TransferStatusServiceLocalSets the initial statuses for this transfer, according to the transfer type configuration- Specified by:
setInitialStatusesin interfaceTransferStatusServiceLocal
-
getData
protected TransferStatusData getData(TransferStatus status)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<TransferStatus,QTransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>
-
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
-
resolveValidator
protected Validator resolveValidator(TransferStatusDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<TransferStatus,QTransferStatus,TransferStatusDTO,TransferStatusData,TransferStatusFlowVO>
-
-