added new notification type "mentions"

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@73581 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-04-18 09:16:04 +00:00
parent 439b773483
commit 8b8efc23db
4 changed files with 11987 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.portal</groupId>
<artifactId>social-networking-library</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
<name>gCube Social Networking Library</name>
<description>
The gCube Social Networking Library is the 'bridge' between your gCube Applications and the social networking facilities.

View File

@ -1387,6 +1387,9 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
else if (type.compareTo("COMMENT") == 0) {
return NotificationType.COMMENT;
}
else if (type.compareTo("MENTION") == 0) {
return NotificationType.MENTION;
}
else if (type.compareTo("LIKE") == 0) {
return NotificationType.LIKE;
}

View File

@ -47,6 +47,10 @@ public enum NotificationType {
* use to notify a user that commented on a feed (Not his) that someone commented too
*/
COMMENT,
/**
* use to notify a user that he got mentioned in one post
*/
MENTION,
/**
* use to notify a user he got one of his feed liked
*/