class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean deleteRole(String domainName, String roleName) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "deleteRole");
        }
        HashMap<String, Role> roles = domainStruct.getRoles();

        if (roles != null) {
            roles.remove(roleName);
            putDomainStruct(domainName, domainStruct);
        }
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}