mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Create plugin level databases
This commit is contained in:
parent
a46d3a41de
commit
ab08b835f4
@ -32,6 +32,7 @@ public class Operation {
|
|||||||
private String code;
|
private String code;
|
||||||
private Properties properties;
|
private Properties properties;
|
||||||
private Type type;
|
private Type type;
|
||||||
|
private Long operationId;
|
||||||
|
|
||||||
@XmlElement
|
@XmlElement
|
||||||
public String getCode() {
|
public String getCode() {
|
||||||
@ -59,4 +60,14 @@ public class Operation {
|
|||||||
public void setType(Type type) {
|
public void setType(Type type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getOperationId() {
|
||||||
|
return operationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperationId(Long operationId) {
|
||||||
|
this.operationId = operationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -17,8 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.wso2.carbon.device.mgt.common.operation.mgt;
|
package org.wso2.carbon.device.mgt.common.operation.mgt;
|
||||||
|
|
||||||
import org.wso2.carbon.device.mgt.common.*;
|
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,4 +57,6 @@ public interface OperationManager {
|
|||||||
|
|
||||||
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException;
|
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException;
|
||||||
|
|
||||||
|
public Operation updateOperation(Long operationId, DeviceIdentifier deviceIdentifier, String responsePayLoad)
|
||||||
|
throws OperationManagementException;
|
||||||
}
|
}
|
||||||
@ -360,4 +360,10 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Operation updateOperation(Long operationId, DeviceIdentifier deviceIdentifier,
|
||||||
|
String responsePayLoad) throws OperationManagementException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -91,6 +91,11 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
@Override
|
@Override
|
||||||
public List<Operation> getOperations(DeviceIdentifier deviceId) throws OperationManagementException {
|
public List<Operation> getOperations(DeviceIdentifier deviceId) throws OperationManagementException {
|
||||||
return null;
|
return null;
|
||||||
|
try{
|
||||||
|
this.lookupOperationDAO(operation)
|
||||||
|
|
||||||
|
|
||||||
|
}catch(OperationManagementDAOException ex){}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -103,6 +108,12 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Operation updateOperation(Long operationId, DeviceIdentifier deviceIdentifier,
|
||||||
|
String responsePayLoad) throws OperationManagementException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
private OperationDAO lookupOperationDAO(Operation operation) {
|
private OperationDAO lookupOperationDAO(Operation operation) {
|
||||||
if (operation instanceof CommandOperation) {
|
if (operation instanceof CommandOperation) {
|
||||||
return commandOperationDAO;
|
return commandOperationDAO;
|
||||||
@ -112,5 +123,4 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
return simpleOperationDAO;
|
return simpleOperationDAO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,10 +135,17 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Operation updateOperation(Long operationId, DeviceIdentifier deviceIdentifier,
|
||||||
|
String responsePayLoad) throws OperationManagementException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendEnrolmentInvitation(EmailMessageProperties emailMessageProperties) throws DeviceManagementException {
|
public void sendEnrolmentInvitation(EmailMessageProperties emailMessageProperties) throws DeviceManagementException {
|
||||||
DeviceManagementDataHolder.getInstance().getDeviceManagementProvider()
|
DeviceManagementDataHolder.getInstance().getDeviceManagementProvider()
|
||||||
.sendEnrolmentInvitation(emailMessageProperties);
|
.sendEnrolmentInvitation(emailMessageProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user