Class AddGrantRoleToPersonGenerator

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

    public class AddGrantRoleToPersonGenerator
    extends Object
    implements edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.EditConfigurationGenerator
    Custom form for adding a grant to an person for the predicates hasCo-PrincipalInvestigatorRole and hasPrincipalInvestigatorRole.
    • Constructor Detail

      • AddGrantRoleToPersonGenerator

        public AddGrantRoleToPersonGenerator()
    • 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)
        Specified by:
        getEditConfiguration in interface edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.EditConfigurationGenerator
      • setTemplate

        protected void setTemplate​(edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo editConfiguration,
                                   edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getN3ForGrantRole

        public String getN3ForGrantRole​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getN3ForNewGrant

        public String getN3ForNewGrant​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getN3ForExistingGrant

        public String getN3ForExistingGrant​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getEditMode

        public edu.cornell.mannlib.vitro.webapp.utils.FrontEndEditingUtils.EditMode getEditMode​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
        Methods for checking edit mode **
      • getRoleType

        public String getRoleType​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
        Methods that are REQUIRED to be implemented in subclasses
      • isShowRoleLabelField

        public boolean isShowRoleLabelField​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
        Methods with default values that may be overwritten when required by a subclass Both Default value and method that can be overwritten are included below
      • getRoleToGrantPredicate

        public String getRoleToGrantPredicate​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getGrantToRolePredicate

        public String getGrantToRolePredicate​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getGrantType

        public String getGrantType()
      • getDefaultgrantToRolePredicate

        public String getDefaultgrantToRolePredicate()
      • getDefaultroleToGrantPredicate

        public String getDefaultroleToGrantPredicate()
      • getPossibleRoleToGrantPredicates

        public List<String> getPossibleRoleToGrantPredicates()
      • getPossibleGrantToRolePredicates

        public List<String> getPossibleGrantToRolePredicates()
      • getVivoCoreNamespace

        public String getVivoCoreNamespace()
        Methods to return URIS for various predicates
      • getRoleToIntervalURI

        public String getRoleToIntervalURI()
      • getIntervalTypeURI

        public String getIntervalTypeURI()
      • getIntervalToStartURI

        public String getIntervalToStartURI()
      • getIntervalToEndURI

        public String getIntervalToEndURI()
      • getStartYearPredURI

        public String getStartYearPredURI()
      • getEndYearPredURI

        public String getEndYearPredURI()
      • getDateTimeValueTypeURI

        public String getDateTimeValueTypeURI()
      • getDateTimePrecisionURI

        public String getDateTimePrecisionURI()
      • getDateTimeValueURI

        public String getDateTimeValueURI()
      • addFormSpecificData

        public void addFormSpecificData​(edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo editConfiguration,
                                        edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
      • getSparqlForAcFilter

        public String getSparqlForAcFilter​(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)