public IMetadataRepository create(URI location, String name, String type, Map<String, String> properties) { if (location.getScheme().equals("file")) //$NON-NLS-1$ return new LocalMetadataRepository(getAgent(), location, name, properties); return new URLMetadataRepository(getAgent(), location, name, properties); }
public IMetadataRepository create(URI location, String name, String type, Map<String, String> properties) { if (location.getScheme().equals("file")) //$NON-NLS-1$ return new LocalMetadataRepository(getAgent(), location, name, properties); return new URLMetadataRepository(getAgent(), location, name, properties); }
public IMetadataRepository create(URI location, String name, String type, Map<String, String> properties) { if (location.getScheme().equals("file")) //$NON-NLS-1$ return new LocalMetadataRepository(getAgent(), location, name, properties); return new URLMetadataRepository(getAgent(), location, name, properties); }
CacheManager cache = (CacheManager) getAgent().getService(CacheManager.SERVICE_NAME); if (cache == null) throw new IllegalArgumentException("Cache manager service not available"); //$NON-NLS-1$
CacheManager cache = (CacheManager) getAgent().getService(CacheManager.SERVICE_NAME); if (cache == null) throw new IllegalArgumentException("Cache manager service not available"); //$NON-NLS-1$
CacheManager cache = (CacheManager) getAgent().getService(CacheManager.SERVICE_NAME); if (cache == null) throw new IllegalArgumentException("Cache manager service not available"); //$NON-NLS-1$
IMetadataRepository result = new MetadataRepositoryIO(getAgent()).read(localFile.toURL(), descriptorStream, sub.newChild(100)); if (result != null && (flags & IRepositoryManager.REPOSITORY_HINT_MODIFIABLE) > 0 && !result.isModifiable()) return null;
IMetadataRepository result = new MetadataRepositoryIO(getAgent()).read(localFile.toURL(), descriptorStream, sub.newChild(100)); if (result != null && (flags & IRepositoryManager.REPOSITORY_HINT_MODIFIABLE) > 0 && !result.isModifiable()) return null;
IMetadataRepository result = new MetadataRepositoryIO(getAgent()).read(localFile.toURL(), descriptorStream, sub.newChild(100)); if (result != null && (flags & IRepositoryManager.REPOSITORY_HINT_MODIFIABLE) > 0 && !result.isModifiable()) return null;