Class PublicationSelection

  • All Implemented Interfaces:
    ClipboardOwner, Transferable, Serializable

    public class PublicationSelection
    extends ClipboardSelection
    implements Serializable
    Selection of a single publication in a given component instance.

    In the case the selection is about a publication alias, the original publication is then specified here as being the selected publication, not the alias. So, the component instance attribute of the publication cannot be used to identify the component instance in which the selection is done. This is why it is necessary to specify the component instance in which the selection was done when constructing such this object.

    See Also:
    Serialized Form
    • Field Detail

      • PublicationDetailFlavor

        public static final DataFlavor PublicationDetailFlavor
    • Constructor Detail

      • PublicationSelection

        public PublicationSelection​(PublicationDetail pub,
                                    NodePK fatherPK)
        Constructs a new selection of a single publication in a given component instance.
        Parameters:
        pub - the publication that is selected.
        fatherPK - the identifier of the resource that is the father of the publication. That is to say the resource to which is linked directly the publication. If the father is the component instance itself, then the WAPrimaryKey.getId() can be null.