@Override @Nonnull public ResourceProperties getProperties() { return getResource().getProperties(); }
@Override @Nonnull public ResourceProperties getProperties() { return new ResourcePropertiesDelegate(requestContext, this, getResource().getProperties()); } }
/******************************************************************************************************************* * * {@inheritDoc} * ******************************************************************************************************************/ @Nonnull private ResourcePath getDefaultExposedUri() throws NotFoundException, IOException { String title = getResource().getProperties().getProperty(PROPERTY_TITLE); title = deAccent(title); title = title.replaceAll(" ", "-") .replaceAll(",", "") .replaceAll("\\.", "") .replaceAll(";", "") .replaceAll("/", "") .replaceAll("!", "") .replaceAll("\\?", "") .replaceAll(":", "") .replaceAll("[^\\w-]*", ""); return new ResourcePath(title.toLowerCase()); }
final String segment = getResource().getProperties() .getProperty(PROPERTY_EXPOSED_URI, decode(file.getName(), "UTF-8")); relativeUri = relativeUri.appendedWith(getParent().getRelativeUri()).appendedWith(segment);
when(resource.getProperties()).thenReturn(properties);