Package org.cyclos.impl.users
Class BaseReferenceServiceImpl<E extends Reference,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ReferenceDTO,VO extends ReferenceEntryVO,Q extends ReferenceQuery,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.users.BaseReferenceServiceImpl<E,A,DTO,VO,Q,D,DP>
-
- All Implemented Interfaces:
CRUDServiceLocal<E,DTO,D,DP>,CRUDService<DTO,D,DP>,CRUDWithConfirmationPasswordService<DTO,D,DP>,Service
- Direct Known Subclasses:
GeneralReferenceServiceImpl,TransactionFeedbackServiceImpl
public abstract class BaseReferenceServiceImpl<E extends Reference,A extends com.querydsl.core.types.EntityPath<E>,DTO extends ReferenceDTO,VO extends ReferenceEntryVO,Q extends ReferenceQuery,D extends EntityData<DTO>,DP> extends CRUDServiceImpl<E,A,DTO,D,DP>
Base implementation for reference services
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<VO>entryVoClassprotected QReferencer-
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 BaseReferenceServiceImpl(Class<E> entityClass, A $, QReference r, Class<DTO> dtoClass, Class<VO> entryVoClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcountReceived(User user)protected DBQuery<?>crateStatisticsQuery(User owner, ReferenceType type, DatePeriod period)protected DBQuery<?>createSearchQuery(Q params)List<ReferenceLevel>getReferenceLevels()ReferenceStatisticsVOgetStatistics(ReferenceStatisticsParams params)protected abstract QReferenceref()protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidremoveAll(User user)Page<VO>search(Q params)protected VOtoSearchResultEntry(E ref)-
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, resolveValidator, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, subClassMappings, toDTO, 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.impl.CRUDServiceLocal
saveEntity
-
-
-
-
Field Detail
-
entryVoClass
protected final Class<VO extends ReferenceEntryVO> entryVoClass
-
r
protected final QReference r
-
-
Method Detail
-
countReceived
public int countReceived(User user)
-
getReferenceLevels
public List<ReferenceLevel> getReferenceLevels()
-
getStatistics
public ReferenceStatisticsVO getStatistics(ReferenceStatisticsParams params)
-
removeAll
public void removeAll(User user)
-
crateStatisticsQuery
protected DBQuery<?> crateStatisticsQuery(User owner, ReferenceType type, DatePeriod period)
-
ref
protected abstract QReference ref()
-
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
-
-