Add payload to policy operation

merge-requests/7/head
manoj 9 years ago
parent 0f7df72167
commit 05a3244040

@ -17,9 +17,6 @@
*/
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;
public class PolicyOperation extends Operation{

@ -19,6 +19,11 @@
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.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 {

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

Loading…
Cancel
Save