org.silverpeas.calendar.web
Class AbstractEventEntity<T extends AbstractEventEntity<T>>

java.lang.Object
  extended by org.silverpeas.calendar.web.AbstractEventEntity<T>
All Implemented Interfaces:
Exposable, Serializable

public abstract class AbstractEventEntity<T extends AbstractEventEntity<T>>
extends Object
implements Exposable

Web entity abstraction which provides common event informations of a web entity

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
protected AbstractEventEntity()
           
protected AbstractEventEntity(String type, String instanceId, String id, String title, String description, Datable start, Datable end, String url)
          Default constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
           
 String getEnd()
           
 String getId()
           
 String getStart()
           
 String getTitle()
           
 String getType()
           
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
 String getUrl()
           
 int hashCode()
           
 boolean isAllDay()
           
 T withURI(URI uri)
          Sets a URI to this entity.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventEntity

protected AbstractEventEntity(String type,
                              String instanceId,
                              String id,
                              String title,
                              String description,
                              Datable start,
                              Datable end,
                              String url)
Default constructor.

Parameters:
type -
instanceId -
id -
title -
description -
start -
end -
url -

AbstractEventEntity

protected AbstractEventEntity()
Method Detail

withURI

public T withURI(URI uri)
Sets a URI to this entity. With this URI, it can then be accessed through the Web.

Parameters:
uri - the web entity URI.
Returns:
itself.

getType

public String getType()

getId

public String getId()

getTitle

public String getTitle()

getDescription

public String getDescription()

isAllDay

public boolean isAllDay()

getStart

public String getStart()

getEnd

public String getEnd()

getUrl

public String getUrl()

getURI

public URI getURI()
Description copied from interface: Exposable
Gets the URI at which this resource is published and can be accessed.

Specified by:
getURI in interface Exposable
Returns:
the web resource URI.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016 Silverpeas. All Rights Reserved.