Class PDFDocumentComponentModel

All Implemented Interfaces:
Serializable

public class PDFDocumentComponentModel extends SimpleCMSComponentModel
Generated model class for type PDFDocumentComponent first defined at extension cms2.

It represents PDF component that extends SimpleCMSComponent and contains one more attribute.

See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • PDFFILE

      public static final String PDFFILE
      Generated constant - Attribute key of PDFDocumentComponent.pdfFile attribute defined at extension cms2.
      See Also:
    • TITLE

      public static final String TITLE
      Generated constant - Attribute key of PDFDocumentComponent.title attribute defined at extension cms2.
      See Also:
    • HEIGHT

      public static final String HEIGHT
      Generated constant - Attribute key of PDFDocumentComponent.height attribute defined at extension cms2.
      See Also:
  • Constructor Details

    • PDFDocumentComponentModel

      public PDFDocumentComponentModel()
      Generated constructor - Default constructor for generic creation.
    • PDFDocumentComponentModel

      public PDFDocumentComponentModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • PDFDocumentComponentModel

      @Deprecated(since="4.1.1", forRemoval=true) public PDFDocumentComponentModel(CatalogVersionModel _catalogVersion, String _uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _catalogVersion - initial attribute declared by type CMSItem at extension cms2
      _uid - initial attribute declared by type CMSItem at extension cms2
    • PDFDocumentComponentModel

      @Deprecated(since="4.1.1", forRemoval=true) public PDFDocumentComponentModel(CatalogVersionModel _catalogVersion, ItemModel _owner, String _uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _catalogVersion - initial attribute declared by type CMSItem at extension cms2
      _owner - initial attribute declared by type Item at extension core
      _uid - initial attribute declared by type CMSItem at extension cms2
  • Method Details

    • getHeight

      @Accessor(qualifier="height", type=GETTER) public Integer getHeight()
      Generated method - Getter of the PDFDocumentComponent.height attribute defined at extension cms2.
      Returns:
      the height
    • getPdfFile

      @Accessor(qualifier="pdfFile", type=GETTER) public MediaModel getPdfFile()
      Generated method - Getter of the PDFDocumentComponent.pdfFile attribute defined at extension cms2.
      Returns:
      the pdfFile - It is a Pdf container
    • getPdfFile

      @Accessor(qualifier="pdfFile", type=GETTER) public MediaModel getPdfFile(Locale loc)
      Generated method - Getter of the PDFDocumentComponent.pdfFile attribute defined at extension cms2.
      Parameters:
      loc - the value localization key
      Returns:
      the pdfFile - It is a Pdf container
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getTitle

      @Accessor(qualifier="title", type=GETTER) public String getTitle()
      Generated method - Getter of the PDFDocumentComponent.title attribute defined at extension cms2.
      Returns:
      the title
    • getTitle

      @Accessor(qualifier="title", type=GETTER) public String getTitle(Locale loc)
      Generated method - Getter of the PDFDocumentComponent.title attribute defined at extension cms2.
      Parameters:
      loc - the value localization key
      Returns:
      the title
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setHeight

      @Accessor(qualifier="height", type=SETTER) public void setHeight(Integer value)
      Generated method - Setter of PDFDocumentComponent.height attribute defined at extension cms2.
      Parameters:
      value - the height
    • setPdfFile

      @Accessor(qualifier="pdfFile", type=SETTER) public void setPdfFile(MediaModel value)
      Generated method - Setter of PDFDocumentComponent.pdfFile attribute defined at extension cms2.
      Parameters:
      value - the pdfFile - It is a Pdf container
    • setPdfFile

      @Accessor(qualifier="pdfFile", type=SETTER) public void setPdfFile(MediaModel value, Locale loc)
      Generated method - Setter of PDFDocumentComponent.pdfFile attribute defined at extension cms2.
      Parameters:
      value - the pdfFile - It is a Pdf container
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setTitle

      @Accessor(qualifier="title", type=SETTER) public void setTitle(String value)
      Generated method - Setter of PDFDocumentComponent.title attribute defined at extension cms2.
      Parameters:
      value - the title
    • setTitle

      @Accessor(qualifier="title", type=SETTER) public void setTitle(String value, Locale loc)
      Generated method - Setter of PDFDocumentComponent.title attribute defined at extension cms2.
      Parameters:
      value - the title
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language