AllMotechSecurityRules¶
- public class AllMotechSecurityRules¶
Implementation of DAO interface that utilizes a MDS back-end for storage. Only one MotechSecurityConfiguration file should be saved at a time, so adding the document looks for the old document in order to update it if it already exists. Rather than updating the object reference, the old configuration’s ID and revision are used for the new document.
Methods¶
addOrUpdate¶
- public void addOrUpdate(MotechSecurityConfiguration config)¶
getMotechSecurityConfiguration¶
- public MotechSecurityConfiguration getMotechSecurityConfiguration()¶
getRuleById¶
- public MotechURLSecurityRule getRuleById(Long id)¶
getRules¶
- public List<MotechURLSecurityRule> getRules()¶
getRulesByOrigin¶
- public List<MotechURLSecurityRule> getRulesByOrigin(String origin)¶
remove¶
- public void remove(MotechSecurityConfiguration config)¶
setDataService¶
- public void setDataService(MotechURLSecurityRuleDataService dataService)¶