private void recordEntries(Collection<URI> webLocations, URI physicalLocation, Set<URI> webLocationsFoundInParentDirectory, Set<URI> newWebLocations) { for (URI webLocation : webLocations) { if (!webLocationsFoundInParentDirectory.contains(webLocation)) { newWebLocations.add(webLocation); recordEntry(webLocation, physicalLocation); } else { recordEntry(appendScheme(webLocation, CatalogEntryManager.SHADOWED_SCHEME), physicalLocation); } } }
protected static String getIdString(String idPrefix, URI folderUri, boolean recursive, boolean autoUpdate) { return getIdString(idPrefix, folderUri.toString(), recursive, autoUpdate); }
@Override public boolean update(Entry entry) { String dir = LibraryUtilities.getStringProperty(entry, FolderGroupManager.DIR_PROP); boolean recursive = LibraryUtilities.getBooleanProperty(entry, FolderGroupManager.RECURSIVE_PROP, true); setAlgorithms(new OntologyNameAlgorithm()); super.update(entry); StringBuffer initializedId = new StringBuffer(ID_PREFIX); LibraryUtilities.addPropertyValue(initializedId, FolderGroupManager.DIR_PROP, dir); entry.setId(getIdString(getIdPrefix(), dir, recursive, false)); // turn off autoupdate return true; }
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(); }
public FolderGroupManager() { algorithms = new HashSet<>(); algorithms.add(new XmlBaseAlgorithm()); }
public static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(ID_PREFIX, folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }
@Override public boolean update(Entry entry) { String dir = LibraryUtilities.getStringProperty(entry, FolderGroupManager.DIR_PROP); boolean recursive = LibraryUtilities.getBooleanProperty(entry, FolderGroupManager.RECURSIVE_PROP, true); setAlgorithms(new OntologyNameAlgorithm()); super.update(entry); StringBuffer initializedId = new StringBuffer(ID_PREFIX); LibraryUtilities.addPropertyValue(initializedId, FolderGroupManager.DIR_PROP, dir); entry.setId(getIdString(getIdPrefix(), dir, recursive, false)); // turn off autoupdate return true; }
private void recordEntries(Collection<URI> webLocations, URI physicalLocation, Set<URI> webLocationsFoundInParentDirectory, Set<URI> newWebLocations) { for (URI webLocation : webLocations) { if (!webLocationsFoundInParentDirectory.contains(webLocation)) { newWebLocations.add(webLocation); recordEntry(webLocation, physicalLocation); } else { recordEntry(appendScheme(webLocation, CatalogEntryManager.SHADOWED_SCHEME), physicalLocation); } } }
protected static String getIdString(String idPrefix, URI folderUri, boolean recursive, boolean autoUpdate) { return getIdString(idPrefix, folderUri.toString(), recursive, autoUpdate); }
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 static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(ID_PREFIX, folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }
@Override public boolean update(Entry entry) { String dir = LibraryUtilities.getStringProperty(entry, FolderGroupManager.DIR_PROP); boolean recursive = LibraryUtilities.getBooleanProperty(entry, FolderGroupManager.RECURSIVE_PROP, true); setAlgorithms(new OntologyNameAlgorithm()); super.update(entry); StringBuffer initializedId = new StringBuffer(ID_PREFIX); LibraryUtilities.addPropertyValue(initializedId, FolderGroupManager.DIR_PROP, dir); entry.setId(getIdString(getIdPrefix(), dir, recursive, false)); // turn off autoupdate return true; }
private void recordEntries(Collection<URI> webLocations, URI physicalLocation, Set<URI> webLocationsFoundInParentDirectory, Set<URI> newWebLocations) { for (URI webLocation : webLocations) { if (!webLocationsFoundInParentDirectory.contains(webLocation)) { newWebLocations.add(webLocation); recordEntry(webLocation, physicalLocation); } else { recordEntry(appendScheme(webLocation, CatalogEntryManager.SHADOWED_SCHEME), physicalLocation); } } }
public static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(ID_PREFIX, folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }
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 static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(ID_PREFIX, folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }
private void recordEntries(Collection<URI> webLocations, URI physicalLocation, Set<URI> webLocationsFoundInParentDirectory, Set<URI> newWebLocations) { for(URI webLocation : webLocations) { if(!webLocationsFoundInParentDirectory.contains(webLocation)) { newWebLocations.add(webLocation); recordEntry(webLocation, physicalLocation); } else { recordEntry(appendScheme(webLocation, CatalogEntryManager.SHADOWED_SCHEME), physicalLocation); } } }
public static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(ID_PREFIX, folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }
public static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(ID_PREFIX, folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }
public static GroupEntry createGroupEntry(URI folder, boolean recursive, boolean autoUpdate, XmlBaseContext context) throws IOException { return new GroupEntry(getIdString(folder, recursive, autoUpdate), context, Prefer.PUBLIC, folder); }