Package org.cyclos.impl.marketplace
Class AdAddressServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
- org.cyclos.impl.marketplace.AdAddressServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<AdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>,AdAddressServiceLocal,CRUDService<AdAddressDTO,AdAddressData,AdAddressDataParams>,CRUDWithConfirmationPasswordService<AdAddressDTO,AdAddressData,AdAddressDataParams>,AdAddressService,Service
@Service public class AdAddressServiceImpl extends CRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams> implements AdAddressServiceLocal
Implementation forAdAddressService
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AdAddressServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanDisabledAddressFields(IAddress address, ConfigurationAccessor configuration)Sets null to the disabled address fields according to the given configurationAddressListDatagetAddressListData(BasicAd ad)Returns the addresses for an advertisementAddressListDatagetAddressListData(BasicAdVO adVO)Returns data and the addresses of the ad with the given id.protected AdAddressDatagetData(AdAddress adAddress)Returns details data for the given entityAdAddressnewEntity(AdAddressDataParams params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterRemove(AdAddress entity)May be overridden in order to perform custom logic after removing an entityprotected voidonAfterSave(AdAddress entity, AdAddress currentCopy, Object dataFromOnBeforeSave)May be overridden in order to perform custom logic after saving an entityprotected ObjectonBeforeSave(AdAddress entity, AdAddress 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 networkprotected ValidatorresolveValidator(AdAddressDTO dto)-
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, onBeforeRemove, 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
-
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.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
-
cleanDisabledAddressFields
public void cleanDisabledAddressFields(IAddress address, ConfigurationAccessor configuration)
Description copied from interface:AdAddressServiceLocalSets null to the disabled address fields according to the given configuration- Specified by:
cleanDisabledAddressFieldsin interfaceAdAddressServiceLocal
-
getAddressListData
public AddressListData getAddressListData(BasicAd ad) throws FrameworkException
Description copied from interface:AdAddressServiceLocalReturns the addresses for an advertisement- Specified by:
getAddressListDatain interfaceAdAddressServiceLocal- Throws:
FrameworkException
-
getAddressListData
public AddressListData getAddressListData(BasicAdVO adVO) throws FrameworkException
Description copied from interface:AdAddressServiceReturns data and the addresses of the ad with the given id.- Specified by:
getAddressListDatain interfaceAdAddressService- Throws:
FrameworkException
-
newEntity
public AdAddress newEntity(AdAddressDataParams params)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<AdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>- Specified by:
newEntityin classCRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
getData
protected AdAddressData getData(AdAddress adAddress)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
onAfterRemove
protected void onAfterRemove(AdAddress entity)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after removing an entity- Overrides:
onAfterRemovein classCRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
onAfterSave
protected void onAfterSave(AdAddress entity, AdAddress currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity- Overrides:
onAfterSavein classCRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
onBeforeSave
protected Object onBeforeSave(AdAddress entity, AdAddress 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- Overrides:
onBeforeSavein classCRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
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
-
resolveValidator
protected Validator resolveValidator(AdAddressDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<AdAddress,QAdAddress,AdAddressDTO,AdAddressData,AdAddressDataParams>
-
-