com.silverpeas.scheduleevent.service
Class ScheduleEventServiceImpl

java.lang.Object
  extended by com.silverpeas.scheduleevent.service.ScheduleEventServiceImpl
All Implemented Interfaces:
ScheduleEventService, com.silverpeas.SilverpeasComponentService<ScheduleEvent>

@Service(value="scheduleEventService")
public class ScheduleEventServiceImpl
extends Object
implements ScheduleEventService


Field Summary
static String COMPONENT_NAME
           
 
Constructor Summary
ScheduleEventServiceImpl()
           
 
Method Summary
 String createScheduleEvent(ScheduleEvent scheduleEvent)
           
 void deleteContributor(String id)
           
 void deleteScheduleEvent(ScheduleEvent scheduleEvent)
           
 ScheduleEvent findScheduleEvent(String scheduleEventId)
           
 com.stratelia.webactiv.util.ResourceLocator getComponentMessages(String language)
           
 com.stratelia.webactiv.util.ResourceLocator getComponentSettings()
           
 ScheduleEvent getContentById(String contentId)
           
 void initialize()
          Initializes this service by registering itself among Silverpeas core services as interested by events.
 Set<ScheduleEvent> listAllScheduleEventsByUserId(String userId)
           
 ScheduleEvent purgeOldResponseForUserId(ScheduleEvent scheduleEvent, int userId)
           
 void release()
          Releases all the resources required by this service.
 void setLastVisited(ScheduleEvent event, int userId)
           
 void updateScheduleEvent(ScheduleEvent scheduleEvent)
           
 void updateScheduleEventStatus(String scheduleEventId, int newStatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_NAME

public static final String COMPONENT_NAME
See Also:
Constant Field Values
Constructor Detail

ScheduleEventServiceImpl

public ScheduleEventServiceImpl()
Method Detail

initialize

@PostConstruct
public void initialize()
Initializes this service by registering itself among Silverpeas core services as interested by events.


release

@PreDestroy
public void release()
Releases all the resources required by this service. For instance, it unregisters from the Silverpeas core services.


createScheduleEvent

public String createScheduleEvent(ScheduleEvent scheduleEvent)
Specified by:
createScheduleEvent in interface ScheduleEventService

deleteScheduleEvent

public void deleteScheduleEvent(ScheduleEvent scheduleEvent)
Specified by:
deleteScheduleEvent in interface ScheduleEventService

findScheduleEvent

public ScheduleEvent findScheduleEvent(String scheduleEventId)
Specified by:
findScheduleEvent in interface ScheduleEventService

listAllScheduleEventsByUserId

public Set<ScheduleEvent> listAllScheduleEventsByUserId(String userId)
Specified by:
listAllScheduleEventsByUserId in interface ScheduleEventService

updateScheduleEventStatus

public void updateScheduleEventStatus(String scheduleEventId,
                                      int newStatus)
Specified by:
updateScheduleEventStatus in interface ScheduleEventService

purgeOldResponseForUserId

public ScheduleEvent purgeOldResponseForUserId(ScheduleEvent scheduleEvent,
                                               int userId)
Specified by:
purgeOldResponseForUserId in interface ScheduleEventService

updateScheduleEvent

public void updateScheduleEvent(ScheduleEvent scheduleEvent)
Specified by:
updateScheduleEvent in interface ScheduleEventService

setLastVisited

public void setLastVisited(ScheduleEvent event,
                           int userId)
Specified by:
setLastVisited in interface ScheduleEventService

deleteContributor

public void deleteContributor(String id)
Specified by:
deleteContributor in interface ScheduleEventService

getContentById

public ScheduleEvent getContentById(String contentId)
Specified by:
getContentById in interface com.silverpeas.SilverpeasComponentService<ScheduleEvent>

getComponentSettings

public com.stratelia.webactiv.util.ResourceLocator getComponentSettings()
Specified by:
getComponentSettings in interface com.silverpeas.SilverpeasComponentService<ScheduleEvent>

getComponentMessages

public com.stratelia.webactiv.util.ResourceLocator getComponentMessages(String language)
Specified by:
getComponentMessages in interface com.silverpeas.SilverpeasComponentService<ScheduleEvent>


Copyright © 2016 Silverpeas. All Rights Reserved.