Commit b03e6b40 authored by Christophe Demarey's avatar Christophe Demarey
Browse files

Rename GoogleService itf to GcalService.

parent cade2958
......@@ -40,15 +40,15 @@ import com.google.gdata.data.calendar.CalendarEventEntry;
import com.google.gdata.data.extensions.When;
import com.google.gdata.util.ServiceException;
import org.ow2.frascati.demo.homeautomation.api.GoogleService;
import org.ow2.frascati.demo.homeautomation.api.GcalService;
/**
* Mock implementation of {@link GoogleService} interface
* Mock implementation of {@link org.ow2.frascati.demo.homeautomation.api.GcalService} interface
*
* @author Mahmoud Ben Hassine
*
*/
public class GcalServiceMockImpl implements GoogleService {
public class GcalServiceMockImpl implements GcalService {
@Override
public void addEvent(CalendarEventEntry entry) throws IOException,
......
......@@ -5,7 +5,7 @@
<implementation.java class="org.ow2.frascati.demo.homeautomation.calendar.GcalServiceMockImpl"/>
<service name="calendarMockService" requires="qos">
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GoogleService"/>
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GcalService"/>
</service>
</component>
......
......@@ -51,16 +51,16 @@ import com.google.gdata.data.extensions.When;
import com.google.gdata.util.AuthenticationException;
import com.google.gdata.util.ServiceException;
import org.ow2.frascati.demo.homeautomation.api.GoogleService;
import org.ow2.frascati.demo.homeautomation.api.GcalService;
/**
* Implementation of the {@link GoogleService} interface
* Implementation of the {@link org.ow2.frascati.demo.homeautomation.api.GcalService} interface
*
* @author Mahmoud Ben Hassine
* @version 1.0
*
*/
public class GcalServiceImpl implements GoogleService {
public class GcalServiceImpl implements GcalService {
private static final String FIRST_MEETING = "07:00:00";
......
......@@ -8,7 +8,7 @@
<implementation.java class="org.ow2.frascati.demo.homeautomation.calendar.GcalServiceImpl"/>
<service name="calendarService" requires="qos">
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GoogleService"/>
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GcalService"/>
</service>
</component>
......
......@@ -57,13 +57,13 @@ public interface IMediator {
public String getWeatherData();
/**
* get available meetings from the primary calendar using {@link GoogleService}
* get available meetings from the primary calendar using {@link GcalService}
* @return available meetings
*/
public List<CalendarEventEntry> getAvailableMeetings();
/**
* add a meeting to the primary calendar using {@link GoogleService}
* add a meeting to the primary calendar using {@link GcalService}
* @param meeting the meeting to add
*/
public void validateMeeting(CalendarEventEntry meeting);
......
......@@ -46,7 +46,7 @@ import com.skype.SkypeException;
import org.ow2.frascati.demo.homeautomation.api.AccessCodeService;
import org.ow2.frascati.demo.homeautomation.api.CommunicationService;
import org.ow2.frascati.demo.homeautomation.api.GUIService;
import org.ow2.frascati.demo.homeautomation.api.GoogleService;
import org.ow2.frascati.demo.homeautomation.api.GcalService;
import org.ow2.frascati.demo.homeautomation.api.IMediator;
import org.ow2.frascati.demo.homeautomation.api.KnxService;
import org.ow2.frascati.demo.homeautomation.api.PatientDAO;
......@@ -74,7 +74,7 @@ public class Mediator implements IMediator {
private WeatherService weatherService;
@Reference
private GoogleService calendarService;
private GcalService calendarService;
@Reference
private GUIService guiService;
......
......@@ -39,7 +39,7 @@
</reference>
<reference name="calendarService">
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GoogleService"/>
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GcalService"/>
</reference>
<reference name="knxService" target="knxMockComponent/knxMockService">
......
......@@ -41,7 +41,7 @@
</reference>
<reference name="calendarService" target="calendarMockComponent/calendarMockService">
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GoogleService"/>
<interface.java interface="org.ow2.frascati.demo.homeautomation.api.GcalService"/>
</reference>
<reference name="knxService" target="knxMockComponent/knxMockService">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment