Class EntityDWR
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dwr.EntityDWR
-
public class EntityDWR extends Object
This is a class to support Direct Web Remoting(DWR) in relation to vitro entities. It exposes classes that can be called from javascript from browsers.
-
-
Constructor Summary
Constructors Constructor Description EntityDWR()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndividualentityByURI(String entityURI)Gets an Entity object for a given entities.id.CollectiongetEntitiesByVClass(String vclassURI)Gets all of the entities given the vclass.StringinsertNewEntity(Individual ent)Insets a new entity into the Vitro system.
-
-
-
Method Detail
-
insertNewEntity
public String insertNewEntity(Individual ent)
Insets a new entity into the Vitro system.- Returns:
- < 1 if failed, entityId if success.
-
entityByURI
public Individual entityByURI(String entityURI)
Gets an Entity object for a given entities.id.
-
getEntitiesByVClass
public Collection getEntitiesByVClass(String vclassURI)
Gets all of the entities given the vclass. This returns a collection of EntityWebapp objects.
-
-