public String getFriendlyName(final String identifier) { Validate.notNull(identifier, "Identifier required"); final LogicalPath p = getPath(identifier); if (p == null) { return identifier; } return p.getName() + getRelativeSegment(identifier); }
public Collection<LogicalPath> getSourcePaths() { return getPaths(true); } }
public LogicalPath getPath(final String identifier) { final PhysicalPath parent = getApplicablePhysicalPath(identifier); if (parent == null) { return null; } return parent.getLogicalPath(); }
@Override protected void activate(final ComponentContext cContext) { super.activate(cContext); this.context = cContext.getBundleContext(); populatePaths(getRoot()); }
public String getRelativeSegment(final String identifier) { final PhysicalPath parent = getApplicablePhysicalPath(identifier); if (parent == null) { return null; } final FileDetails parentFile = new FileDetails(parent.getLocation(), null); return parentFile.getRelativeSegment(identifier); }
public Collection<LogicalPath> getPaths() { return getPaths(false); }