Class CmsEntityWrapper

  • All Implemented Interfaces:
    org.timepedia.exporter.client.Exportable

    public class CmsEntityWrapper
    extends java.lang.Object
    implements org.timepedia.exporter.client.Exportable
    Exportable wrapper for entity instances.

    • Constructor Detail

      • CmsEntityWrapper

        public CmsEntityWrapper​(org.opencms.acacia.shared.CmsEntity entity)
        Wrapper constructor.

        Parameters:
        entity - the entity to be wrapped
    • Method Detail

      • addAttributeValueEntity

        public void addAttributeValueEntity​(java.lang.String attributeName,
                                            CmsEntityWrapper value)
        Wrapper method.

        Parameters:
        attributeName - argument for the wrapped method
        value - argument for the wrapped method
      • addAttributeValueString

        public void addAttributeValueString​(java.lang.String attributeName,
                                            java.lang.String value)
        Wrapper method.

        Parameters:
        attributeName - argument for the wrapped method
        value - argument for the wrapped method
      • getAttribute

        public CmsEntityAttributeWrapper getAttribute​(java.lang.String attributeName)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        Returns:
        the result of the wrapped method
      • getEntity

        public org.opencms.acacia.shared.CmsEntity getEntity()
        Gets the wrapped entity.

        Returns:
        the wrapped entity
      • getId

        public java.lang.String getId()
        Wrapper method.

        Returns:
        the result of the wrapped method
      • getTypeName

        public java.lang.String getTypeName()
        Wrapper method.

        Returns:
        the result of the wrapped method
      • hasAttribute

        public boolean hasAttribute​(java.lang.String attributeName)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        Returns:
        the result of the wrapped method
      • insertAttributeValueEntity

        public void insertAttributeValueEntity​(java.lang.String attributeName,
                                               CmsEntityWrapper value,
                                               int index)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        value - parameter for the wrapped method
        index - parameter for the wrapped method
      • insertAttributeValueString

        public void insertAttributeValueString​(java.lang.String attributeName,
                                               java.lang.String value,
                                               int index)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        value - parameter for the wrapped method
        index - parameter for the wrapped method
      • removeAttribute

        public void removeAttribute​(java.lang.String attributeName)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
      • removeAttributeSilent

        public void removeAttributeSilent​(java.lang.String attributeName)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
      • removeAttributeValue

        public void removeAttributeValue​(java.lang.String attributeName,
                                         int index)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        index - parameter for the wrapped method
      • setAttributeValueEntity

        public void setAttributeValueEntity​(java.lang.String attributeName,
                                            CmsEntityWrapper value)
        Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        value - parameter for the wrapped method
      • setAttributeValueString

        public void setAttributeValueString​(java.lang.String attributeName,
                                            java.lang.String value,
                                            int index)
        public void setAttributeValueEntity(String attributeName, CmsEntityWrapper value, int index) { m_entity.setAttributeValue(attributeName, value.getEntity(), index); } public void setAttributeValueString(String attributeName, String value) { m_entity.setAttributeValue(attributeName, value); } /** Wrapper method.

        Parameters:
        attributeName - parameter for the wrapped method
        value - parameter for the wrapped method
        index - parameter for the wrapped method
      • setEntity

        public void setEntity​(org.opencms.acacia.shared.CmsEntity entity)
        Sets the wrapped entity.

        Parameters:
        entity - the entity to wrap
      • toJSON

        public java.lang.String toJSON()
        Wrapper method.

        Returns:
        the result of the wrapped method