com.stratelia.webactiv.almanach.model
Class EventDetail
java.lang.Object
  
com.silverpeas.util.i18n.AbstractI18NBean
      
com.silverpeas.util.i18n.AbstractBean
          
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
 
            | 
 
 
 
| 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 interface com.stratelia.silverpeas.contentManager.SilverContentInterface | 
getDescription, getDescription, getLanguages, getName, getName | 
 
| Methods inherited from interface com.silverpeas.SilverpeasContent | 
getDescription | 
 
almanachSettings
public static com.stratelia.webactiv.util.ResourceLocator almanachSettings
EventDetail
public EventDetail()
EventDetail
public EventDetail(EventPK pk,
                   String title,
                   Date startDate,
                   Date endDate)
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.