com.stratelia.webactiv.almanach.servlets
Class AlmanachICSProducer

java.lang.Object
  extended by com.stratelia.webactiv.almanach.servlets.AlmanachICSProducer

@Service
@RequestScoped
public class AlmanachICSProducer
extends Object

A producer of an ICS resource from a given almanach.


Constructor Summary
AlmanachICSProducer()
           
 
Method Summary
 List<EventDetail> getAllEvents(String almanachId)
          Gets all events of the underlying almanach.
 String getICS(String almanachId)
          Gets the almanach content specified by its identifier in the ICS format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlmanachICSProducer

public AlmanachICSProducer()
Method Detail

getICS

public String getICS(String almanachId)
Gets the almanach content specified by its identifier in the ICS format. The credence parameters of the user tempting to access the almanach are passed as query parameters in the almanach URL. If the user has not enough right to acccess the almanach, then a 403 error is returned (access denied). If the almanach getting failed, then a 503 error is returned (service unavailable).

Parameters:
almanachId - the unique identifier of the almanach to get.
Returns:
the iCal almanach representation

getAllEvents

public List<EventDetail> getAllEvents(String almanachId)
                               throws AlmanachException,
                                      RemoteException,
                                      com.stratelia.webactiv.util.exception.UtilException,
                                      javax.ejb.CreateException
Gets all events of the underlying almanach.

Parameters:
almanachId -
Returns:
a list with the details of the events registered in the almanach.
Throws:
AlmanachException - if an error occurs while getting the list of events.
RemoteException - if the communication with the remote business object fails.
com.stratelia.webactiv.util.exception.UtilException - if a reference to the remote EJB cannot be fetched.
javax.ejb.CreateException - if the EJB cannot be created.


Copyright © 2016 Silverpeas. All Rights Reserved.