|
|
@ -99,7 +99,7 @@ public interface PolicyManagementService {
|
|
|
|
"Server error occurred while adding a new policy.",
|
|
|
|
"Server error occurred while adding a new policy.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:add", roles = {"admin"})
|
|
|
|
Response addPolicy(
|
|
|
|
Response addPolicy(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "policy",
|
|
|
|
name = "policy",
|
|
|
@ -153,7 +153,7 @@ public interface PolicyManagementService {
|
|
|
|
"policies."),
|
|
|
|
"policies."),
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-view", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:list", roles = {"admin"})
|
|
|
|
Response getPolicies(
|
|
|
|
Response getPolicies(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "If-Modified-Since",
|
|
|
|
name = "If-Modified-Since",
|
|
|
@ -219,7 +219,7 @@ public interface PolicyManagementService {
|
|
|
|
"policy.",
|
|
|
|
"policy.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-view", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:view", roles = {"admin"})
|
|
|
|
Response getPolicy(
|
|
|
|
Response getPolicy(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "id",
|
|
|
|
name = "id",
|
|
|
@ -283,7 +283,7 @@ public interface PolicyManagementService {
|
|
|
|
"Server error occurred while updating the policy.",
|
|
|
|
"Server error occurred while updating the policy.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:modify", roles = {"admin"})
|
|
|
|
Response updatePolicy(
|
|
|
|
Response updatePolicy(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "id",
|
|
|
|
name = "id",
|
|
|
@ -329,7 +329,7 @@ public interface PolicyManagementService {
|
|
|
|
"Server error occurred while bulk removing policies.",
|
|
|
|
"Server error occurred while bulk removing policies.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:modify", roles = {"admin"})
|
|
|
|
Response removePolicies(
|
|
|
|
Response removePolicies(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "policyIds",
|
|
|
|
name = "policyIds",
|
|
|
@ -365,7 +365,7 @@ public interface PolicyManagementService {
|
|
|
|
message = "ErrorResponse in activating policies.",
|
|
|
|
message = "ErrorResponse in activating policies.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:add", roles = {"admin"})
|
|
|
|
Response activatePolicies(
|
|
|
|
Response activatePolicies(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "policyIds",
|
|
|
|
name = "policyIds",
|
|
|
@ -401,7 +401,7 @@ public interface PolicyManagementService {
|
|
|
|
message = "ErrorResponse in deactivating policies.",
|
|
|
|
message = "ErrorResponse in deactivating policies.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:add", roles = {"admin"})
|
|
|
|
Response deactivatePolicies(
|
|
|
|
Response deactivatePolicies(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "policyIds",
|
|
|
|
name = "policyIds",
|
|
|
@ -434,7 +434,7 @@ public interface PolicyManagementService {
|
|
|
|
message = "ErrorResponse in deactivating policies.",
|
|
|
|
message = "ErrorResponse in deactivating policies.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:add", roles = {"admin"})
|
|
|
|
Response applyChanges();
|
|
|
|
Response applyChanges();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -463,7 +463,7 @@ public interface PolicyManagementService {
|
|
|
|
message = "Exception in updating policy priorities.",
|
|
|
|
message = "Exception in updating policy priorities.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(scope = "policy-modify", roles = {"emm-admin"})
|
|
|
|
@Permission(scope = "policy:add", roles = {"admin"})
|
|
|
|
Response updatePolicyPriorities(
|
|
|
|
Response updatePolicyPriorities(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "priorityUpdatedPolicies",
|
|
|
|
name = "priorityUpdatedPolicies",
|
|
|
|