public VolumeContentModel (LibraryImplementation impl, LibraryStorageArea area, String volumeType) { //TODO: Should listen on the impl this.impl = impl; this.area = area; this.volumeType = volumeType; if (impl instanceof LibraryImplementation2) { impl2 = (LibraryImplementation2)impl; } if (impl2 != null) { List<URI> l = impl2.getURIContent (volumeType); if (l != null) { content = new ArrayList<Object>(l); } } else { List<URL> l = this.impl.getContent (volumeType); if (l != null) { content = new ArrayList<Object>(l); } } if (content == null) { content = new ArrayList<Object>(); } }
private void propagateContent() { if (impl2 != null) { impl2.setURIContent (volumeType, NbCollections.checkedListByCopy(content, URI.class, true)); } else { impl.setContent (volumeType, NbCollections.checkedListByCopy(content, URL.class, true)); } }
private void propagateContent() { if (impl2 != null) { impl2.setURIContent (volumeType, NbCollections.checkedListByCopy(content, URI.class, true)); } else { impl.setContent (volumeType, NbCollections.checkedListByCopy(content, URL.class, true)); } }
private void propagateContent() { if (impl2 != null) { impl2.setURIContent (volumeType, NbCollections.checkedListByCopy(content, URI.class, true)); } else { impl.setContent (volumeType, NbCollections.checkedListByCopy(content, URL.class, true)); } }
public VolumeContentModel (LibraryImplementation impl, LibraryStorageArea area, String volumeType) { //TODO: Should listen on the impl this.impl = impl; this.area = area; this.volumeType = volumeType; if (impl instanceof LibraryImplementation2) { impl2 = (LibraryImplementation2)impl; } if (impl2 != null) { List<URI> l = impl2.getURIContent (volumeType); if (l != null) { content = new ArrayList<Object>(l); } } else { List<URL> l = this.impl.getContent (volumeType); if (l != null) { content = new ArrayList<Object>(l); } } if (content == null) { content = new ArrayList<Object>(); } }
if (proxy.getNewURIContents() != null) { for (Map.Entry<String,List<URI>> entry : proxy.getNewURIContents().entrySet()) { orig2.setURIContent(entry.getKey(), entry.getValue());
public ServerVolumeContentModel(LibraryImplementation impl, LibraryStorageArea area, String volumeType) { //TODO: Should listen on the impl this.impl = impl; this.area = area; this.volumeType = volumeType; if (impl instanceof LibraryImplementation2) { impl2 = (LibraryImplementation2)impl; } if (impl2 != null) { List<URI> l = impl2.getURIContent (volumeType); if (l != null) { content = new ArrayList<Object>(l); } } else { List<URL> l = this.impl.getContent (volumeType); if (l != null) { content = new ArrayList<Object>(l); } } if (content == null) { content = new ArrayList<Object>(); } }