Class AddGrantRoleToPersonGenerator
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddGrantRoleToPersonGenerator.RoleActivityOptionTypes
-
Constructor Summary
Constructors Constructor Description AddGrantRoleToPersonGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFormSpecificData(edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo editConfiguration, edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)StringgetDateTimePrecisionURI()StringgetDateTimeValueTypeURI()StringgetDateTimeValueURI()StringgetDefaultgrantToRolePredicate()StringgetDefaultroleToGrantPredicate()edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwogetEditConfiguration(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq, javax.servlet.http.HttpSession session)edu.cornell.mannlib.vitro.webapp.utils.FrontEndEditingUtils.EditModegetEditMode(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)Methods for checking edit mode **StringgetEndYearPredURI()StringgetGrantToRolePredicate(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)StringgetGrantType()StringgetIntervalToEndURI()StringgetIntervalToStartURI()StringgetIntervalTypeURI()StringgetN3ForExistingGrant(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)StringgetN3ForGrantRole(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)StringgetN3ForNewGrant(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)List<String>getPossibleGrantToRolePredicates()List<String>getPossibleRoleToGrantPredicates()StringgetRoleToGrantPredicate(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)StringgetRoleToIntervalURI()StringgetRoleType(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)Methods that are REQUIRED to be implemented in subclassesStringgetSparqlForAcFilter(edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)StringgetStartYearPredURI()StringgetVivoCoreNamespace()Methods to return URIS for various predicatesbooleanisShowRoleLabelField(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 belowprotected voidsetTemplate(edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationVTwo editConfiguration, edu.cornell.mannlib.vitro.webapp.controller.VitroRequest vreq)
-
-
-
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:
getEditConfigurationin interfaceedu.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()
-
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)
-
-