Package org.cyclos.impl.system
Class CustomOperationFieldServiceImpl
- 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<CustomOperationField,CustomOperationFieldPossibleValueCategory,CustomOperationFieldPossibleValue,QCustomOperationField,CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>
-
- org.cyclos.impl.system.CustomOperationFieldServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<CustomOperationField,CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>,CustomOperationFieldServiceLocal,CRUDService<CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>,CRUDWithConfirmationPasswordService<CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>,Service,BaseCustomFieldService<CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>,CustomOperationFieldService
@Service public class CustomOperationFieldServiceImpl extends BaseCustomFieldServiceImpl<CustomOperationField,CustomOperationFieldPossibleValueCategory,CustomOperationFieldPossibleValue,QCustomOperationField,CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO> implements CustomOperationFieldServiceLocal
Implementation forCustomOperationFieldService
-
-
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 CustomOperationFieldServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegergetMaxOrder(CustomOperationField field)Should be implemented in order to return the maximum order number for fields like the given oneprotected BaseCustomFieldPossibleValueCategoryServiceLocal<CustomOperationField,CustomOperationFieldPossibleValueCategory,CustomOperationFieldPossibleValue>getPossibleValueCategoryService()Must be implemented in order to return the corresponding category serviceprotected BaseCustomFieldPossibleValueServiceLocal<CustomOperationField,CustomOperationFieldPossibleValueCategory,CustomOperationFieldPossibleValue>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(CustomOperationVO customOperationVO)Lists all fields for the given custom operationCustomOperationFieldnewEntity(CustomOperationVO customOperationVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected ObjectonBeforeSave(CustomOperationField field, CustomOperationField 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 network-
Methods inherited from class org.cyclos.impl.system.BaseCustomFieldServiceImpl
addCustomInternalNameValidations, addCustomValidations, getData, getPropertyClasses, isEntityInternalNameRequired, 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, onAfterRemove, onAfterSave, 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
-
list
public List<CustomFieldVO> list(CustomOperationVO customOperationVO)
Description copied from interface:CustomOperationFieldServiceLists all fields for the given custom operation- Specified by:
listin interfaceCustomOperationFieldService
-
newEntity
public CustomOperationField newEntity(CustomOperationVO customOperationVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<CustomOperationField,CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>- Specified by:
newEntityin classCRUDServiceImpl<CustomOperationField,QCustomOperationField,CustomOperationFieldDTO,CustomOperationFieldData,CustomOperationVO>
-
getMaxOrder
protected Integer getMaxOrder(CustomOperationField 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<CustomOperationField,CustomOperationFieldPossibleValueCategory,CustomOperationFieldPossibleValue> getPossibleValueCategoryService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding category service
-
getPossibleValueService
protected BaseCustomFieldPossibleValueServiceLocal<CustomOperationField,CustomOperationFieldPossibleValueCategory,CustomOperationFieldPossibleValue> 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
-
onBeforeSave
protected Object onBeforeSave(CustomOperationField field, CustomOperationField 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
-
-