Spaces:
Build error
Build error
da-policyengine-dev / src /main /java /com /dalab /policyengine /dto /PolicyEvaluationOutputDTO.java
Download src/main/java/com/dalab/policyengine/dto/PolicyEvaluationOutputDTO.java from dalabsai/da-policyengine-dev: direct link, hf CLI and curl.
- Browser
- Download file 2.47 kB
-
https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/java/com/dalab/policyengine/dto/PolicyEvaluationOutputDTO.java
- Command line
-
hf download hf://spaces/dalabsai/da-policyengine-dev@refs/pr/1/src/main/java/com/dalab/policyengine/dto/PolicyEvaluationOutputDTO.java
-
curl -L -o PolicyEvaluationOutputDTO.java https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/java/com/dalab/policyengine/dto/PolicyEvaluationOutputDTO.java
2.47 kB
| package com.dalab.policyengine.dto; | |
| import java.time.Instant; | |
| import java.util.Map; | |
| import java.util.UUID; | |
| import com.dalab.policyengine.model.PolicyEvaluationStatus; | |
| public class PolicyEvaluationOutputDTO { | |
| private UUID id; | |
| private UUID policyId; | |
| private String policyName; // For convenience | |
| private String targetAssetId; | |
| private PolicyEvaluationStatus status; | |
| private Map<String, Object> evaluationDetails; // e.g., facts used, rules evaluated, outcome per rule | |
| private Map<String, Object> triggeredActions; // Actions taken based on the policy | |
| private Instant evaluatedAt; | |
| private UUID evaluationTriggeredByUserId; | |
| // Getters and Setters | |
| public UUID getId() { | |
| return id; | |
| } | |
| public void setId(UUID id) { | |
| this.id = id; | |
| } | |
| public UUID getPolicyId() { | |
| return policyId; | |
| } | |
| public void setPolicyId(UUID policyId) { | |
| this.policyId = policyId; | |
| } | |
| public String getPolicyName() { | |
| return policyName; | |
| } | |
| public void setPolicyName(String policyName) { | |
| this.policyName = policyName; | |
| } | |
| public String getTargetAssetId() { | |
| return targetAssetId; | |
| } | |
| public void setTargetAssetId(String targetAssetId) { | |
| this.targetAssetId = targetAssetId; | |
| } | |
| public PolicyEvaluationStatus getStatus() { | |
| return status; | |
| } | |
| public void setStatus(PolicyEvaluationStatus status) { | |
| this.status = status; | |
| } | |
| public Map<String, Object> getEvaluationDetails() { | |
| return evaluationDetails; | |
| } | |
| public void setEvaluationDetails(Map<String, Object> evaluationDetails) { | |
| this.evaluationDetails = evaluationDetails; | |
| } | |
| public Map<String, Object> getTriggeredActions() { | |
| return triggeredActions; | |
| } | |
| public void setTriggeredActions(Map<String, Object> triggeredActions) { | |
| this.triggeredActions = triggeredActions; | |
| } | |
| public Instant getEvaluatedAt() { | |
| return evaluatedAt; | |
| } | |
| public void setEvaluatedAt(Instant evaluatedAt) { | |
| this.evaluatedAt = evaluatedAt; | |
| } | |
| public UUID getEvaluationTriggeredByUserId() { | |
| return evaluationTriggeredByUserId; | |
| } | |
| public void setEvaluationTriggeredByUserId(UUID evaluationTriggeredByUserId) { | |
| this.evaluationTriggeredByUserId = evaluationTriggeredByUserId; | |
| } | |
| } |