public class DefaultPolicyVersionManager extends Object implements PolicyVersionManager
Constructor and Description |
---|
DefaultPolicyVersionManager() |
Modifier and Type | Method and Description |
---|---|
String |
createVersion(PolicyDTO policyDTO) |
void |
deletePolicy(String policyId) |
PolicyDTO |
getPolicy(String policyId,
String version) |
String[] |
getVersions(String policyId) |
void |
init(Properties properties)
init policy version handler
|
public void init(Properties properties)
PolicyVersionManager
init
in interface PolicyVersionManager
public PolicyDTO getPolicy(String policyId, String version) throws EntitlementException
getPolicy
in interface PolicyVersionManager
EntitlementException
public String createVersion(PolicyDTO policyDTO) throws EntitlementException
createVersion
in interface PolicyVersionManager
EntitlementException
public void deletePolicy(String policyId) throws EntitlementException
deletePolicy
in interface PolicyVersionManager
EntitlementException
public String[] getVersions(String policyId) throws EntitlementException
getVersions
in interface PolicyVersionManager
EntitlementException
Copyright © 2016 WSO2. All rights reserved.