Package org.opencms.acacia.client.export
Class CmsEntityWrapper
java.lang.Object
org.opencms.acacia.client.export.CmsEntityWrapper
- All Implemented Interfaces:
org.timepedia.exporter.client.Exportable
Exportable wrapper for entity instances.
-
Constructor Summary
ConstructorDescriptionDefault constructor.CmsEntityWrapper
(org.opencms.acacia.shared.CmsEntity entity) Wrapper constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeValueEntity
(String attributeName, CmsEntityWrapper value) Wrapper method.void
addAttributeValueString
(String attributeName, String value) Wrapper method.getAttribute
(String attributeName) Wrapper method.Wrapper method.org.opencms.acacia.shared.CmsEntity
Gets the wrapped entity.getId()
Wrapper method.Wrapper method.boolean
hasAttribute
(String attributeName) Wrapper method.void
insertAttributeValueEntity
(String attributeName, CmsEntityWrapper value, int index) Wrapper method.void
insertAttributeValueString
(String attributeName, String value, int index) Wrapper method.void
removeAttribute
(String attributeName) Wrapper method.void
removeAttributeSilent
(String attributeName) Wrapper method.void
removeAttributeValue
(String attributeName, int index) Wrapper method.void
setAttributeValueEntity
(String attributeName, CmsEntityWrapper value) Wrapper method.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.void
setEntity
(org.opencms.acacia.shared.CmsEntity entity) Sets the wrapped entity.toJSON()
Wrapper method.
-
Constructor Details
-
CmsEntityWrapper
public CmsEntityWrapper()Default constructor.
-
-
Method Details
-
addAttributeValueEntity
Wrapper method.- Parameters:
attributeName
- argument for the wrapped methodvalue
- argument for the wrapped method
-
addAttributeValueString
Wrapper method.- Parameters:
attributeName
- argument for the wrapped methodvalue
- 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
Gets the wrapped entity.- Returns:
- the wrapped entity
-
getId
Wrapper method.- Returns:
- the result of the wrapped method
-
getTypeName
Wrapper method.- Returns:
- the result of the wrapped method
-
hasAttribute
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method- Returns:
- the result of the wrapped method
-
insertAttributeValueEntity
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
insertAttributeValueString
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
removeAttribute
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method
-
removeAttributeSilent
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped method
-
removeAttributeValue
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
setAttributeValueEntity
Wrapper method.- Parameters:
attributeName
- parameter for the wrapped methodvalue
- parameter for the wrapped method
-
setAttributeValueString
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 methodvalue
- parameter for the wrapped methodindex
- parameter for the wrapped method
-
toJSON
Wrapper method.- Returns:
- the result of the wrapped method
-