/** * @deprecated use {@link #createAttributeDetail(Run, DefaultAnnotationContainer, String, String, String)} instead */ @Deprecated protected AttributeDetail createAttributeDetail(final AbstractBuild<?, ?> owner, final DefaultAnnotationContainer annotations, final String displayName, final String header, final String defaultEncoding) { return new AttributeDetail(owner, this, annotations.getAnnotations(), defaultEncoding, displayName, header + " " + annotations.getName()); }
/** * Creates a generic detail tab with the specified link. * * @param owner * the build as owner of the detail page * @param annotations * the annotations to display * @param displayName * the name of the view * @param header * the bread crumb name * @param defaultEncoding * the default encoding to be used when reading and parsing files * @return the detail view */ protected AttributeDetail createAttributeDetail(final AbstractBuild<?, ?> owner, final DefaultAnnotationContainer annotations, final String displayName, final String header, final String defaultEncoding) { return new AttributeDetail(owner, this, annotations.getAnnotations(), defaultEncoding, displayName, header + " " + annotations.getName()); }
/** * Creates a generic detail tab with the specified link. * * @param owner * the build as owner of the detail page * @param annotations * the annotations to display * @param displayName * the name of the view * @param header * the bread crumb name * @param defaultEncoding * the default encoding to be used when reading and parsing files * @return the detail view */ protected AttributeDetail createAttributeDetail(@Nonnull final Run<?, ?> owner, final DefaultAnnotationContainer annotations, final String displayName, final String header, final String defaultEncoding) { if (owner instanceof AbstractBuild && Compatibility.isOverridden(DetailFactory.class, getClass(), "createAttributeDetail", AbstractBuild.class, DefaultAnnotationContainer.class, String.class, String.class, String.class)) { return createAttributeDetail((AbstractBuild<?, ?>) owner, annotations, displayName, header, defaultEncoding); } else { return new AttributeDetail(owner, this, annotations.getAnnotations(), defaultEncoding, displayName, header + " " + annotations.getName()); } }