Package org.opencms.acacia.client.entity
Interface I_CmsEntityBackend
- All Known Implementing Classes:
CmsEntityBackend
public interface I_CmsEntityBackend
The interface for VIE implementations.
-
Method Summary
Modifier 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.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.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.
-
Method Details
-
clearEntities
void clearEntities()Clears all entities from VIE. -
createEntity
Creates a new entity registering it within VIE.- Parameters:
entityId- the entity identityType- the entity type- Returns:
- the new entity
-
createType
Creates a new type.- Parameters:
id- the type id/name- Returns:
- the new type
-
getAttributeElements
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.- Parameters:
entityId- the entity id/subjectattributeName- the attribute namecontext- the context to search within- Returns:
- the elements
-
getEntity
Returns the entity with the given id.- Parameters:
entityId- the entity id- Returns:
- the entity
-
getType
Returns the type with the given id/name.- Parameters:
id- the type id/name- Returns:
- the type
-
removeEntity
Removes the given entity from VIE.- Parameters:
entityId- the entity id