Add operation code for policy operation

4.x.x
manoj 10 years ago
parent a4e6b02e60
commit 6188878340

@ -28,6 +28,7 @@ public class PolicyOperation extends Operation {
public List<ProfileOperation> getProfileOperations() {
return profileOperations;
}
public static final String POLICY_OPERATION_CODE = "POLICY_BUNDLE";
public void setProfileOperations(List<ProfileOperation> profileOperations) {
this.profileOperations = profileOperations;

@ -104,6 +104,7 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
PolicyOperation policyOperation = new PolicyOperation();
policyOperation.setEnabled(true);
policyOperation.setType(Operation.Type.POLICY);
policyOperation.setCode(PolicyOperation.POLICY_OPERATION_CODE);
for (ProfileFeature feature : effectiveFeatures) {
ProfileOperation profileOperation = new ProfileOperation();

Loading…
Cancel
Save