<commit_before>package com.imcode.imcms.domain.service;

import com.imcode.imcms.model.IpAccessRule;

import java.util.List;

public interface IpAccessRuleService {

    IpAccessRule getById(int id);

    List<IpAccessRule> getAll();

    IpAccessRule create(IpAccessRule rule);

    IpAccessRule update(IpAccessRule rule);

    void delete(int ruleId);

}<commit_msg>IMCMS-328 - New design to super admin page: IP access tab: - Add service interface method<commit_after>package com.imcode.imcms.domain.service;

import com.imcode.imcms.model.IpAccessRule;
import imcode.server.user.UserDomainObject;

import java.net.InetAddress;
import java.util.List;

public interface IpAccessRuleService {

    IpAccessRule getById(int id);

    List<IpAccessRule> getAll();

    IpAccessRule create(IpAccessRule rule);

    IpAccessRule update(IpAccessRule rule);

    void delete(int ruleId);

    boolean isAllowedToAccess(InetAddress accessIp, UserDomainObject user);

}
{'fraction_non_alphanumeric': 0.0893970893970894, 'fraction_numerical': 0.0031185031185031187, 'mean_word_length': 4.871951219512195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6890568', 'n_tokens_mistral': 317, 'n_tokens_neox': 292, 'n_words': 68}