Spaces:
Build error
Build error
Download src/main/java/com/dalab/policyengine/dto/PolicyRuleDTO.java from dalabsai/da-policyengine-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/java/com/dalab/policyengine/dto/PolicyRuleDTO.java
- Command line
-
hf download hf://spaces/dalabsai/da-policyengine-dev@refs/pr/1/src/main/java/com/dalab/policyengine/dto/PolicyRuleDTO.java
-
curl -L -o PolicyRuleDTO.java https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/java/com/dalab/policyengine/dto/PolicyRuleDTO.java
1.56 kB
| package com.dalab.policyengine.dto; | |
| import java.util.Map; | |
| import jakarta.validation.constraints.NotBlank; | |
| import jakarta.validation.constraints.Size; | |
| public class PolicyRuleDTO { | |
| private String id; // UUID as String, can be null for new rules in create/update | |
| private String name; | |
| private String description; | |
| private String condition; // MVEL expression | |
| private int priority = 1; | |
| private Map<String, Object> actions; // Optional rule-specific actions | |
| // Getters and Setters | |
| public String getId() { | |
| return id; | |
| } | |
| public void setId(String id) { | |
| this.id = id; | |
| } | |
| public String getName() { | |
| return name; | |
| } | |
| public void setName(String name) { | |
| this.name = name; | |
| } | |
| public String getDescription() { | |
| return description; | |
| } | |
| public void setDescription(String description) { | |
| this.description = description; | |
| } | |
| public String getCondition() { | |
| return condition; | |
| } | |
| public void setCondition(String condition) { | |
| this.condition = condition; | |
| } | |
| public int getPriority() { | |
| return priority; | |
| } | |
| public void setPriority(int priority) { | |
| this.priority = priority; | |
| } | |
| public Map<String, Object> getActions() { | |
| return actions; | |
| } | |
| public void setActions(Map<String, Object> actions) { | |
| this.actions = actions; | |
| } | |
| } | |