Commit 43934a67 by amir

add postActivity with string type

parent ac0d1405
...@@ -46,12 +46,12 @@ public class ActivityHandler { ...@@ -46,12 +46,12 @@ public class ActivityHandler {
* @param eAction * @param eAction
* @param source * @param source
* @param dest * @param dest
* @param eType * @param type
* @param creationTime * @param creationTime
* @param metaData * @param metaData
* @return success * @return success
*/ */
public boolean postActivity(String userId,EnumActivityAction eAction,String source,String dest,EnumActivityType eType, public boolean postActivity(String userId,EnumActivityAction eAction,String source,String dest,String type,
Long creationTime,JsonNode metaData){ Long creationTime,JsonNode metaData){
StringBuilder sbId = new StringBuilder(INITIAL_CAPACITY); StringBuilder sbId = new StringBuilder(INITIAL_CAPACITY);
Activity activity = new Activity(); Activity activity = new Activity();
...@@ -60,7 +60,7 @@ public class ActivityHandler { ...@@ -60,7 +60,7 @@ public class ActivityHandler {
activity.setSource(source); activity.setSource(source);
activity.setDest(dest); activity.setDest(dest);
activity.setCreationTime(creationTime); activity.setCreationTime(creationTime);
activity.setType(eType.getStrActivityType()); activity.setType(type);
/* /*
* creating id - should be more unique * creating id - should be more unique
*/ */
...@@ -104,4 +104,8 @@ public class ActivityHandler { ...@@ -104,4 +104,8 @@ public class ActivityHandler {
return postActivity(userId, eAction, source, dest, eType, creationTime, metaNode); return postActivity(userId, eAction, source, dest, eType, creationTime, metaNode);
} }
public boolean postActivity(String userId,EnumActivityAction eAction,String source,String dest,EnumActivityType eType,
Long creationTime,JsonNode metaData){
return postActivity(userId, eAction, source, dest, eType.getStrActivityType(), creationTime, metaData);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment