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>(); } }
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>(); } }
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>(); } }