mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add payload to policy operation
This commit is contained in:
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…
Reference in New Issue
Block a user