mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add operation code for policy operation
This commit is contained in:
parent
a4e6b02e60
commit
6188878340
@ -28,6 +28,7 @@ public class PolicyOperation extends Operation {
|
|||||||
public List<ProfileOperation> getProfileOperations() {
|
public List<ProfileOperation> getProfileOperations() {
|
||||||
return profileOperations;
|
return profileOperations;
|
||||||
}
|
}
|
||||||
|
public static final String POLICY_OPERATION_CODE = "POLICY_BUNDLE";
|
||||||
|
|
||||||
public void setProfileOperations(List<ProfileOperation> profileOperations) {
|
public void setProfileOperations(List<ProfileOperation> profileOperations) {
|
||||||
this.profileOperations = profileOperations;
|
this.profileOperations = profileOperations;
|
||||||
|
|||||||
@ -104,6 +104,7 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
|
|||||||
PolicyOperation policyOperation = new PolicyOperation();
|
PolicyOperation policyOperation = new PolicyOperation();
|
||||||
policyOperation.setEnabled(true);
|
policyOperation.setEnabled(true);
|
||||||
policyOperation.setType(Operation.Type.POLICY);
|
policyOperation.setType(Operation.Type.POLICY);
|
||||||
|
policyOperation.setCode(PolicyOperation.POLICY_OPERATION_CODE);
|
||||||
|
|
||||||
for (ProfileFeature feature : effectiveFeatures) {
|
for (ProfileFeature feature : effectiveFeatures) {
|
||||||
ProfileOperation profileOperation = new ProfileOperation();
|
ProfileOperation profileOperation = new ProfileOperation();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user