Class CmsEntityBackend

    • Constructor Summary

      Constructors 
      Constructor Description
      CmsEntityBackend()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changeEntityContentValues​(org.opencms.acacia.shared.CmsEntity original, org.opencms.acacia.shared.CmsEntity newContent)
      Changes the original entities content to the given new content.
      void clearEntities()
      Clears all entities from VIE.
      org.opencms.acacia.shared.CmsEntity createEntity​(java.lang.String entityId, java.lang.String entityType)
      Creates a new entity registering it within VIE.
      static org.opencms.acacia.shared.CmsEntity createFromNativeWrapper​(com.google.gwt.core.client.JavaScriptObject entityWrapper)
      Method to create an entity object from a wrapped instance.
      org.opencms.acacia.shared.CmsType createType​(java.lang.String id)
      Creates a new type.
      java.util.List<com.google.gwt.dom.client.Element> getAttributeElements​(java.lang.String entityId, java.lang.String attributeName, com.google.gwt.dom.client.Element context)
      Returns DOM elements displaying the given attribute's value.
      java.util.List<com.google.gwt.dom.client.Element> getAttributeElements​(org.opencms.acacia.shared.CmsEntity entity, java.lang.String attributeName, com.google.gwt.dom.client.Element context)
      Returns DOM elements displaying the given attribute's value.
      org.opencms.acacia.shared.CmsEntity getEntity​(java.lang.String entityId)
      Returns the entity with the given id.
      static CmsEntityBackend getInstance()
      Returns the instance.
      org.opencms.acacia.shared.CmsType getType​(java.lang.String id)
      Returns the type with the given id/name.
      org.opencms.acacia.shared.CmsEntity registerEntity​(org.opencms.acacia.shared.CmsEntity entity)
      Registers the given entity within the VIE model.
      org.opencms.acacia.shared.CmsEntity registerEntity​(org.opencms.acacia.shared.CmsEntity entity, boolean discardIds)
      Registers the given entity within the VIE model.
      void registerTypes​(org.opencms.acacia.shared.CmsType type, java.util.Map<java.lang.String,​org.opencms.acacia.shared.CmsType> types)
      Registers the type and it's sub-types.
      void removeEntity​(java.lang.String entityId)
      Removes the given entity from VIE.
      protected java.util.List<com.google.gwt.dom.client.Element> select​(java.lang.String selector, com.google.gwt.dom.client.Element context)
      Returns a list of DOM elements matching the given selector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait