Class AddConceptThroughObjectPropertyGenerator

  • All Implemented Interfaces:
    edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.EditConfigurationGenerator

    public class AddConceptThroughObjectPropertyGenerator
    extends edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultObjectPropertyFormGenerator
    implements edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.EditConfigurationGenerator
    This generator is for the case where a new concept is being added for an object property other than research/subject areas where the default object property form generator would work instead of the generator for managing concepts. In this case, we don't want the dropdown list for types for "add a new item of this type" to show concept subclasses, so we are overriding the fields to just include the Concept class.
    • Field Summary

      • Fields inherited from class edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultObjectPropertyFormGenerator

        customErrorMessages, doAutoComplete, maxNonACRangeIndividualCount, tooManyRangeIndividuals
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo getEditConfiguration​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq, javax.servlet.http.HttpSession session)  
      protected List<edu.cornell.mannlib.vitro.webapp.beans.VClass> getRangeTypes​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)  
      protected void setFields​(edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo editConfiguration, edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq, String predicateUri, List<edu.cornell.mannlib.vitro.webapp.beans.VClass> rangeTypes)  
      • Methods inherited from class edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultObjectPropertyFormGenerator

        addFormSpecificData, addFormSpecificDataForAC, getEditMode, getObjectUri, getPredicateUri, getSparqlForAcFilter, getSubjectUri, setFields
    • Constructor Detail

      • AddConceptThroughObjectPropertyGenerator

        public AddConceptThroughObjectPropertyGenerator()
    • Method Detail

      • getEditConfiguration

        public edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo getEditConfiguration​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq,
                                                                                                               javax.servlet.http.HttpSession session)
                                                                                                        throws Exception
        Specified by:
        getEditConfiguration in interface edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.EditConfigurationGenerator
        Overrides:
        getEditConfiguration in class edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultObjectPropertyFormGenerator
        Throws:
        Exception
      • getRangeTypes

        protected List<edu.cornell.mannlib.vitro.webapp.beans.VClass> getRangeTypes​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
        Overrides:
        getRangeTypes in class edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultObjectPropertyFormGenerator
      • setFields

        protected void setFields​(edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo editConfiguration,
                                 edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq,
                                 String predicateUri,
                                 List<edu.cornell.mannlib.vitro.webapp.beans.VClass> rangeTypes)
                          throws Exception
        Overrides:
        setFields in class edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.DefaultObjectPropertyFormGenerator
        Throws:
        Exception