Interface PolicyDocumentManagement
public interface PolicyDocumentManagement
Policy documents management API
- Author:
- P.Piernik
-
Method Summary
Modifier and TypeMethodDescriptionlong
addPolicyDocument
(PolicyDocumentCreateRequest policyDocument) Adds new policy documentgetPolicyDocument
(long id) Get single policy document by given idGets all policy documentsvoid
removePolicyDocument
(long id) Removes policy document by given idvoid
updatePolicyDocument
(PolicyDocumentUpdateRequest policyDocument) Updates policy document, skip revision updatevoid
updatePolicyDocumentWithRevision
(PolicyDocumentUpdateRequest policyDocument) Updates policy document.
-
Method Details
-
addPolicyDocument
Adds new policy document- Parameters:
policyDocument
-- Returns:
- created policy document id
- Throws:
EngineException
-
updatePolicyDocument
Updates policy document, skip revision update- Parameters:
policyDocument
-- Throws:
EngineException
-
updatePolicyDocumentWithRevision
void updatePolicyDocumentWithRevision(PolicyDocumentUpdateRequest policyDocument) throws EngineException Updates policy document. Revision of the updated document is increment- Parameters:
policyDocument
-- Throws:
EngineException
-
removePolicyDocument
Removes policy document by given id- Parameters:
id
-- Throws:
EngineException
-
getPolicyDocuments
Gets all policy documents- Returns:
- Throws:
EngineException
-
getPolicyDocument
Get single policy document by given id- Parameters:
id
-- Returns:
- Throws:
EngineException
-