Class PropertyDWR
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dwr.PropertyDWR
-
public class PropertyDWR extends Object
Represents a Vitro entity to entity property. It includes values from the entities, object property statements, properties, and tables bundled up in a usable object. This is a class intended to support Direct Web Remoting(DWR). It exposes methods that can be called from javascript from browsers. We could expose some other objects but this allows us to expose only the methods we want for security reasons, though some of these are destructive.
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebug
-
Constructor Summary
Constructors Constructor Description PropertyDWR()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdeleteProp(String subjectUri, String predicateUri, String objectUri)CollectiongetAllPossiblePropInstForIndividual(String individualURI)CollectiongetAllPropInstByVClass(String classURI)Gets only unhidden properties.CollectiongetExistingProperties(String entityURI)Gets all of the properties that exist on the object property statements table for this entity.CollectiongetExistingQualifiers(String propertyURI)Deprecated.PropertyInstancegetProperty(String subjectURI, String predicateURI, String objectURI)intinsertProp(PropertyInstance prop)Objecttest()
-
-
-
Method Detail
-
test
public Object test()
-
getAllPropInstByVClass
public Collection getAllPropInstByVClass(String classURI)
Gets only unhidden properties.- Returns:
- Collection of PropertyInstance objs
-
getAllPossiblePropInstForIndividual
public Collection getAllPossiblePropInstForIndividual(String individualURI)
-
getProperty
public PropertyInstance getProperty(String subjectURI, String predicateURI, String objectURI)
-
insertProp
public int insertProp(PropertyInstance prop)
-
getExistingQualifiers
@Deprecated public Collection getExistingQualifiers(String propertyURI)
Deprecated.Gets all of the existing qualifiers for a given properties.id
-
getExistingProperties
public Collection getExistingProperties(String entityURI)
Gets all of the properties that exist on the object property statements table for this entity. This includes all rows that have the entityId as the domain and as the range. Propeties for which the entityId is the domain will be getDomainSide() == true and for which the entityId is the range side will be getDomainSide() == false.
-
-