Add operation type for policy operation

This commit is contained in:
manoj 2015-05-30 00:42:46 +05:30
parent 8a03c7a368
commit a4e6b02e60
2 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@ import java.util.Properties;
public class Operation implements Serializable {
public enum Type {
CONFIG, MESSAGE, INFO, COMMAND, PROFILE
CONFIG, MESSAGE, INFO, COMMAND, PROFILE, POLICY
}
public enum Status {

View File

@ -33,6 +33,7 @@ import org.wso2.carbon.policy.mgt.core.internal.PolicyManagementDataHolder;
import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class PolicyManagerServiceImpl implements PolicyManagerService {
@ -101,6 +102,8 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
List<ProfileOperation> profileOperationList = new ArrayList<ProfileOperation>();
PolicyOperation policyOperation = new PolicyOperation();
policyOperation.setEnabled(true);
policyOperation.setType(Operation.Type.POLICY);
for (ProfileFeature feature : effectiveFeatures) {
ProfileOperation profileOperation = new ProfileOperation();