com.silverpeas.socialnetwork.model
Class AbstractSocialInformation

java.lang.Object
  extended by com.silverpeas.socialnetwork.model.AbstractSocialInformation
All Implemented Interfaces:
SocialInformation, Comparable<SocialInformation>
Direct Known Subclasses:
SocialInformationComment, SocialInformationEvent, SocialInformationPublication, SocialInformationRelationShip, SocialInformationStatus

public abstract class AbstractSocialInformation
extends Object
implements SocialInformation

Author:
bensalem Nabil

Field Summary
protected  String author
           
protected  Date date
           
protected  String description
           
protected  String icon
           
protected  boolean socialInformationWasupdated
           
protected  String title
           
protected  String type
           
protected  String url
           
 
Constructor Summary
AbstractSocialInformation()
           
 
Method Summary
 int compareTo(SocialInformation o)
          Indicates whether some other SocialInformation date is before the date of this one.
 boolean equals(Object obj)
           
 String getAuthor()
          return the Author of this SocialInfo
 Date getDate()
          return the Date of this SocialInfo
 String getDescription()
          return the Description of this SocialInformation
 String getIcon()
          return icon name of this SocialInfo
 String getTitle()
          return the Title of this SocialInformation
 String getType()
          return the Type of this SocialInfo
 String getUrl()
          return the Url of this SocialInfo
 int hashCode()
           
 boolean isUpdated()
          return if this socialInfo was updated or not
 void setAuthor(String author)
           
 void setDate(Date date)
           
 void setDescription(String description)
           
 void setIcon(String icon)
           
 void setTitle(String title)
           
 void setType(String type)
           
 void setUpdated(boolean updated)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected String title

description

protected String description

author

protected String author

url

protected String url

date

protected Date date

socialInformationWasupdated

protected boolean socialInformationWasupdated

type

protected String type

icon

protected String icon
Constructor Detail

AbstractSocialInformation

public AbstractSocialInformation()
Method Detail

getTitle

public String getTitle()
Description copied from interface: SocialInformation
return the Title of this SocialInformation

Specified by:
getTitle in interface SocialInformation
Returns:
String

getDescription

public String getDescription()
Description copied from interface: SocialInformation
return the Description of this SocialInformation

Specified by:
getDescription in interface SocialInformation
Returns:
String

getAuthor

public String getAuthor()
Description copied from interface: SocialInformation
return the Author of this SocialInfo

Specified by:
getAuthor in interface SocialInformation
Returns:
String

getUrl

public String getUrl()
Description copied from interface: SocialInformation
return the Url of this SocialInfo

Specified by:
getUrl in interface SocialInformation
Returns:
String

getDate

public Date getDate()
Description copied from interface: SocialInformation
return the Date of this SocialInfo

Specified by:
getDate in interface SocialInformation
Returns:

isUpdated

public boolean isUpdated()
Description copied from interface: SocialInformation
return if this socialInfo was updated or not

Specified by:
isUpdated in interface SocialInformation
Returns:
boolean

setUpdated

public void setUpdated(boolean updated)
Specified by:
setUpdated in interface SocialInformation

setTitle

public void setTitle(String title)

setDescription

public void setDescription(String description)

setAuthor

public void setAuthor(String author)

setUrl

public void setUrl(String url)

setDate

public void setDate(Date date)

getType

public String getType()
Description copied from interface: SocialInformation
return the Type of this SocialInfo

Specified by:
getType in interface SocialInformation
Returns:

setType

public void setType(String type)

getIcon

public String getIcon()
Description copied from interface: SocialInformation
return icon name of this SocialInfo

Specified by:
getIcon in interface SocialInformation
Returns:
String

setIcon

public void setIcon(String icon)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(SocialInformation o)
Indicates whether some other SocialInformation date is before the date of this one.

Specified by:
compareTo in interface Comparable<SocialInformation>
Parameters:
o - the reference object with which to compare.
Returns:
int


Copyright © 2016 Silverpeas. All Rights Reserved.