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
a83a8371
authored
Feb 14, 2017
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0.7 - add updateSubscriberParams
parent
b7197cd4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
README.md
build.gradle
src/main/java/mcz/core/beans/Dao.java
src/main/java/mcz/core/dsclient/DaoDsImpl.java
README.md
View file @
a83a8371
## mcz core
## mcz core
1.
0.7:
-
add update subscriber details with no scheme
1.
0.2:
1.
0.2:
-
change the push-server path
-
change the push-server path
1.
0.1:
1.
0.1:
...
...
build.gradle
View file @
a83a8371
group
'com.ipgallery.common'
group
'com.ipgallery.common'
version
'1.0.
6
'
version
'1.0.
7
'
apply
plugin:
'java'
apply
plugin:
'java'
apply
plugin:
'maven-publish'
apply
plugin:
'maven-publish'
...
...
src/main/java/mcz/core/beans/Dao.java
View file @
a83a8371
...
@@ -407,6 +407,7 @@ public interface Dao {
...
@@ -407,6 +407,7 @@ public interface Dao {
String
email
,
String
email
,
String
imageLink
);
String
imageLink
);
public
RestResponse
updateSubscriberParams
(
String
userName
,
Map
<
String
,
String
>
paramsMap
);
public
RestResponse
changeSubscriberPassword
(
String
userName
,
public
RestResponse
changeSubscriberPassword
(
String
userName
,
String
password
,
String
password
,
String
sipPassword
);
String
sipPassword
);
...
...
src/main/java/mcz/core/dsclient/DaoDsImpl.java
View file @
a83a8371
...
@@ -4540,6 +4540,21 @@ public class DaoDsImpl extends DaoImplBase {
...
@@ -4540,6 +4540,21 @@ public class DaoDsImpl extends DaoImplBase {
}
}
@Override
@Override
public
RestResponse
updateSubscriberParams
(
String
userName
,
Map
<
String
,
String
>
paramsMap
)
{
ObjectNode
UpdateParams
=
objMapper
.
createObjectNode
();
for
(
Entry
<
String
,
String
>
entry
:
paramsMap
.
entrySet
()){
UpdateParams
.
put
(
entry
.
getKey
(),
entry
.
getValue
());
}
String
restRespStr
=
null
;
String
operation
=
EnumSubscriberOperations
.
E_UPDATE_SUBSCRIBER_PARAMS
.
getStrSubscriberOperation
();
String
[]
params
=
new
String
[]{
operation
,
userName
};
restRespStr
=
restClient
.
post
(
C_SUBSCRIBER_ENTITY
,
params
,
null
,
UpdateParams
.
toString
());
return
getResponseHandler
(
restRespStr
);
}
@Override
public
RestResponse
changeSubscriberPassword
(
String
userName
,
public
RestResponse
changeSubscriberPassword
(
String
userName
,
String
password
,
String
password
,
String
sipPassword
)
{
String
sipPassword
)
{
...
...
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