Package org.cyclos.impl.system
Class BaseCustomFieldPossibleValueCategoryServiceImpl<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>>
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<C,A,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
- org.cyclos.impl.system.BaseCustomFieldPossibleValueCategoryServiceImpl<CF,C,PV,A>
-
- All Implemented Interfaces:
CRUDServiceLocal<C,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>,BaseCustomFieldPossibleValueCategoryServiceLocal<CF,C,PV>,CRUDService<CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>,CRUDWithConfirmationPasswordService<CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>,Service,BaseCustomFieldPossibleValueCategoryService
- Direct Known Subclasses:
AdCustomFieldPossibleValueCategoryServiceImpl,ContactCustomFieldPossibleValueCategoryServiceImpl,ContactInfoFieldPossibleValueCategoryServiceImpl,CustomOperationFieldPossibleValueCategoryServiceImpl,CustomWizardFieldPossibleValueCategoryServiceImpl,DocumentCustomFieldPossibleValueCategoryServiceImpl,RecordCustomFieldPossibleValueCategoryServiceImpl,TransactionCustomFieldPossibleValueCategoryServiceImpl,UserCustomFieldPossibleValueCategoryServiceImpl,VoucherCustomFieldPossibleValueCategoryServiceImpl
public abstract class BaseCustomFieldPossibleValueCategoryServiceImpl<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>> extends CRUDServiceImpl<C,A,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO> implements BaseCustomFieldPossibleValueCategoryServiceLocal<CF,C,PV>
Base implementation for custom field possible value category services
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CFfindField(Long id)Class<CF>getCustomFieldClass()protected CustomFieldPossibleValueCategoryDatagetData(C entity)Returns details data for the given entityList<CustomFieldPossibleValueCategoryVO>list(CustomFieldVO customFieldVO)Returns all categories for the given custom fieldvoidmove(Long id, boolean up)Moves the given possible value in order, either up or downCnewEntity(CustomFieldVO customFieldVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterSave(C entity, C currentCopy, Object dataFromOnBeforeSave)May be overridden in order to perform custom logic after saving an entityprotected ValidatorresolveValidator(CustomFieldPossibleValueCategoryDTO dto)voidsaveCategories(List<CustomFieldPossibleValueCategoryDTO> dtos)Saves the given categories-
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, 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, registerNetworkMappings
-
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.BaseCustomFieldPossibleValueCategoryService
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
-
getCustomFieldClass
public Class<CF> getCustomFieldClass()
- Specified by:
getCustomFieldClassin interfaceBaseCustomFieldPossibleValueCategoryServiceLocal<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>>
-
list
public List<CustomFieldPossibleValueCategoryVO> list(CustomFieldVO customFieldVO) throws FrameworkException
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceReturns all categories for the given custom field- Specified by:
listin interfaceBaseCustomFieldPossibleValueCategoryService- Throws:
FrameworkException
-
move
public void move(Long id, boolean up) throws EntityNotFoundException
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceMoves the given possible value in order, either up or down- Specified by:
movein interfaceBaseCustomFieldPossibleValueCategoryService- Throws:
EntityNotFoundException
-
newEntity
public C newEntity(CustomFieldVO customFieldVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>>- Specified by:
newEntityin classCRUDServiceImpl<C extends CustomFieldPossibleValueCategory<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
saveCategories
public final void saveCategories(List<CustomFieldPossibleValueCategoryDTO> dtos)
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceSaves the given categories- Specified by:
saveCategoriesin interfaceBaseCustomFieldPossibleValueCategoryService
-
getData
protected CustomFieldPossibleValueCategoryData getData(C entity)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<C extends CustomFieldPossibleValueCategory<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
onAfterSave
protected void onAfterSave(C entity, C currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity- Overrides:
onAfterSavein classCRUDServiceImpl<C extends CustomFieldPossibleValueCategory<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
resolveValidator
protected Validator resolveValidator(CustomFieldPossibleValueCategoryDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<C extends CustomFieldPossibleValueCategory<CF,C,PV>,A extends com.querydsl.core.types.EntityPath<C>,CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
-