Package org.cyclos.impl.system
Class CustomWizardFieldServiceImpl
- 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<CustomWizardField,CustomWizardFieldPossibleValueCategory,CustomWizardFieldPossibleValue,QCustomWizardField,CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>
-
- org.cyclos.impl.system.CustomWizardFieldServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<CustomWizardField,CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>,CustomWizardFieldServiceLocal,CRUDService<CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>,CRUDWithConfirmationPasswordService<CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>,Service,BaseCustomFieldService<CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>,CustomWizardFieldService
@Service public class CustomWizardFieldServiceImpl extends BaseCustomFieldServiceImpl<CustomWizardField,CustomWizardFieldPossibleValueCategory,CustomWizardFieldPossibleValue,QCustomWizardField,CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO> implements CustomWizardFieldServiceLocal
Implementation forCustomWizardFieldService
-
-
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, cacheHandler, 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 CustomWizardFieldServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegergetMaxOrder(CustomWizardField field)Should be implemented in order to return the maximum order number for fields like the given oneprotected BaseCustomFieldPossibleValueCategoryServiceLocal<CustomWizardField,CustomWizardFieldPossibleValueCategory,CustomWizardFieldPossibleValue>getPossibleValueCategoryService()Must be implemented in order to return the corresponding category serviceprotected BaseCustomFieldPossibleValueServiceLocal<CustomWizardField,CustomWizardFieldPossibleValueCategory,CustomWizardFieldPossibleValue>getPossibleValueService()Must be implemented in order to return the corresponding possible value serviceprotected booleanisBinaryTypesAllowed()Indicates whether this custom field nature allows binary typesList<CustomFieldVO>list(CustomWizardVO customWizardVO)Lists all fields for the given custom wizardCustomWizardFieldnewEntity(CustomWizardVO customWizardVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterSave(CustomWizardField entity, CustomWizardField 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 networkprotected booleansupportsValues()Indicates whether this custom field nature can have stored values, i.e the values are persisted (e.g documents and custom operations do not have field values)-
Methods inherited from class org.cyclos.impl.system.BaseCustomFieldServiceImpl
addCustomInternalNameValidations, addCustomValidations, getData, getPropertyClasses, isEntityInternalNameRequired, onBeforeSave, resolveValidator, 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, onAfterRemove, 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, 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.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
-
list
public List<CustomFieldVO> list(CustomWizardVO customWizardVO)
Description copied from interface:CustomWizardFieldServiceLists all fields for the given custom wizard- Specified by:
listin interfaceCustomWizardFieldService
-
newEntity
public CustomWizardField newEntity(CustomWizardVO customWizardVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<CustomWizardField,CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>- Specified by:
newEntityin classCRUDServiceImpl<CustomWizardField,QCustomWizardField,CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>
-
getMaxOrder
protected Integer getMaxOrder(CustomWizardField 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<CustomWizardField,CustomWizardFieldPossibleValueCategory,CustomWizardFieldPossibleValue> getPossibleValueCategoryService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding category service
-
getPossibleValueService
protected BaseCustomFieldPossibleValueServiceLocal<CustomWizardField,CustomWizardFieldPossibleValueCategory,CustomWizardFieldPossibleValue> getPossibleValueService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding possible value service
-
isBinaryTypesAllowed
protected boolean isBinaryTypesAllowed()
Description copied from class:BaseCustomFieldServiceImplIndicates whether this custom field nature allows binary types
-
onAfterSave
protected void onAfterSave(CustomWizardField entity, CustomWizardField currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity- Overrides:
onAfterSavein classCRUDServiceImpl<CustomWizardField,QCustomWizardField,CustomWizardFieldDTO,CustomWizardFieldData,CustomWizardVO>
-
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
-
supportsValues
protected boolean supportsValues()
Description copied from class:BaseCustomFieldServiceImplIndicates whether this custom field nature can have stored values, i.e the values are persisted (e.g documents and custom operations do not have field values)
-
-