
com.adobe.forms.foundation.transfer.AssetScanInfo Maven / Gradle / Ivy
/*************************************************************************
*
* ADOBE CONFIDENTIAL
* __________________
*
* Copyright 2018 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
package com.adobe.forms.foundation.transfer;
import com.adobe.forms.foundation.service.FormsAssetType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.ArrayList;
import java.util.List;
/**
* Created by jalagari on 12/10/18.
*/
public class AssetScanInfo extends AssetInfo {
private String scannedBy;
private FormsAssetType type;
private String schemaRef;
private List issues;
private volatile Object schema;
public AssetScanInfo(String path) {
this.setAssetPath(path);
}
public AssetScanInfo(String assetPath, String title, long lastModifiedTime, long publishedTime, String lastModifiedBy, String publishedBy, String lastReplicateAction, boolean publsihed) {
super(assetPath, title, lastModifiedTime, publishedTime, lastModifiedBy, publishedBy, lastReplicateAction, publsihed);
}
public List getIssues() {
return issues;
}
public void setIssues(List issues) {
this.issues = issues;
}
public String getSchemaRef() {
return schemaRef;
}
public void setSchemaRef(String schemaRef) {
this.schemaRef = schemaRef;
}
public FormsAssetType getType() {
return type;
}
public void setType(FormsAssetType type) {
this.type = type;
}
public String getScannedBy() {
return scannedBy;
}
public void setScannedBy(String scannedBy) {
this.scannedBy = scannedBy;
}
@JsonIgnore
public Object getSchema() {
return schema;
}
public void setSchema(Object schema) {
this.schema = schema;
}
public void addIssue(String message, IssueType issueType) {
if(issues == null) {
issues = new ArrayList<>();
}
Issue issue = new Issue();
issue.type = issueType;
issue.message = message;
issues.add(issue);
}
public void addIssue(String message) {
addIssue(message, IssueType.ERROR);
}
public class Issue {
public String message;
public IssueType type;
}
public enum IssueType {
WARN, ERROR
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy