Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.java
/
mcz-core
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
43934a67
authored
Nov 30, 2016
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add postActivity with string type
parent
ac0d1405
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/main/java/mcz/core/util/ActivityHandler.java
src/main/java/mcz/core/util/ActivityHandler.java
View file @
43934a67
...
...
@@ -46,12 +46,12 @@ public class ActivityHandler {
* @param eAction
* @param source
* @param dest
* @param
eT
ype
* @param
t
ype
* @param creationTime
* @param metaData
* @return success
*/
public
boolean
postActivity
(
String
userId
,
EnumActivityAction
eAction
,
String
source
,
String
dest
,
EnumActivityType
eT
ype
,
public
boolean
postActivity
(
String
userId
,
EnumActivityAction
eAction
,
String
source
,
String
dest
,
String
t
ype
,
Long
creationTime
,
JsonNode
metaData
){
StringBuilder
sbId
=
new
StringBuilder
(
INITIAL_CAPACITY
);
Activity
activity
=
new
Activity
();
...
...
@@ -60,7 +60,7 @@ public class ActivityHandler {
activity
.
setSource
(
source
);
activity
.
setDest
(
dest
);
activity
.
setCreationTime
(
creationTime
);
activity
.
setType
(
eType
.
getStrActivityType
()
);
activity
.
setType
(
type
);
/*
* creating id - should be more unique
*/
...
...
@@ -104,4 +104,8 @@ public class ActivityHandler {
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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment