com.stratelia.webactiv.almanach.model
Class EventDetail

java.lang.Object
  extended by com.silverpeas.util.i18n.AbstractI18NBean
      extended by com.silverpeas.util.i18n.AbstractBean
          extended by com.stratelia.webactiv.almanach.model.EventDetail
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, com.silverpeas.util.i18n.I18NBean, com.stratelia.silverpeas.contentManager.SilverContentInterface, Serializable

public class EventDetail
extends com.silverpeas.util.i18n.AbstractBean
implements com.stratelia.silverpeas.contentManager.SilverContentInterface, Serializable, com.silverpeas.SilverpeasContent

See Also:
Serialized Form

Field Summary
static com.stratelia.webactiv.util.ResourceLocator almanachSettings
           
 
Constructor Summary
EventDetail()
           
EventDetail(EventPK pk, String title, Date startDate, Date endDate)
           
 
Method Summary
 boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
          Is the specified user can access this event?
 boolean equals(Object obj)
           
 Collection<org.silverpeas.attachment.model.SimpleDocument> getAttachments()
           
 String getComponentInstanceId()
           
 String getContributionType()
           
 Date getCreationDate()
           
 com.stratelia.webactiv.beans.admin.UserDetail getCreator()
           
 String getCreatorId()
           
 String getDate()
           
 String getDelegatorId()
           
 Date getEndDate()
           
 String getEndHour()
           
 String getEventUrl()
           
 String getIconUrl()
           
 String getId()
           
 String getInstanceId()
           
 String getNameDescription()
           
 int getNbDaysDuration()
           
 Periodicity getPeriodicity()
           
 String getPermalink()
           
 EventPK getPK()
           
 String getPlace()
           
 int getPriority()
           
 String getSilverCreationDate()
           
 String getSilverpeasContentId()
           
 Date getStartDate()
           
 String getStartHour()
           
 net.fortuna.ical4j.model.TimeZone getTimeZone()
          Gets the time zone in which this event is defined.
 String getTitle()
           
 String getURL()
           
 String getWysiwyg()
           
 String getWysiwyg(boolean readOnly)
           
 int hashCode()
           
 net.fortuna.ical4j.model.component.VEvent icalConversion(net.fortuna.ical4j.model.property.ExDate exDate)
           
 boolean isAllDay()
           
 boolean isPeriodic()
          Is this event periodic?
 boolean isPriority()
           
 void setDelegatorId(String delegatorId)
           
 void setEndDate(Date date)
          Sets the date at which this event ends.
 void setEndHour(String endHour)
           
 void setEventUrl(String eventUrl)
           
 void setIconUrl(String iconUrl)
           
 void setNameDescription(String description)
           
 void setPeriodicity(Periodicity periodicity)
           
 void setPK(EventPK pk)
           
 void setPlace(String place)
           
 void setPriority(int priority)
           
protected  void setSilverpeasContentId(String contentId)
           
 void setStartDate(Date date)
           
 void setStartHour(String startHour)
           
 void setTitle(String title)
           
 
Methods inherited from class com.silverpeas.util.i18n.AbstractBean
getDescription, getLanguages, getName
 
Methods inherited from class com.silverpeas.util.i18n.AbstractI18NBean
addTranslation, getClonedTranslations, getDescription, getLanguage, getLanguageToDisplay, getName, getNextTranslation, getTranslation, getTranslationId, getTranslations, isRemoveTranslation, setDescription, setLanguage, setName, setRemoveTranslation, setTranslationId, setTranslations, setTranslations, setTranslations
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.stratelia.silverpeas.contentManager.SilverContentInterface
getDescription, getDescription, getLanguages, getName, getName
 
Methods inherited from interface com.silverpeas.SilverpeasContent
getDescription
 

Field Detail

almanachSettings

public static com.stratelia.webactiv.util.ResourceLocator almanachSettings
Constructor Detail

EventDetail

public EventDetail()

EventDetail

public EventDetail(EventPK pk,
                   String title,
                   Date startDate,
                   Date endDate)
Method Detail

getPlace

public String getPlace()

setPlace

public void setPlace(String place)

isPeriodic

public boolean isPeriodic()
Is this event periodic?

Returns:
true if the event is recurrent, false otherwise.

getPK

public EventPK getPK()

setPK

public void setPK(EventPK pk)

getNameDescription

public String getNameDescription()

setNameDescription

public void setNameDescription(String description)

getDelegatorId

public String getDelegatorId()

setDelegatorId

public void setDelegatorId(String delegatorId)

getPriority

public int getPriority()

setPriority

public void setPriority(int priority)

isPriority

public boolean isPriority()

getStartDate

public Date getStartDate()

setStartDate

public void setStartDate(Date date)

getEndDate

public Date getEndDate()

setEndDate

public void setEndDate(Date date)
Sets the date at which this event ends. The end date cannot be null.

Parameters:
date - end date of this event.

isAllDay

public boolean isAllDay()

getTitle

public String getTitle()
Specified by:
getTitle in interface com.silverpeas.SilverpeasContent

setTitle

public void setTitle(String title)

getURL

public String getURL()
Specified by:
getURL in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

getId

public String getId()
Specified by:
getId in interface com.silverpeas.SilverpeasContent
Specified by:
getId in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

getInstanceId

public String getInstanceId()
Specified by:
getInstanceId in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

getDate

public String getDate()
Specified by:
getDate in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

getSilverCreationDate

public String getSilverCreationDate()
Specified by:
getSilverCreationDate in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

setIconUrl

public void setIconUrl(String iconUrl)

getIconUrl

public String getIconUrl()
Specified by:
getIconUrl in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

getCreatorId

public String getCreatorId()
Specified by:
getCreatorId in interface com.stratelia.silverpeas.contentManager.SilverContentInterface

getEndHour

public String getEndHour()

setEndHour

public void setEndHour(String endHour)

getStartHour

public String getStartHour()

setStartHour

public void setStartHour(String startHour)

getEventUrl

public String getEventUrl()

setEventUrl

public void setEventUrl(String eventUrl)

getPermalink

public String getPermalink()

getWysiwyg

public String getWysiwyg()

getWysiwyg

public String getWysiwyg(boolean readOnly)

getAttachments

public Collection<org.silverpeas.attachment.model.SimpleDocument> getAttachments()

getPeriodicity

public Periodicity getPeriodicity()

setPeriodicity

public void setPeriodicity(Periodicity periodicity)

getNbDaysDuration

public int getNbDaysDuration()

icalConversion

public net.fortuna.ical4j.model.component.VEvent icalConversion(net.fortuna.ical4j.model.property.ExDate exDate)

getTimeZone

public net.fortuna.ical4j.model.TimeZone getTimeZone()
Gets the time zone in which this event is defined.

Returns:
the time zone in which the event occur.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getComponentInstanceId

public String getComponentInstanceId()
Specified by:
getComponentInstanceId in interface com.silverpeas.SilverpeasContent

getSilverpeasContentId

public String getSilverpeasContentId()
Specified by:
getSilverpeasContentId in interface com.silverpeas.SilverpeasContent

setSilverpeasContentId

protected void setSilverpeasContentId(String contentId)

getCreator

public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
Specified by:
getCreator in interface com.silverpeas.SilverpeasContent

getCreationDate

public Date getCreationDate()
Specified by:
getCreationDate in interface com.silverpeas.SilverpeasContent

getContributionType

public String getContributionType()
Specified by:
getContributionType in interface com.silverpeas.SilverpeasContent

canBeAccessedBy

public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
Is the specified user can access this event?

A user can access an event if it has enough rights to access the Almanach instance in which is managed this event.

Specified by:
canBeAccessedBy in interface com.silverpeas.SilverpeasContent
Parameters:
user - a user in Silverpeas.
Returns:
true if the user can access this event, false otherwise.


Copyright © 2016 Silverpeas. All Rights Reserved.