package com.ejie.m62fb.service.registroVPP;
import org.springframework.security.access.prepost.PreAuthorize;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ejie.m62fb.dao.registroVPP.ElementoAdDao;
import com.ejie.m62fb.model.ElementoAd;

/**
 * ElementoAdServiceImpl.
 * 
XXXX
 */
@Service(value = "elementoAdService")
public class ElementoAdServiceImpl implements ElementoAdService {

	@Autowired
	private ElementoAdDao elementoAdDao;

	/**
	 * Finds a single row in the ElementoAd table.
	 * 
	 * @param elementoAd
	 *            ElementoAd
	 * @return ElementoAd
	 */
	@Override
@PreAuthorize("hasPermission('ELEMENTO_AD_SERVICE','SecureService','read')")
	public ElementoAd find(ElementoAd elementoAd) {
		return this.elementoAdDao.find(elementoAd);
	}
}
