Class SelectedMedia
java.lang.Object
fr.paris.lutece.plugins.library.business.SelectedMedia
- All Implemented Interfaces:
Comparable<SelectedMedia>
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSelectedMedia(int nMediaTypeId, int nDocumentId, int nMappingId) Constructor with every parameters initialized -
Method Summary
Modifier and TypeMethodDescriptionintfr.paris.lutece.plugins.document.business.DocumentGet the document associated with this mediaintGet the document idintGet the mapping idintGet the id of the media typeintgetOrder()Get the order of the itemvoidsetAttributesFromMapping(Map<String, 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 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 typenDocumentId- The document idnMappingId- 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
-
setAttributesFromMapping
-
compareTo
- Specified by:
compareToin interfaceComparable<SelectedMedia>
-