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
long addPolicyDocument(PolicyDocumentCreateRequest policyDocument) throws pl.edu.icm.unity.base.exceptions.EngineException Adds new policy document- Parameters:
policyDocument
-- Returns:
- created policy document id
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
updatePolicyDocument
void updatePolicyDocument(PolicyDocumentUpdateRequest policyDocument) throws pl.edu.icm.unity.base.exceptions.EngineException Updates policy document, skip revision update- Parameters:
policyDocument
-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
updatePolicyDocumentWithRevision
void updatePolicyDocumentWithRevision(PolicyDocumentUpdateRequest policyDocument) throws pl.edu.icm.unity.base.exceptions.EngineException Updates policy document. Revision of the updated document is increment- Parameters:
policyDocument
-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
removePolicyDocument
void removePolicyDocument(long id) throws pl.edu.icm.unity.base.exceptions.EngineException Removes policy document by given id- Parameters:
id
-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getPolicyDocuments
Collection<PolicyDocumentWithRevision> getPolicyDocuments() throws pl.edu.icm.unity.base.exceptions.EngineExceptionGets all policy documents- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getPolicyDocument
PolicyDocumentWithRevision getPolicyDocument(long id) throws pl.edu.icm.unity.base.exceptions.EngineException Get single policy document by given id- Parameters:
id
-- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-