class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean deleteAssertion(String domainName, String policyName, Long assertionId) {

        final String caller = "deleteAssertion";
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", caller);
        }
        Policy policy = getPolicyObject(domainStruct, policyName);
        if (policy == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "policy not found", caller);
        }
        List<Assertion> assertions = policy.getAssertions();
        boolean deleted = false;
        for (int i = 0; i < assertions.size(); i++) {
            if (assertions.get(i).getId().equals(assertionId)) {
                assertions.remove(i);
                deleted = true;
                break;
            }
        }
        putDomainStruct(domainName, domainStruct);
        return deleted;
    }

    public  FileConnection(File rootDir, File quotaDir);

}