Interface PageAttachmentReferenceResolver<T>

  • Type Parameters:
    T - the type of the representation (eg a String)

    @Role
    public interface PageAttachmentReferenceResolver<T>
    Resolve an Attachment reference defined in a given representation into a validated PageAttachmentReference object, ie with valid values and a valid hierarchy (eg an Attachment reference must have a parent which is a page reference, reference values must not be null, etc).
    Since:
    10.6RC1
    Version:
    $Id: d171ffeac924ae5ea5a14ea9e7823e932dd89427 $
    • Field Detail

      • TYPE_STRING

        static final ParameterizedType TYPE_STRING
        Type instance for PageAttachmentReferenceResolver<String>.
      • TYPE_REFERENCE

        static final ParameterizedType TYPE_REFERENCE
        Type instance for PageAttachmentReferenceResolver<EntityReference>.
    • Method Detail

      • resolve

        PageAttachmentReference resolve​(T attachmentReferenceRepresentation,
                                        Object... parameters)
        Parameters:
        attachmentReferenceRepresentation - the representation of an attachment reference (eg as a String)
        parameters - optional parameters. Their meaning depends on the resolver implementation
        Returns:
        the valid resolved attachment reference as an Object