syncloud.google.docs.PathSearchResult Maven / Gradle / Ivy
package syncloud.google.docs;
import syncloud.core.log.Logger;
import syncloud.storage.NodeKey;
import java.util.List;
public class PathSearchResult {
private static Logger logger = Logger.getLogger(PathSearchResult.class);
private String resourceId;
private List missingFolders;
private NodeKey nodeKey;
public PathSearchResult(String resourceId) {
logger.info("found existing path");
this.resourceId = resourceId;
}
public PathSearchResult(String resourceId, List missingFolders) {
logger.info("missing folders: " + missingFolders);
this.resourceId = resourceId;
this.missingFolders = missingFolders;
}
public PathSearchResult(NodeKey nodeKey, String resourceId, List missingFolders) {
this(resourceId, missingFolders);
this.nodeKey = nodeKey;
}
public boolean isFound(){
return (missingFolders == null || missingFolders.isEmpty());
}
public String getResourceId() {
return resourceId;
}
public List getMissingFolders() {
return missingFolders;
}
public NodeKey getNodeKey() {
return nodeKey;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy