📄 datagetset.java
字号:
public String getRadiusRetriesData() throws InvalidRequestException { checkValidity("getRadiusRetriesData"); return getElement("radiusServer").getAttribute("retries"); } /** * * @param data * * @throws InvalidRequestException */ public void setRadiusRetriesData(String data) throws InvalidRequestException { checkValidity("setRadiusRetriesData"); getElement("radiusServer").setAttribute("retries", data); } /** * */ public String getRadiusSecretKeyData() throws InvalidRequestException { checkValidity("getRadiusSecretKeyData"); return getElement("radiusServer").getAttribute("secretKey"); } /** * * @param data * * @throws InvalidRequestException */ public void setRadiusSecretKeyData(String data) throws InvalidRequestException { checkValidity("setRadiusSecretKeyData"); getElement("radiusServer").setAttribute("secretKey", data); } /** * */ public String getBillingFrequencyData() throws InvalidRequestException { checkValidity("getBillingFrequencyData"); return getElement("billing").getAttribute("frequency"); } /** * * @param data * * @throws InvalidRequestException */ public void setBillingFrequencyData(String data) throws InvalidRequestException { checkValidity("setBillingFrequencyData"); getElement("billing").setAttribute("frequency", data); } /** * */ public String getBillingDirPathData() throws InvalidRequestException { checkValidity("getBillingDirPathData"); return getElement("billing").getAttribute("dirPath"); } /** * */ public void setBillingDirPathData(String data) throws InvalidRequestException { checkValidity("setBillingDirPathData"); getElement("billing").setAttribute("dirPath", data); } /** * */ public String getBillingLockFileData() throws InvalidRequestException { checkValidity("getBillingLockFileData"); return getElement("billing").getAttribute("lockFile"); } /** * * @param data * * @throws InvalidRequestException */ public void setBillingLockFileData(String data) throws InvalidRequestException { checkValidity("setBillingLockFileData"); getElement("billing").setAttribute("lockFile", data); } /** * */ public String getBillingDataFileData() throws InvalidRequestException { checkValidity("getBillingDataFileData"); return getElement("billing").getAttribute("dataFile"); } /** * * @param data * * @throws InvalidRequestException */ public void setBillingDataFileData(String data) throws InvalidRequestException { checkValidity("setBillingDataFileData"); getElement("billing").setAttribute("dataFile", data); } /** * */ public String getBillingUnsentExtensionData() throws InvalidRequestException { checkValidity("getBillingUnsentExtensionData"); return getElement("billing").getAttribute("unsentExtension"); } /** * * @param data * * @throws InvalidRequestException */ public void setBillingUnsentExtensionData(String data) throws InvalidRequestException { checkValidity("setBillingUnsentExtensionData"); getElement("billing").setAttribute("unsentExtension", data); } /** * */ public String getBillingRolloverSizeData() throws InvalidRequestException { checkValidity("getBillingRolloverSizeData"); return getElement("billing").getAttribute("rolloverSize"); } /** * * @param data * * @throws InvalidRequestException */ public void setBillingRolloverSizeData(String data) throws InvalidRequestException { checkValidity("setBillingRolloverSizeData"); getElement("billing").setAttribute("rolloverSize", data); } /** * */ public String getBillingRolloverPeriodData() throws InvalidRequestException { checkValidity("getBillingRolloverPeriodData"); return getElement("billing").getAttribute("rolloverPeriod"); } /** * * @param data * * @throws InvalidRequestException */ public void setBillingRolloverPeriodData(String data) throws InvalidRequestException { checkValidity("setBillingRolloverPeriodData"); getElement("billing").setAttribute("rolloverPeriod", data); } /** * */ public boolean getBillForRingtimeData() throws InvalidRequestException { checkValidity("getBillForRingtimeData"); String truth = getElement("billing").getAttribute("billForRingtime"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setBillForRingtimeData(boolean truth) throws InvalidRequestException { checkValidity("setBillForRingtimeData"); if (truth) { getElement("billing").setAttribute("billForRingtime", "true"); } else { getElement("billing").setAttribute("billForRingtime", "false"); } } //methods from DvrData public String getCameraName(int i) throws InvalidRequestException { checkValidity("getCameraName"); String Camera="Camera"+i; return getElement(Camera).getAttribute("Name"); } /** * * @param data * * @throws InvalidRequestException */ public void setCameraNameData(String CameraName,String data) throws InvalidRequestException { checkValidity("setCameraNameData"); getElement(CameraName).setAttribute("Name", data); } /** * */ public boolean getCameraPreviewData(int i) throws InvalidRequestException { checkValidity("getCameraPreviewData"); String Camera="Camera"+i; String truth = getElement(Camera).getAttribute("Preview"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setCameraPreviewData(boolean truth,int i) throws InvalidRequestException { checkValidity("setCameraPreviewData"); String Camera="Camera"+i; if (truth) { getElement(Camera).setAttribute("Preview", "true"); } else { getElement(Camera).setAttribute("Preview", "false"); } } /** * */ public boolean getCameraAlarmData(int i) throws InvalidRequestException { checkValidity("getCameraAlarmData"); String Camera="Camera"+i; String truth = getElement(Camera).getAttribute("Alarm"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setCameraAlarmData(boolean truth,int i) throws InvalidRequestException { checkValidity("setCameraAlarmData"); String Camera="Camera"+i; if (truth) { getElement(Camera).setAttribute("Alarm", "true"); } else { getElement(Camera).setAttribute("Alarm", "false"); } } /** * */ public boolean getCameraRecordData(int i) throws InvalidRequestException { checkValidity("getCameraRecordData"); String Camera="Camera"+i; String truth = getElement(Camera).getAttribute("Record"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setCameraRecordData(boolean truth,int i) throws InvalidRequestException { checkValidity("setCameraRecordData"); String Camera="Camera"+i; if (truth) { getElement(Camera).setAttribute("Record", "true"); } else { getElement(Camera).setAttribute("Record", "false"); } } /** * */ public boolean getCameraControlData(int i) throws InvalidRequestException { checkValidity("getCameraControlData"); String Camera="Camera"+i; String truth = getElement(Camera).getAttribute("Control"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setCameraControlData(boolean truth,int i) throws InvalidRequestException { checkValidity("setCameraControlData"); String Camera="Camera"+i; if (truth) { getElement(Camera).setAttribute("Control", "true"); } else { getElement(Camera).setAttribute("Control", "false"); } } /** * */ public String getCameraControlPortData(int i) throws InvalidRequestException { checkValidity("getCameraControlPortData"); String Camera="Camera"+i; return getElement(Camera).getAttribute("Port"); } /** * * @param data * * @throws InvalidRequestException */ public void setCameraControlPortData(String CameraName,String data) throws InvalidRequestException { checkValidity("setCameraControlPortData"); getElement(CameraName).setAttribute("Port", data); } /** * */ public String getCameraControlAddressData(int i) throws InvalidRequestException { checkValidity("getCameraControlAddressData"); String Camera="Camera"+i; //return getElement("Camera1").getAttribute("Address"); return getElement(Camera).getAttribute("Address"); } /** * * @param data * * @throws InvalidRequestException */ public void setCameraControlAddressData(String CameraName,String data) throws InvalidRequestException { checkValidity("setCameraControlAddressData"); //getElement("Camera1").setAttribute("Address", data); getElement(CameraName).setAttribute("Address", data); } //methods for DvrAccreditData public boolean getIsControlData(int i) throws InvalidRequestException { checkValidity("getIsControlData"); String Camera="Camera"+i; String truth = getElement(Camera).getAttribute("Control"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setIsControlData(boolean truth,int i) throws InvalidRequestException { checkValidity("setIsControlData"); String Camera="Camera"+i; if (truth) { getElement(Camera).setAttribute("Control", "true"); } else { getElement(Camera).setAttribute("Control", "false"); } } public boolean getPlayHistoryData(int i) throws InvalidRequestException { checkValidity("getPlayHistoryData"); String Camera="Camera"+i; String truth = getElement(Camera).getAttribute("History"); if (truth.equals("true")) { return true; } return false; } /** * * @param truth * * @throws InvalidRequestException */ public void setPlayHistoryData(boolean truth,int i) throws InvalidRequestException { checkValidity("setPlayHistoryData"); String Camera="Camera"+i; if (truth) { getElement(Camera).setAttribute("History", "true"); } else { getElement(Camera).setAttribute("History", "false"); } } // methods from RedirectData /** * * @param data * * @throws InvalidRequestException */ public void setSyncPortData(String data) throws InvalidRequestException { checkValidity("setSyncPortData"); setValue("syncPort", data); } /** * */ public String getSyncPortData() throws InvalidRequestException { checkValidity("getSyncPortData"); return getValue("syncPort"); } // method from EnvData /** * * @param data * * @throws InvalidRequestException */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -