Class CmsEntityWrapper

java.lang.Object
org.opencms.acacia.client.export.CmsEntityWrapper
All Implemented Interfaces:
org.timepedia.exporter.client.Exportable

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

  • Constructor Details

    • CmsEntityWrapper

      Default constructor.

    • CmsEntityWrapper

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

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

    • addAttributeValueEntity

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

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

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

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

      Wrapper method.

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

      Wrapper 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 String getId()
      Wrapper method.

      Returns:
      the result of the wrapped method
    • getTypeName

      public String getTypeName()
      Wrapper method.

      Returns:
      the result of the wrapped method
    • hasAttribute

      public boolean hasAttribute(String attributeName)
      Wrapper method.

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

      public void insertAttributeValueEntity(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(String attributeName, 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(String attributeName)
      Wrapper method.

      Parameters:
      attributeName - parameter for the wrapped method
    • removeAttributeSilent

      public void removeAttributeSilent(String attributeName)
      Wrapper method.

      Parameters:
      attributeName - parameter for the wrapped method
    • removeAttributeValue

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

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

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

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

      public void setAttributeValueString(String attributeName, 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 String toJSON()
      Wrapper method.

      Returns:
      the result of the wrapped method