Class BaseContentItemServiceImpl<E extends ContentItem,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ContentItemDTO,D extends EntityData<DTO>,DP>
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<E,A,DTO,D,DP>
-
- org.cyclos.impl.contentmanagement.BaseContentItemServiceImpl<E,A,DTO,D,DP>
-
- All Implemented Interfaces:
CRUDServiceLocal<E,DTO,D,DP>,CRUDService<DTO,D,DP>,CRUDWithConfirmationPasswordService<DTO,D,DP>,Service
- Direct Known Subclasses:
BannerServiceImpl,MenuEntryServiceImpl
public abstract class BaseContentItemServiceImpl<E extends ContentItem,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ContentItemDTO,D extends EntityData<DTO>,DP> extends CRUDServiceImpl<E,A,DTO,D,DP>
Base class for CRUD services whose entities extendContentItem
-
-
Field Summary
Fields Modifier and Type Field Description protected QConfigurationconfigurationPathprotected ConfigurationServiceLocalconfigurationService-
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 ValidatorresolveValidator(DTO dto)DTOtoDTO(E entity)Converts the given entity in a DTO, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomInternalNameValidations, addCustomNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isEntityInternalNameRequired, isNameRequired, load, logEntity, newEntity, onAfterRemove, onAfterSave, onBeforeRemove, onBeforeSave, 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, 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.impl.CRUDServiceLocal
saveEntity
-
-
-
-
Field Detail
-
configurationService
@Autowired protected ConfigurationServiceLocal configurationService
-
configurationPath
protected QConfiguration configurationPath
-
-
Method Detail
-
toDTO
public DTO toDTO(E entity)
Description copied from class:CRUDServiceImplConverts the given entity in a DTO, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses- Specified by:
toDTOin interfaceCRUDServiceLocal<E extends ContentItem,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ContentItemDTO,D extends EntityData<DTO>>- Overrides:
toDTOin classCRUDServiceImpl<E extends ContentItem,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ContentItemDTO,D extends EntityData<DTO>,DP>
-
resolveValidator
protected Validator resolveValidator(DTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<E extends ContentItem,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ContentItemDTO,D extends EntityData<DTO>,DP>
-
-