BrightSide Workbench Full Report + Source Code
org.turro.forum.CommentItEntry Class Reference

Public Member Functions

 CommentItEntry (String entityPath, String contactId, Date dateCreation, String body)
 
String getEntityPath ()
 
String getContactId ()
 
Date getDateCreation ()
 
String getBody ()
 
Topic migrateTopic (Dao dao)
 
void migratePost (Dao dao, Topic topic)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file CommentItEntry.java.

Constructor & Destructor Documentation

◆ CommentItEntry()

org.turro.forum.CommentItEntry.CommentItEntry ( String  entityPath,
String  contactId,
Date  dateCreation,
String  body 
)

Definition at line 38 of file CommentItEntry.java.

38  {
39  this.entityPath = entityPath;
40  this.contactId = contactId;
41  this.dateCreation = dateCreation;
42  this.body = body;
43  }

Member Function Documentation

◆ getBody()

String org.turro.forum.CommentItEntry.getBody ( )

Definition at line 57 of file CommentItEntry.java.

57  {
58  return body;
59  }

◆ getContactId()

String org.turro.forum.CommentItEntry.getContactId ( )

Definition at line 49 of file CommentItEntry.java.

49  {
50  return contactId;
51  }

◆ getDateCreation()

Date org.turro.forum.CommentItEntry.getDateCreation ( )

Definition at line 53 of file CommentItEntry.java.

53  {
54  return dateCreation;
55  }

◆ getEntityPath()

String org.turro.forum.CommentItEntry.getEntityPath ( )

Definition at line 45 of file CommentItEntry.java.

45  {
46  return entityPath;
47  }

◆ migratePost()

void org.turro.forum.CommentItEntry.migratePost ( Dao  dao,
Topic  topic 
)

Definition at line 72 of file CommentItEntry.java.

72  {
73  Post post = new Post();
74  post.setAuthorId(contactId);
75  post.setCreation(dateCreation);
76  post.setText(body);
77  post.setTopic(topic);
78  post = dao.saveObject(post);
79  UniquePath.normalizeUniquePaths(post);
80  }
Here is the call graph for this function:

◆ migrateTopic()

Topic org.turro.forum.CommentItEntry.migrateTopic ( Dao  dao)

Definition at line 61 of file CommentItEntry.java.

61  {
62  Topic topic = new Topic();
63  topic.setAuthorId(contactId);
64  topic.setCreation(dateCreation);
65  topic.setEntityPath(entityPath);
66  topic.setText(body);
67  topic = dao.saveObject(topic);
68  UniquePath.normalizeUniquePaths(topic);
69  return topic;
70  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: