Package org.opencms.acacia.client.entity
Class CmsEntityBackend
java.lang.Object
org.opencms.acacia.client.entity.CmsEntityBackend
- All Implemented Interfaces:
- I_CmsEntityBackend
The editor data back-end.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangeEntityContentValues(org.opencms.acacia.shared.CmsEntity original, org.opencms.acacia.shared.CmsEntity newContent) Changes the original entities content to the given new content.voidClears all entities from VIE.org.opencms.acacia.shared.CmsEntitycreateEntity(String entityId, String entityType) Creates a new entity registering it within VIE.static org.opencms.acacia.shared.CmsEntitycreateFromNativeWrapper(com.google.gwt.core.client.JavaScriptObject entityWrapper) Method to create an entity object from a wrapped instance.org.opencms.acacia.shared.CmsTypecreateType(String id) Creates a new type.List<com.google.gwt.dom.client.Element> getAttributeElements(String entityId, String attributeName, com.google.gwt.dom.client.Element context) Returns DOM elements displaying the given attribute's value.List<com.google.gwt.dom.client.Element> getAttributeElements(org.opencms.acacia.shared.CmsEntity entity, String attributeName, com.google.gwt.dom.client.Element context) Returns DOM elements displaying the given attribute's value.org.opencms.acacia.shared.CmsEntityReturns the entity with the given id.static CmsEntityBackendReturns the instance.org.opencms.acacia.shared.CmsTypeReturns the type with the given id/name.org.opencms.acacia.shared.CmsEntityregisterEntity(org.opencms.acacia.shared.CmsEntity entity) Registers the given entity within the VIE model.org.opencms.acacia.shared.CmsEntityregisterEntity(org.opencms.acacia.shared.CmsEntity entity, boolean discardIds) Registers the given entity within the VIE model.voidregisterTypes(org.opencms.acacia.shared.CmsType type, Map<String, org.opencms.acacia.shared.CmsType> types) Registers the type and it's sub-types.voidremoveEntity(String entityId) Removes the given entity from VIE.protected List<com.google.gwt.dom.client.Element> Returns a list of DOM elements matching the given selector.
- 
Constructor Details- 
CmsEntityBackendpublic CmsEntityBackend()Constructor.
 
- 
- 
Method Details- 
createFromNativeWrapperpublic static org.opencms.acacia.shared.CmsEntity createFromNativeWrapper(com.google.gwt.core.client.JavaScriptObject entityWrapper) Method to create an entity object from a wrapped instance.- Parameters:
- entityWrapper- the wrappe entity
- Returns:
- the entity
 
- 
getInstanceReturns the instance.- Returns:
- the instance
 
- 
clearEntitiesDescription copied from interface:I_CmsEntityBackendClears all entities from VIE.- Specified by:
- clearEntitiesin interface- I_CmsEntityBackend
- See Also:
 
- 
createEntityDescription copied from interface:I_CmsEntityBackendCreates a new entity registering it within VIE.- Specified by:
- createEntityin interface- I_CmsEntityBackend
- Parameters:
- entityId- the entity id
- entityType- the entity type
- Returns:
- the new entity
- See Also:
 
- 
createTypeDescription copied from interface:I_CmsEntityBackendCreates a new type.- Specified by:
- createTypein interface- I_CmsEntityBackend
- Parameters:
- id- the type id/name
- Returns:
- the new type
- See Also:
 
- 
getAttributeElementspublic List<com.google.gwt.dom.client.Element> getAttributeElements(String entityId, String attributeName, com.google.gwt.dom.client.Element context) Description copied from interface:I_CmsEntityBackendReturns DOM elements displaying the given attribute's value.- Specified by:
- getAttributeElementsin interface- I_CmsEntityBackend
- Parameters:
- entityId- the entity id/subject
- attributeName- the attribute name
- context- the context to search within
- Returns:
- the elements
- See Also:
 
- 
getEntityDescription copied from interface:I_CmsEntityBackendReturns the entity with the given id.- Specified by:
- getEntityin interface- I_CmsEntityBackend
- Parameters:
- entityId- the entity id
- Returns:
- the entity
- See Also:
 
- 
getTypeDescription copied from interface:I_CmsEntityBackendReturns the type with the given id/name.- Specified by:
- getTypein interface- I_CmsEntityBackend
- Parameters:
- id- the type id/name
- Returns:
- the type
- See Also:
 
- 
removeEntityDescription copied from interface:I_CmsEntityBackendRemoves the given entity from VIE.- Specified by:
- removeEntityin interface- I_CmsEntityBackend
- Parameters:
- entityId- the entity id
- See Also:
 
- 
selectprotected List<com.google.gwt.dom.client.Element> select(String selector, com.google.gwt.dom.client.Element context) Returns a list of DOM elements matching the given selector.- Parameters:
- selector- the CSS selector
- context- the context element
- Returns:
- the matching elements
 
 
-