Class SelectedMedia
- java.lang.Object
-
- fr.paris.lutece.plugins.library.business.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 constructorSelectedMedia(int nMediaTypeId, int nDocumentId, int nMappingId)Constructor with every parameters initialized
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SelectedMedia o)java.util.Map<java.lang.String,java.lang.String>getAttributesFromMapping()fr.paris.lutece.plugins.document.business.DocumentgetDocument()Get the document associated with this mediaintgetDocumentId()Get the document idintgetMappingId()Get the mapping idintgetMediaTypeId()Get the id of the media typeintgetOrder()Get the order of the itemvoidsetAttributesFromMapping(java.util.Map<java.lang.String,java.lang.String> attributesFromMapping)voidsetDocument(fr.paris.lutece.plugins.document.business.Document document)Set the documentvoidsetDocumentId(int nDocumentId)Set the document idvoidsetMappingId(int nMappingId)Set the mapping idvoidsetMediaTypeId(int nMediaTypeId)Set the id of the media typevoidsetOrder(int nOrder)Set the order of the item
-
-
-
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 typenDocumentId- The document idnMappingId- 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:
compareToin interfacejava.lang.Comparable<SelectedMedia>
-
-