/** * Check if rid has local part and if it is null. */ protected void checkLocalRid(IResourceIdentifier rid) { if(rid!=null && rid.getLocalIdentifier()!=null && rid.getLocalIdentifier().getUri()==null) { System.out.println("local null rid found: "+rid); // throw new RuntimeException("local rid is null"); } }
public void customResultAvailable(List<IResourceIdentifier> result) { final List<URL> res = new ArrayList<URL>(); for(int i=0; i<result.size(); i++) { if(!rootrid.equals(result.get(i))) { URL url = SUtil.toURL0(result.get(i).getLocalIdentifier().getUri()); if(url!=null) res.add(url); } } Set<URI> re = getInternalNonManagedURLs(); for(URI uri: re) { URL url = SUtil.toURL0(uri); if(url!=null) res.add(url); } // res.addAll(); // System.out.println("getAllUrls: "+(System.currentTimeMillis()-start)); ret.setResult(res); } });
if(pacl==null && ResourceIdentifier.isLocal(parid, component.getComponentIdentifier().getRoot()) && getInternalNonManagedURLs().contains(parid.getLocalIdentifier().getUri()))
boolean nhasch = n.getChildCount()>0 || (issyscp && ((IResourceIdentifier)n.getMyUserObject()).getLocalIdentifier().getUri().toString().indexOf(".jar")==-1); for(int i=0; i<cnt && !inserted; i++) boolean tmphasch = tmp.getChildCount()>0 || (issyscp && ((IResourceIdentifier)tmp.getMyUserObject()).getLocalIdentifier().getUri().toString().indexOf(".jar")==-1); if((!tmphasch && nhasch) || (tmphasch==nhasch && n.toString().compareTo(tmp.toString())<0 ))
/** * Test if equals. */ public boolean equals(Object obj) { boolean ret = false; if(obj instanceof ILocalResourceIdentifier) { ILocalResourceIdentifier other = (ILocalResourceIdentifier)obj; // ret = SUtil.equals(getComponentIdentifier(), other.getComponentIdentifier()) // && SUtil.equals(getUrl(), other.getUrl()); ret = SUtil.equals(getHostIdentifier(), other.getHostIdentifier()) && SUtil.equals(getUri(), other.getUri()); } return ret; }
if(pacl==null && ResourceIdentifier.isLocal(parid, component.getComponentIdentifier().getRoot()) && getInternalNonManagedURLs().contains(parid.getLocalIdentifier().getUri()))
addTopLevelURL(SUtil.toURL(b.getLocalIdentifier().getUri()));
assert rid.getLocalIdentifier()==null || !ResourceIdentifier.isLocal(rid, component.getComponentIdentifier().getRoot()) || !getInternalNonManagedURLs().contains(rid.getLocalIdentifier().getUri());
if(checkUri(rid.getLocalIdentifier().getUri())==null)
String url = process.getModel().getResourceIdentifier().getLocalIdentifier().getUri().toString();
ret = lrid.getUri().toString();
if(ResourceIdentifier.isLocal(rid, component.getComponentIdentifier().getRoot()) && getInternalNonManagedURLs().contains(rid.getLocalIdentifier().getUri()))
else if(ResourceIdentifier.isLocal(rid, component.getComponentIdentifier().getRoot()) && getInternalNonManagedURLs().contains(rid.getLocalIdentifier().getUri()))
ret.addProperty(new Property("lid_url", SUtil.convertPathToRelative(rid.getLocalIdentifier().getUri().toString()))); local = true;
public void customResultAvailable(final IComponentManagementService cms) new LocalResourceIdentifier(root, agent.getModel().getResourceIdentifier().getLocalIdentifier().getUri()), null);
rid.setLocalIdentifier(new LocalResourceIdentifier(cid, lid.getUri()));
public void customResultAvailable(final IComponentManagementService cms) new LocalResourceIdentifier(root, agent.getModel().getResourceIdentifier().getLocalIdentifier().getUri()), null);