Add payload to policy operation

revert-70aa11f8
manoj 10 years ago
parent 0f7df72167
commit 05a3244040

@ -17,9 +17,6 @@
*/ */
package org.wso2.carbon.device.mgt.core.dto.operation.mgt; package org.wso2.carbon.device.mgt.core.dto.operation.mgt;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.Operation;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.ProfileOperation;
import java.util.List; import java.util.List;
public class PolicyOperation extends Operation{ public class PolicyOperation extends Operation{

@ -19,6 +19,11 @@
package org.wso2.carbon.device.mgt.core.operation.mgt.dao.util; package org.wso2.carbon.device.mgt.core.operation.mgt.dao.util;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.*; import org.wso2.carbon.device.mgt.core.dto.operation.mgt.*;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.CommandOperation;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.ConfigOperation;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.PolicyOperation;
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.ProfileOperation;
import org.wso2.carbon.device.mgt.core.operation.mgt.*;
public class OperationDAOUtil { public class OperationDAOUtil {

@ -119,7 +119,7 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
policyOperation.setProfileOperations(profileOperationList); policyOperation.setProfileOperations(profileOperationList);
PolicyManagementDataHolder.getInstance().getDeviceManagementService(). PolicyManagementDataHolder.getInstance().getDeviceManagementService().
addOperation(policyOperation, deviceIdentifiers); addOperation(policyOperation, deviceIdentifiers);
policyOperation.setPayLoad(policyOperation.getProfileOperations());
} else { } else {
return null; return null;
} }

Loading…
Cancel
Save