Class AbstractSocialInformation
- java.lang.Object
-
- org.silverpeas.core.socialnetwork.model.AbstractSocialInformation
-
- All Implemented Interfaces:
Comparable<SocialInformation>
,SocialInformation
- Direct Known Subclasses:
CalendarEventOccurrenceSocialInformation
,SocialInformationComment
,SocialInformationEvent
,SocialInformationPublication
,SocialInformationRelationShip
,SocialInformationStatus
public abstract class AbstractSocialInformation extends Object implements SocialInformation
- Author:
- bensalem Nabil
-
-
Field Summary
Fields Modifier and Type Field Description protected String
author
protected Date
date
protected String
description
protected String
icon
protected ResourceReference
resourceReference
protected boolean
socialInformationWasupdated
protected String
title
protected String
type
protected String
url
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSocialInformation(ResourceReference resourceReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
compareByUrl(SocialInformation socialInfo)
int
compareTo(SocialInformation socialInfo)
Indicates whether some other SocialInformation date is before the date of this one.boolean
equals(Object obj)
String
getAuthor()
return the Author of this SocialInfoDate
getDate()
return the Date of this SocialInfoString
getDescription()
return the Description of this SocialInformationString
getIcon()
return icon name of this SocialInfoResourceReference
getResourceReference()
String
getTitle()
return the Title of this SocialInformationString
getType()
return the Type of this SocialInfoString
getUrl()
return the Url of this SocialInfoint
hashCode()
boolean
isUpdated()
return if this socialInfo was updated or notvoid
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)
-
-
-
Field Detail
-
resourceReference
protected final ResourceReference resourceReference
-
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
protected AbstractSocialInformation(ResourceReference resourceReference)
-
-
Method Detail
-
getResourceReference
public ResourceReference getResourceReference()
- Specified by:
getResourceReference
in interfaceSocialInformation
- Returns:
- the
ResourceReference
theSocialInformation
is aiming.
-
getTitle
public String getTitle()
Description copied from interface:SocialInformation
return the Title of this SocialInformation- Specified by:
getTitle
in interfaceSocialInformation
- Returns:
- String
-
getDescription
public String getDescription()
Description copied from interface:SocialInformation
return the Description of this SocialInformation- Specified by:
getDescription
in interfaceSocialInformation
- Returns:
- String
-
getAuthor
public String getAuthor()
Description copied from interface:SocialInformation
return the Author of this SocialInfo- Specified by:
getAuthor
in interfaceSocialInformation
- Returns:
- String
-
getUrl
public String getUrl()
Description copied from interface:SocialInformation
return the Url of this SocialInfo- Specified by:
getUrl
in interfaceSocialInformation
- Returns:
- String
-
getDate
public Date getDate()
Description copied from interface:SocialInformation
return the Date of this SocialInfo- Specified by:
getDate
in interfaceSocialInformation
- Returns:
- Date
-
isUpdated
public boolean isUpdated()
Description copied from interface:SocialInformation
return if this socialInfo was updated or not- Specified by:
isUpdated
in interfaceSocialInformation
- Returns:
- boolean
-
setUpdated
public void setUpdated(boolean updated)
- Specified by:
setUpdated
in interfaceSocialInformation
-
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 interfaceSocialInformation
- Returns:
- String
-
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 interfaceSocialInformation
- Returns:
- String
-
setIcon
public void setIcon(String icon)
-
compareTo
public int compareTo(SocialInformation socialInfo)
Indicates whether some other SocialInformation date is before the date of this one.- Specified by:
compareTo
in interfaceComparable<SocialInformation>
- Parameters:
socialInfo
- the reference object with which to compare.- Returns:
- int
-
compareByUrl
protected int compareByUrl(SocialInformation socialInfo)
-
-