Skip to content

Commit

Permalink
관리자 알림 관련 Session 수정 #370
Browse files Browse the repository at this point in the history
  • Loading branch information
pahnjy01 committed Feb 8, 2017
1 parent 49bf227 commit 9e9a35f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;


/**
Expand Down Expand Up @@ -178,6 +177,7 @@ public void executeService(String serviceId, String sessionId) {
try {
operation = serviceSDAProxy.getPCCountUri(session);
logger.info("Equipment Data = " + operation);
sessionDataUpdate(sessionStore,session,operation,DefaultSession.ADMIN_NOTI_DATA);
} catch (BadRequestException e) {
logger.warn("operation is not Count");
session = sessionStore.retrieveSessionDetail(localSessionId);
Expand Down Expand Up @@ -250,4 +250,10 @@ public Service retrieveServiceDetailByName(String serviceName) {
return service;
}


private void sessionDataUpdate(SessionStore sessionStore, Session session, String data, String key){
session.insertSessionData(key, data);
sessionStore.updateSession(session);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class DefaultSession implements Session {
public static final String DEVICE_KEY = "DEVICE_KEY";
public static final String DEVICE_LOCATION = "DEVICE_LOCATION";
public static final String DEVICE_RESULT = "DEVICE_RESULT";
public static final String ADMIN_NOTI_DATA = "ADMIN_NOTI_DATA";

/**
* control status
Expand Down

0 comments on commit 9e9a35f

Please sign in to comment.