Commit a83a8371 by amir

1.0.7 - add updateSubscriberParams

parent b7197cd4
## 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:
......
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'
......
...@@ -406,7 +406,8 @@ public interface Dao { ...@@ -406,7 +406,8 @@ public interface Dao {
String lastName, String lastName,
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);
......
...@@ -4538,7 +4538,22 @@ public class DaoDsImpl extends DaoImplBase { ...@@ -4538,7 +4538,22 @@ public class DaoDsImpl extends DaoImplBase {
restRespStr = restClient.post(C_SUBSCRIBER_ENTITY, params, null, UpdateParams.toString()); restRespStr = restClient.post(C_SUBSCRIBER_ENTITY, params, null, UpdateParams.toString());
return getResponseHandler(restRespStr); return getResponseHandler(restRespStr);
} }
@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 @Override
public RestResponse changeSubscriberPassword(String userName, public RestResponse changeSubscriberPassword(String userName,
String password, String password,
......
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