static ChannelLocator getChannelLocator(PersistentChannelLocator pcl) throws IllegalArgumentException { DeviceLocator dloc = new DeviceLocator(pcl.driverId().getValue(), pcl.interfaceId().getValue(), pcl.deviceAddress().getValue(), pcl.parameters().getValue()); ChannelLocator cloc = new ChannelLocator(pcl.channelAddress().getValue(), dloc); return cloc; }
private ChannelLocator createChannelLocator(DRS485DEConfigurationModel configuration) { DeviceLocator deviceLocator; String interfaceId = configuration.interfaceId().getValue(); String deviceAddress = configuration.deviceAddress().getValue(); String deviceParameters = configuration.deviceParameters().getValue(); deviceLocator = new DeviceLocator(DRIVER_ID, interfaceId, "", deviceParameters); return new ChannelLocator(deviceAddress + ":" + CHANNEL_ADDRESS, deviceLocator); }
@Override public HmDevice getChannel(HmDevice device, String channelAddress) { Objects.requireNonNull(device); Objects.requireNonNull(channelAddress); for (HmDevice channel : device.channels().getAllElements()) { if (channelAddress.equalsIgnoreCase(channel.address().getValue())) { return channel; } } return null; }
@Override public void onGET(OgemaHttpRequest req) { setText(config.serverURL().getValue(), req); } };
@Override public void onGET(OgemaHttpRequest req) { setValue(config.password().getValue(), req); } };
@Override public void onGET(OgemaHttpRequest req) { setValue(config.serverURL().getValue(), req); } };
@Override public void onGET(OgemaHttpRequest req) { StringResource source = getResource(sva, req, StringResource.class); myField.setValue(source.getValue()+"",req); }
@Override public void onGET(OgemaHttpRequest req) { setText(config.email().getValue(), req); } };
@Override public void onGET(OgemaHttpRequest req) { if (config.sms().exists()) { setText(config.sms().getValue(), req); } else { setText("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.remoteMessagePassword().exists()) { this.setValue(config.remoteMessagePassword().getValue(), req); } else { this.setValue("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.remoteMessageUser().exists()) { setText(config.remoteMessageUser().getValue(), req); } else { setText("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.xmpp().exists()) { setText(config.remoteMessagePassword().getValue(), req); } else { setText("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.remoteMessageRestUrl().exists()) { this.setValue(config.remoteMessageRestUrl().getValue(), req); } else { this.setValue("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.xmpp().exists()) { setText(config.xmpp().getValue(), req); } else { setText("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.remoteMessageUser().exists()) { this.setValue(config.remoteMessageUser().getValue(), req); } else { this.setValue("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.email().exists()) { this.setValue(config.email().getValue(), req); } else { this.setValue("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.sms().exists()) { this.setValue(config.sms().getValue(), req); } else { this.setValue("", req); } }
@Override public void onGET(OgemaHttpRequest req) { if (config.xmpp().exists()) { this.setValue(config.xmpp().getValue(), req); } else { this.setValue("", req); } }
@Override public void onPOSTComplete(String data, OgemaHttpRequest req) { if(object.isActive()) { T newCat = OGEMAResourceCopyHelper.copySubResourceIntoResourceList(objectList, object, appMan, false); newCat.getSubResource("name", StringResource.class).setValue( "CopyOf_"+object.getSubResource("name", StringResource.class).getValue()); } else { object.activate(true); } } @Override