Class 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 Detail

      • debug

        public static boolean debug
    • Constructor Detail

      • PropertyDWR

        public PropertyDWR()
    • Method Detail

      • getAllPropInstByVClass

        public Collection getAllPropInstByVClass​(String classURI)
        Gets only unhidden properties.
        Returns:
        Collection of PropertyInstance objs
      • getAllPossiblePropInstForIndividual

        public Collection getAllPossiblePropInstForIndividual​(String individualURI)
      • deleteProp

        public int deleteProp​(String subjectUri,
                              String predicateUri,
                              String objectUri)
      • 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.