Changing the policy interface

revert-70aa11f8
Geeth Munasinghe 10 years ago
parent 6f79ae79e2
commit a14980df1c

@ -31,7 +31,7 @@ public interface PolicyManagerService {
/** /**
* This method adds a policy to the platform * This method adds a policy to the platform
* @param policy * @param policy
* @return * @return primary key (generated key)
*/ */
int addPolicy(Policy policy); int addPolicy(Policy policy);
@ -41,7 +41,7 @@ public interface PolicyManagerService {
* @param deviceId * @param deviceId
* @param deviceType * @param deviceType
* @param policy * @param policy
* @return * @return primary key (generated key)
*/ */
int addPolicyToDevice(String deviceId, String deviceType, Policy policy) throws FeatureManagementException, PolicyManagementException; int addPolicyToDevice(String deviceId, String deviceType, Policy policy) throws FeatureManagementException, PolicyManagementException;
@ -50,7 +50,7 @@ public interface PolicyManagerService {
* This method adds a policy to device type by the related device type plugins. * This method adds a policy to device type by the related device type plugins.
* @param deviceType * @param deviceType
* @param policy * @param policy
* @return * @return primary key (generated key)
*/ */
int addPolicyToDeviceType(String deviceType,Policy policy) throws FeatureManagementException, PolicyManagementException; int addPolicyToDeviceType(String deviceType,Policy policy) throws FeatureManagementException, PolicyManagementException;
@ -59,7 +59,7 @@ public interface PolicyManagerService {
* This method adds the policy to specific role. * This method adds the policy to specific role.
* @param roleName * @param roleName
* @param policy * @param policy
* @return * @return primary key (generated key)
*/ */
int addPolicyToRole(String roleName, Policy policy) throws FeatureManagementException, PolicyManagementException; int addPolicyToRole(String roleName, Policy policy) throws FeatureManagementException, PolicyManagementException;

Loading…
Cancel
Save