Class SelectedMedia

java.lang.Object
fr.paris.lutece.plugins.library.business.SelectedMedia
All Implemented Interfaces:
Comparable<SelectedMedia>

public class SelectedMedia extends Object implements Comparable<SelectedMedia>
  • Constructor Details

    • 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 Details

    • 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 Map<String,String> getAttributesFromMapping()
    • setAttributesFromMapping

      public void setAttributesFromMapping(Map<String,String> attributesFromMapping)
    • compareTo

      public int compareTo(SelectedMedia o)
      Specified by:
      compareTo in interface Comparable<SelectedMedia>