PermissionFactory permissionFactory = locator.getFactory(PermissionFactory.class); Actions action; switch (requestInput.getChannel().getMethod()) { case EXECUTE: action = Actions.execute; genericRequestChannel.setAppName(requestInput.getChannel().getAppName()); genericRequestChannel.setVersion(requestInput.getChannel().getVersion()); genericRequestChannel.setMethod(requestInput.getChannel().getMethod()); genericRequestChannel.setResources(requestInput.getChannel().getResources()); .newCreator(requestInput.getScopeId(), requestInput.getDeviceId(), responseMessage.getReceivedOn(), requestInput.getChannel().getAppName().getValue()); deviceEventCreator.setPosition(responseMessage.getPosition()); deviceEventCreator.setSentOn(responseMessage.getSentOn());
PermissionFactory permissionFactory = locator.getFactory(PermissionFactory.class); Actions action; switch (requestInput.getChannel().getMethod()) { case EXECUTE: action = Actions.execute; genericRequestChannel.setAppName(requestInput.getChannel().getAppName()); genericRequestChannel.setVersion(requestInput.getChannel().getVersion()); genericRequestChannel.setMethod(requestInput.getChannel().getMethod()); genericRequestChannel.setResources(requestInput.getChannel().getResources()); .newCreator(requestInput.getScopeId(), requestInput.getDeviceId(), responseMessage.getReceivedOn(), requestInput.getChannel().getAppName().getValue()); deviceEventCreator.setPosition(responseMessage.getPosition()); deviceEventCreator.setSentOn(responseMessage.getSentOn());
PermissionFactory permissionFactory = locator.getFactory(PermissionFactory.class); Actions action; switch (requestInput.getChannel().getMethod()) { case EXECUTE: action = Actions.execute; genericRequestChannel.setAppName(requestInput.getChannel().getAppName()); genericRequestChannel.setVersion(requestInput.getChannel().getVersion()); genericRequestChannel.setMethod(requestInput.getChannel().getMethod()); genericRequestChannel.setResources(requestInput.getChannel().getResources()); .newCreator(requestInput.getScopeId(), requestInput.getDeviceId(), responseMessage.getReceivedOn(), requestInput.getChannel().getAppName().getValue()); deviceEventCreator.setPosition(responseMessage.getPosition()); deviceEventCreator.setSentOn(responseMessage.getSentOn());
public JsonGenericRequestMessage(GenericRequestMessage genericRequestMessage) { setId(genericRequestMessage.getId()); setScopeId(genericRequestMessage.getScopeId()); setDeviceId(genericRequestMessage.getDeviceId()); setClientId(genericRequestMessage.getClientId()); setReceivedOn(genericRequestMessage.getReceivedOn()); setSentOn(genericRequestMessage.getSentOn()); setCapturedOn(genericRequestMessage.getCapturedOn()); setPosition(genericRequestMessage.getPosition()); setChannel(genericRequestMessage.getChannel()); setPayload(genericRequestMessage.getPayload()); }