Add operation code for policy operation

This commit is contained in:
manoj 2015-05-30 00:51:58 +05:30
parent a4e6b02e60
commit 6188878340
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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();