View Javadoc
1   /*
2    * Copyright (C) 2003-2014 eXo Platform SAS.
3    *
4    * This is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU Lesser General Public License as
6    * published by the Free Software Foundation; either version 3 of
7    * the License, or (at your option) any later version.
8    *
9    * This software is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this software; if not, write to the Free
16   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
18   */
19  package org.exoplatform.model;
20  
21  import java.util.List;
22  import java.util.Map;
23  
24  import org.exoplatform.social.client.api.model.RestActivityStream;
25  import org.exoplatform.social.client.api.model.RestComment;
26  import org.exoplatform.social.client.api.model.RestLike;
27  
28  public class SocialActivityInfo {
29  
30    private String             activityId;
31  
32    private String             userID;
33  
34    private String             userName;
35  
36    private String             imageUrl;
37  
38    private String             title;
39  
40    private String             body;
41  
42    private long               postedTime;
43  
44    /** Last update time of the activity, used for PLF 4 and above */
45    private long               updatedTime = 0;
46  
47    private int                nbLikes;
48  
49    private int                nbComments;
50  
51    private String             type;
52    
53    private String             attachImageUrl;
54  
55    public Map<String, String> templateParams;
56  
57    public RestActivityStream  restActivityStream;
58  
59    private List<RestComment>  commentList;
60  
61    private List<RestLike>     likeList;
62  
63    public SocialActivityInfo() {
64  
65    }
66  
67    public void setActivityId(String actId) {
68      activityId = actId;
69    }
70  
71    public String getActivityId() {
72      return activityId;
73    }
74  
75    public void setUserId(String id) {
76      userID = id;
77    }
78  
79    public String getUserId() {
80      return userID;
81    }
82  
83    public void setUserName(String name) {
84      userName = name;
85    }
86  
87    public String getUserName() {
88      return userName;
89    }
90  
91    public void setImageUrl(String url) {
92      imageUrl = url;
93    }
94  
95    public String getImageUrl() {
96      return imageUrl;
97    }
98  
99    public void setTitle(String tit) {
100     title = tit;
101   }
102 
103   public String getTitle() {
104     return title;
105   }
106 
107   public void setBody(String bod) {
108     body = bod;
109   }
110 
111   public String getBody() {
112     return body;
113   }
114 
115   public void setType(String t) {
116     type = t;
117   }
118 
119   public String getType() {
120     return type;
121   }
122 
123   public void setPostedTime(long time) {
124     postedTime = time;
125   }
126 
127   public long getPostedTime() {
128     return postedTime;
129   }
130 
131   public long getUpdatedTime() { return updatedTime; }
132 
133   public void setUpdatedTime(long time) {
134     updatedTime = time;
135   }
136 
137   public void setCommentList(List<RestComment> list) {
138     commentList = list;
139   }
140 
141   public List<RestComment> getCommentList() {
142     return commentList;
143   }
144 
145   public void setLikelist(List<RestLike> list) {
146     likeList = list;
147   }
148 
149   public List<RestLike> getLikeList() {
150     return likeList;
151   }
152 
153   public void setCommentNumber(int number) {
154     nbComments = number;
155   }
156 
157   public int getCommentNumber() {
158     return nbComments;
159   }
160 
161   public void setLikeNumber(int n) {
162     nbLikes = n;
163   }
164 
165   public int getLikeNumber() {
166     return nbLikes;
167   }
168 
169   public void setAttachedImageUrl(String url) {
170     attachImageUrl = url;
171   }
172 
173   public String getAttachedImageUrl() {
174     return attachImageUrl;
175   }
176   
177 
178 }