@Service public class RulesService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RulesService.FileFormat |
| Constructor and Description |
|---|
RulesService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteById(String id) |
org.springframework.data.domain.Page<RuleEntity> |
findAll(org.springframework.data.domain.Pageable pageable) |
Optional<RuleEntity> |
getRuleByRuleId(String ruleId) |
void |
newRules(String fileName,
InputStream inputStream) |
byte[] |
rulesAsByteArray(RulesService.FileFormat format) |
void |
save(RuleEntity ruleEntity) |
Iterable<RuleEntity> |
search(String query) |
public void newRules(String fileName, InputStream inputStream) throws IOException
IOExceptionpublic byte[] rulesAsByteArray(RulesService.FileFormat format) throws IOException
IOExceptionpublic org.springframework.data.domain.Page<RuleEntity> findAll(org.springframework.data.domain.Pageable pageable)
public Optional<RuleEntity> getRuleByRuleId(String ruleId)
public void save(RuleEntity ruleEntity)
public void deleteById(String id)
public Iterable<RuleEntity> search(String query)
Copyright © 2019. All rights reserved.