Package org.cyclos.impl.system
Class CustomWizardStepServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>
-
- org.cyclos.impl.system.CustomWizardStepServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<CustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>,CustomWizardStepServiceLocal,CRUDService<CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>,CRUDWithConfirmationPasswordService<CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>,Service,CustomWizardStepService
@Service public class CustomWizardStepServiceImpl extends CRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams> implements CustomWizardStepServiceLocal
Implementation forCustomWizardStepService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, cacheHandler, dtoClass, entityClass, extensionPointService, 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
-
-
Constructor Summary
Constructors Constructor Description CustomWizardStepServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCustomInternalNameValidations(Property internalName, CustomWizardStepDTO dto)This method may be overridden to add custom validations for the INTERNAL_NAME property.protected CustomWizardStepDatagetData(CustomWizardStep step)Returns details data for the given entityprotected Object[]getExcludedPropertiesToDTO(CustomWizardStep entity)May be overridden in order to exclude properties when converting the given entity to DTOprotected Object[]getExcludedPropertiesToEntity(CustomWizardStepDTO dto)May be overridden in order to exclude properties when converting the given DTO to entityList<CustomWizardStepVO>list(CustomWizardVO wizardVO)Lists all steps for the given wizardCustomWizardStepnewEntity(CustomWizardStepDataParams params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected ObjectonBeforeSave(CustomWizardStep step, CustomWizardStep currentCopy)May be overridden in order to perform custom logic before saving an entity.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected ValidatorresolveValidator(CustomWizardStepDTO dto)protected org.apache.commons.collections4.BidiMap<Class<? extends CustomWizardStep>,Class<? extends CustomWizardStepDTO>>subClassMappings()Should be overridden by subclasses which handle entity / dto hierarchies.CustomWizardStepDTOtoDTO(CustomWizardStep entity)Converts the given entity in a DTO, handling theCRUDServiceImpl.subClassMappings()mappings for subclassesCustomWizardSteptoEntity(CustomWizardStepDTO dto)Converts the given DTO in an entity, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isEntityInternalNameRequired, isNameRequired, load, logEntity, onAfterRemove, onAfterSave, onBeforeRemove, preProcessCurrentCopy, remove, remove, removeAll, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveDTOType, resolveEntityType, resolveExtensionPointAccessor, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, 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, validate
-
Methods inherited from interface org.cyclos.services.system.CustomWizardStepService
saveOrder
-
-
-
-
Method Detail
-
list
public List<CustomWizardStepVO> list(CustomWizardVO wizardVO) throws FrameworkException
Description copied from interface:CustomWizardStepServiceLists all steps for the given wizard- Specified by:
listin interfaceCustomWizardStepService- Throws:
FrameworkException
-
newEntity
public CustomWizardStep newEntity(CustomWizardStepDataParams 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<CustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>- Specified by:
newEntityin classCRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>
-
toDTO
public CustomWizardStepDTO toDTO(CustomWizardStep entity)
Description copied from class:CRUDServiceImplConverts the given entity in a DTO, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses- Specified by:
toDTOin interfaceCRUDServiceLocal<CustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>- Overrides:
toDTOin classCRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>
-
toEntity
public CustomWizardStep toEntity(CustomWizardStepDTO dto)
Description copied from class:CRUDServiceImplConverts the given DTO in an entity, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses- Specified by:
toEntityin interfaceCRUDServiceLocal<CustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>- Overrides:
toEntityin classCRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>
-
addCustomInternalNameValidations
protected void addCustomInternalNameValidations(Property internalName, CustomWizardStepDTO dto)
Description copied from class:CRUDServiceImplThis method may be overridden to add custom validations for the INTERNAL_NAME property.
-
getData
protected CustomWizardStepData getData(CustomWizardStep step)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>
-
getExcludedPropertiesToDTO
protected Object[] getExcludedPropertiesToDTO(CustomWizardStep entity)
Description copied from class:CRUDServiceImplMay be overridden in order to exclude properties when converting the given entity to DTO
-
getExcludedPropertiesToEntity
protected Object[] getExcludedPropertiesToEntity(CustomWizardStepDTO dto)
Description copied from class:CRUDServiceImplMay be overridden in order to exclude properties when converting the given DTO to entity
-
onBeforeSave
protected Object onBeforeSave(CustomWizardStep step, CustomWizardStep currentCopy)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic before saving an entity. Any returned value will be passed to theCRUDServiceImpl.onAfterSave(BaseEntity, BaseEntity, Object)method
-
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(CustomWizardStepDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<CustomWizardStep,QCustomWizardStep,CustomWizardStepDTO,CustomWizardStepData,CustomWizardStepDataParams>
-
subClassMappings
protected org.apache.commons.collections4.BidiMap<Class<? extends CustomWizardStep>,Class<? extends CustomWizardStepDTO>> subClassMappings()
Description copied from class:CRUDServiceImplShould be overridden by subclasses which handle entity / dto hierarchies. The map key should be the entity class, while the map value, the DTO class
-
-