Class EntityResourceReference

  • All Implemented Interfaces:
    ResourceReference

    public class EntityResourceReference
    extends AbstractResourceReference
    Represents an XWiki Resource Reference pointing to an Entity (Document, Space, Wiki, Object, etc).
    Since:
    6.1M2
    Version:
    $Id: f096cf0edd45f9a858e018ce1b4f66a8a66dcb2e $
    • Field Detail

      • TYPE

        public static final ResourceType TYPE
        Represents an Entity Resource Type.
    • Constructor Detail

      • EntityResourceReference

        public EntityResourceReference​(EntityReference entityReference,
                                       EntityResourceAction action)
        Parameters:
        entityReference - the entity reference being wrapped
        action - the instance representing the technical Action id (e.g. View, Download, etc)
      • EntityResourceReference

        @Unstable
        public EntityResourceReference​(EntityReference entityReference,
                                       EntityResourceAction action,
                                       String anchor)
        Parameters:
        entityReference - the entity reference being wrapped
        action - the instance representing the technical Action id (e.g. View, Download, etc)
        anchor - the anchor
        Since:
        15.4RC1