mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Change getEnrollmentQRCode method return type
This commit is contained in:
parent
1d229a9fe3
commit
539e814e2d
@ -0,0 +1,39 @@
|
|||||||
|
package org.wso2.carbon.device.mgt.common;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class represents the information of QR enrollment payload.
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "QREnrollmentPayload",
|
||||||
|
description = "Details related to QR enrollment to generate QR code.")
|
||||||
|
public class QREnrollmentPayload implements Serializable {
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "payload", value = "Platform configuration payload to generate QR code.", required = true)
|
||||||
|
private Map<String, Object> payload;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "invalidPlatformConfigs", value = "Invalid platform configs to show when an " +
|
||||||
|
"invalidation occurs.", required = true)
|
||||||
|
private List<String> invalidPlatformConfigs;
|
||||||
|
|
||||||
|
public Map<String, Object> getPayload() {
|
||||||
|
return payload;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayload(Map<String, Object> payload) {
|
||||||
|
this.payload = payload;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getInvalidPlatformConfigs() {
|
||||||
|
return invalidPlatformConfigs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvalidPlatformConfigs(List<String> invalidPlatformConfigs) {
|
||||||
|
this.invalidPlatformConfigs = invalidPlatformConfigs;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
package org.wso2.carbon.device.mgt.common.spi;
|
package org.wso2.carbon.device.mgt.common.spi;
|
||||||
|
|
||||||
|
import org.wso2.carbon.device.mgt.common.QREnrollmentPayload;
|
||||||
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
|
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -32,5 +33,5 @@ public interface DeviceTypeCommonService {
|
|||||||
* @return QR code Map which contains key value pairs to have for the QR String.
|
* @return QR code Map which contains key value pairs to have for the QR String.
|
||||||
* @throws DeviceManagementException if error occurred while generating the QR String for Ownership
|
* @throws DeviceManagementException if error occurred while generating the QR String for Ownership
|
||||||
*/
|
*/
|
||||||
Map<String, Object> getEnrollmentQRCode(String ownershipType) throws DeviceManagementException;
|
QREnrollmentPayload getEnrollmentQRCode(String ownershipType) throws DeviceManagementException;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user