fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.integration
Class Documentsparts

java.lang.Object
  extended by fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.integration.Documentsparts
All Implemented Interfaces:
DocumentPart

public class Documentsparts
extends Object
implements DocumentPart

Implementation of DocumentPart class Interface.


Constructor Summary
Documentsparts()
          Sole constructor.
 
Method Summary
 Author getAuthor()
          
 Date getCreationDate()
          
 String getHtmlContent()
          
 String getPlainTextContent()
          
 boolean isPrimaryContent()
          
 void setAuthor(String hosturl, String username, double reputation)
          Sets the author of Object.
 void setCreationDate(String day, String month, String year, String hour, String minute)
          Sets creation date.
 void setCreationDate(String year, String month, String day, String hour, String minute, String AM_PM)
          Sets creation date.
 void setHtmlContent(String htmlcontents)
          Sets the message body (of Web resource or web object) as plain text.
 void setPlainTextContent(String plaintexts)
          Sets the message body (of Web resource or web object) as plain text.
 void setPrimaryContent()
          Sets PrimaryContent true for a web resource that has primary content.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Documentsparts

public Documentsparts()
Sole constructor.

Method Detail

getAuthor

public Author getAuthor()

Specified by:
getAuthor in interface DocumentPart

getCreationDate

public Date getCreationDate()

Specified by:
getCreationDate in interface DocumentPart

getHtmlContent

public String getHtmlContent()

Specified by:
getHtmlContent in interface DocumentPart

getPlainTextContent

public String getPlainTextContent()

Specified by:
getPlainTextContent in interface DocumentPart

isPrimaryContent

public boolean isPrimaryContent()

Specified by:
isPrimaryContent in interface DocumentPart

setAuthor

public void setAuthor(String hosturl,
                      String username,
                      double reputation)
Sets the author of Object.

Parameters:
hosturl - website where this author is valid
username - author name
reputation - author reputation

setCreationDate

public void setCreationDate(String day,
                            String month,
                            String year,
                            String hour,
                            String minute)
Sets creation date.

Parameters:
year - year of object creation
month - month of object creation
day - day of object creation
hour - hour of object creation
minute - minute of object creation

setCreationDate

public void setCreationDate(String year,
                            String month,
                            String day,
                            String hour,
                            String minute,
                            String AM_PM)
Sets creation date.

Parameters:
year - year of object creation
month - month of object creation
day - day of object creation
hour - hour of object creation
minute - minute of object creation
AM_PM - Period of object creation

setHtmlContent

public void setHtmlContent(String htmlcontents)
Sets the message body (of Web resource or web object) as plain text.

Parameters:
htmlcontents - message body as html content

setPlainTextContent

public void setPlainTextContent(String plaintexts)
Sets the message body (of Web resource or web object) as plain text.

Parameters:
plaintexts - message body as plain text

setPrimaryContent

public void setPrimaryContent()
Sets PrimaryContent true for a web resource that has primary content.
E.g. A blog post can have a Blog body and then several comment as well. In this case blog body will be primary content. So by setting boolean values ensures that primary content exists.