Class SelectedMedia

  • All Implemented Interfaces:
    java.lang.Comparable<SelectedMedia>

    public class SelectedMedia
    extends java.lang.Object
    implements java.lang.Comparable<SelectedMedia>
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectedMedia()
      Default constructor
      SelectedMedia​(int nMediaTypeId, int nDocumentId, int nMappingId)
      Constructor with every parameters initialized
    • Constructor Detail

      • SelectedMedia

        public SelectedMedia()
        Default constructor
      • SelectedMedia

        public SelectedMedia​(int nMediaTypeId,
                             int nDocumentId,
                             int nMappingId)
        Constructor with every parameters initialized
        Parameters:
        nMediaTypeId - The id of the media type
        nDocumentId - The document id
        nMappingId - The mapping id
    • Method Detail

      • getMediaTypeId

        public int getMediaTypeId()
        Get the id of the media type
        Returns:
        The id of the media type
      • setMediaTypeId

        public void setMediaTypeId​(int nMediaTypeId)
        Set the id of the media type
        Parameters:
        nMediaTypeId - The id of the media type
      • getDocumentId

        public int getDocumentId()
        Get the document id
        Returns:
        The document id
      • setDocumentId

        public void setDocumentId​(int nDocumentId)
        Set the document id
        Parameters:
        nDocumentId - The document id
      • getMappingId

        public int getMappingId()
        Get the mapping id
        Returns:
        The mapping id
      • setMappingId

        public void setMappingId​(int nMappingId)
        Set the mapping id
        Parameters:
        nMappingId - The mapping id
      • getOrder

        public int getOrder()
        Get the order of the item
        Returns:
        The order of the item
      • setOrder

        public void setOrder​(int nOrder)
        Set the order of the item
        Parameters:
        nOrder - The order of the item
      • getDocument

        public fr.paris.lutece.plugins.document.business.Document getDocument()
        Get the document associated with this media
        Returns:
        The document
      • setDocument

        public void setDocument​(fr.paris.lutece.plugins.document.business.Document document)
        Set the document
        Parameters:
        document - The document
      • getAttributesFromMapping

        public java.util.Map<java.lang.String,​java.lang.String> getAttributesFromMapping()
      • setAttributesFromMapping

        public void setAttributesFromMapping​(java.util.Map<java.lang.String,​java.lang.String> attributesFromMapping)
      • compareTo

        public int compareTo​(SelectedMedia o)
        Specified by:
        compareTo in interface java.lang.Comparable<SelectedMedia>