public String getDescription(Entry ge) { StringBuilder sb = new StringBuilder("<html><body><b>Folder "); sb.append(getDirectory((GroupEntry) ge)); sb.append("</b>"); if(LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true)) { sb.append(" <font color=\"gray\">(includes sub-folders)</font>"); } sb.append("</body></html>"); return sb.toString(); }
private void reset() { modified = false; timeOfCurrentUpdate = System.currentTimeMillis(); retainedFileToWebLocationMap.clear(); webLocationToFileLocationMap.clear(); if(ge != null) { folder = getDirectory(ge); recursive = LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true); } else { folder = null; } }
public String getDescription(Entry ge) { StringBuilder sb = new StringBuilder("<html><body><b>Folder Repository for "); sb.append(getDirectory((GroupEntry) ge)); sb.append("</b>"); if (LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true)) { sb.append(" <font color=\"gray\">(Recursive)</font>"); } sb.append("</body></html>"); return sb.toString(); }
public String getDescription(Entry ge) { StringBuffer sb = new StringBuffer("<html><body><b>Folder Repository for "); sb.append(getDirectory((GroupEntry) ge)); sb.append("</b>"); if (LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true)) { sb.append(" <font color=\"gray\">(Recursive)</font>"); } sb.append("</body></html>"); return sb.toString(); }
public String getDescription(Entry ge) { StringBuffer sb = new StringBuffer("<html><body><b>Folder Repository for "); sb.append(getDirectory((GroupEntry) ge)); sb.append("</b>"); if (LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true)) { sb.append(" <font color=\"gray\">(Recursive)</font>"); } sb.append("</body></html>"); return sb.toString(); }
private void reset() { modified = false; timeOfCurrentUpdate = System.currentTimeMillis(); retainedFileToWebLocationMap.clear(); webLocationToFileLocationMap.clear(); if (ge != null) { folder = getDirectory(ge); recursive = LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true); } else { folder = null; } }
private void reset() { modified = false; timeOfCurrentUpdate = System.currentTimeMillis(); retainedFileToWebLocationMap.clear(); webLocationToFileLocationMap.clear(); if (ge != null) { folder = getDirectory(ge); recursive = LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true); } else { folder = null; } }
private void reset() { modified = false; timeOfCurrentUpdate = System.currentTimeMillis(); retainedFileToWebLocationMap.clear(); webLocationToFileLocationMap.clear(); if (ge != null) { folder = getDirectory(ge); recursive = LibraryUtilities.getBooleanProperty(ge, RECURSIVE_PROP, true); } else { folder = null; } }
public boolean isSuitable(Entry entry) { if (!(entry instanceof GroupEntry)) { return false; } GroupEntry ge = (GroupEntry) entry; File dir = getDirectory(ge); boolean enabled = LibraryUtilities.getBooleanProperty(ge, LibraryUtilities.AUTO_UPDATE_PROP, false); boolean hasRightType = ge.getId() != null && ge.getId().startsWith(getIdPrefix()) && enabled && dir != null; if (hasRightType && (!dir.exists() || !dir.isDirectory())) { logger.warn("Folder repository probably came from another system"); logger.warn("Could not be updated because directory " + dir + " does not exist"); if (!warnedUserOfBadRepositoryDeclaration) { logger.error("Bad ontology library declaration - check logs. Warnings now disabled for this session.", new IOException()); warnedUserOfBadRepositoryDeclaration = true; } return false; } return hasRightType; }
public boolean isSuitable(Entry entry) { if(!(entry instanceof GroupEntry)) { return false; } GroupEntry ge = (GroupEntry) entry; File dir = getDirectory(ge); boolean enabled = LibraryUtilities.getBooleanProperty(ge, LibraryUtilities.AUTO_UPDATE_PROP, false); boolean hasRightType = ge.getId() != null && ge.getId().startsWith(getIdPrefix()) && enabled && dir != null; if(hasRightType && (!dir.exists() || !dir.isDirectory())) { logger.warn("Folder repository probably came from another system"); logger.warn("Could not be updated because directory " + dir + " does not exist"); if(!warnedUserOfBadRepositoryDeclaration) { logger.error("Bad ontology library declaration - check logs. Warnings now disabled for this session."); warnedUserOfBadRepositoryDeclaration = true; } return false; } return hasRightType; }
public boolean isSuitable(Entry entry) { if (!(entry instanceof GroupEntry)) { return false; } GroupEntry ge = (GroupEntry) entry; File dir = getDirectory(ge); boolean enabled = LibraryUtilities.getBooleanProperty(ge, LibraryUtilities.AUTO_UPDATE_PROP, false); boolean hasRightType = ge.getId() != null && ge.getId().startsWith(ID_PREFIX) && enabled && dir != null; if (hasRightType && (!dir.exists() || !dir.isDirectory())) { logger.warn("Folder repository probably came from another system"); logger.warn("Could not be updated because directory " + dir + " does not exist"); if (!warnedUserOfBadRepositoryDeclaration) { ProtegeApplication.getErrorLog().logError(new IOException("Bad ontology library declaration - check logs. Warnings now disabled for this session.")); warnedUserOfBadRepositoryDeclaration = true; } return false; } return hasRightType; }
public boolean isSuitable(Entry entry) { if (!(entry instanceof GroupEntry)) { return false; } GroupEntry ge = (GroupEntry) entry; File dir = getDirectory(ge); boolean enabled = LibraryUtilities.getBooleanProperty(ge, LibraryUtilities.AUTO_UPDATE_PROP, false); boolean hasRightType = ge.getId() != null && ge.getId().startsWith(getIdPrefix()) && enabled && dir != null; if (hasRightType && (!dir.exists() || !dir.isDirectory())) { logger.warn("Folder repository probably came from another system"); logger.warn("Could not be updated because directory " + dir + " does not exist"); if (!warnedUserOfBadRepositoryDeclaration) { ProtegeApplication.getErrorLog().logError(new IOException("Bad ontology library declaration - check logs. Warnings now disabled for this session.")); warnedUserOfBadRepositoryDeclaration = true; } return false; } return hasRightType; }