Class FauxPropertyDaoJena
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDaoCon
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDao
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.FauxPropertyDaoJena
-
- All Implemented Interfaces:
FauxPropertyDao
public class FauxPropertyDaoJena extends JenaBaseDao implements FauxPropertyDao
TODO
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDao
DEFAULT_NAMESPACE, KEEP_ONLY_IF_FALSE, KEEP_ONLY_IF_TRUE, NONUSER_NAMESPACES, PREFERRED_LANGUAGES, PSEUDO_BNODE_NS, XSD, xsdDateFormat, xsdDateTimeFormat
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDaoCon
ADDITIONAL_LINK, APPLICATION_ABOUTTEXT, APPLICATION_ACKNOWLEGETEXT, APPLICATION_CONTACTMAIL, APPLICATION_COPYRIGHTANCHOR, APPLICATION_COPYRIGHTURL, APPLICATION_CORRECTIONMAIL, APPLICATION_THEMEDIR, CLASSGROUP, DATAPROPERTY_ISEXTERNALID, DESCRIPTION_ANNOT, DISPLAY_LIMIT, DISPLAY_RANK, DISPLAY_RANK_ANNOT, EDITING, EXAMPLE, EXAMPLE_ANNOT, IN_CLASSGROUP, IND_MAIN_IMAGE, LINK, LINK_ANCHOR, LINK_DISPLAYRANK, LINK_TYPE, LINK_URL, MODTIME, MONIKER, ONTOLOGY_PREFIX_ANNOT, PERMISSION, PERMISSION_SET_FOR_NEW_USERS, PERMISSION_SET_FOR_PUBLIC, PERMISSIONSET, PERMISSIONSET_HAS_PERMISSION, PORTAL, PRIMARY_LINK, PROPERTY_ADDLINKSUPPRESSED, PROPERTY_COLLATEBYSUBCLASSANNOT, PROPERTY_CUSTOM_LIST_VIEW_ANNOT, PROPERTY_CUSTOMDISPLAYVIEWANNOT, PROPERTY_CUSTOMENTRYFORMANNOT, PROPERTY_CUSTOMSEARCHVIEWANNOT, PROPERTY_CUSTOMSHORTVIEWANNOT, PROPERTY_DELETELINKSUPPRESSED, PROPERTY_EDITLINKSUPPRESSED, PROPERTY_ENTITYSORTDIRECTION, PROPERTY_ENTITYSORTFIELD, PROPERTY_FULLPROPERTYNAMEANNOT, PROPERTY_INPROPERTYGROUPANNOT, PROPERTY_OBJECTINDIVIDUALSORTPROPERTY, PROPERTY_OFFERCREATENEWOPTIONANNOT, PROPERTY_SELECTFROMEXISTINGANNOT, PROPERTY_STUBOBJECTPROPERTYANNOT, PROPERTYGROUP, PUBLIC_DESCRIPTION_ANNOT, SEARCH_BOOST_ANNOT, SHORTDEF, USERACCOUNT, USERACCOUNT_ARGON2_PASSWORD, USERACCOUNT_EMAIL_ADDRESS, USERACCOUNT_EMAIL_KEY, USERACCOUNT_EXTERNAL_AUTH_ID, USERACCOUNT_EXTERNAL_AUTH_ONLY, USERACCOUNT_FIRST_NAME, USERACCOUNT_HAS_PERMISSION_SET, USERACCOUNT_LAST_LOGIN_TIME, USERACCOUNT_LAST_NAME, USERACCOUNT_LOGIN_COUNT, USERACCOUNT_MD5_PASSWORD, USERACCOUNT_OLD_PASSWORD, USERACCOUNT_PASSWORD_CHANGE_REQUIRED, USERACCOUNT_PASSWORD_LINK_EXPIRES, USERACCOUNT_PROXY_EDITOR_FOR, USERACCOUNT_ROOT_USER, USERACCOUNT_STATUS, VITRO_PUBLIC_ONTOLOGY
-
-
Constructor Summary
Constructors Constructor Description FauxPropertyDaoJena(WebappDaoFactoryJena wadf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteFauxProperty(FauxProperty fp)Delete this FauxProperty from the display model.List<FauxProperty>getFauxPropertiesForBaseUri(String uri)Get all of the FauxProperties that are based on this URI.FauxPropertygetFauxPropertyByUris(String domainUri, String baseUri, String rangeUri)If the display model contains a ConfigContext based on these URIs, get the FauxProperty that it describes.FauxPropertygetFauxPropertyFromContextUri(String contextUri)Returns null if contextUri does not represent a valid CONFIG_CONTEXT.protected org.apache.jena.ontology.OntModelgetOntModel()Need to override this, so the boolean convenience methods will work off the correct model.voidinsertFauxProperty(FauxProperty fp)Creates a new FauxProperty in the display model.voidupdateFauxProperty(FauxProperty fp)Updates the properties of this FauxProperty in the display model.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDao
addPropertyBooleanValue, addPropertyDateTimeValue, addPropertyDateValue, addPropertyFloatValue, addPropertyIntValue, addPropertyLongValue, addPropertyNonNegativeIntValue, addPropertyResourceURIValue, addPropertyResourceValue, addPropertyStringValue, checkURI, getClassURIStr, getDefaultLanguage, getLabel, getLabelLiteral, getLabelLiteral, getLabelOrId, getLocalNameOrId, getOntClass, getOntModelSelector, getPropertyBooleanValue, getPropertyDateTimeValue, getPropertyDateValue, getPropertyFloatValue, getPropertyIntValue, getPropertyLongValue, getPropertyNonNegativeIntegerValue, getPropertyNonNegativeIntValue, getPropertyResourceURIValues, getPropertyStringValue, getSmartRemoval, getWebappDaoFactory, getWritableOntModelList, isBooleanClassExpression, listDirectObjectPropertySubjects, listDirectObjectPropertyValues, makeNodeForURI, removeRulesMentioningResource, smartRemove, tryLiteralForPreferredLanguages, updatePlainLiteralValue, updatePlainLiteralValue, updatePropertyBooleanValue, updatePropertyDateTimeValue, updatePropertyDateValue, updatePropertyFloatValue, updatePropertyIntValue, updatePropertyLongValue, updatePropertyNonNegativeIntegerValue, updatePropertyNonNegativeIntValue, updatePropertyResourceURIValue, updatePropertyResourceURIValue, updatePropertyResourceURIValues, updatePropertyResourceValue, updatePropertyResourceValue, updatePropertyStringValue, updateRDFSLabel, updateRDFSLabel
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDaoCon
getConstModel
-
-
-
-
Constructor Detail
-
FauxPropertyDaoJena
public FauxPropertyDaoJena(WebappDaoFactoryJena wadf)
-
-
Method Detail
-
getOntModel
protected org.apache.jena.ontology.OntModel getOntModel()
Need to override this, so the boolean convenience methods will work off the correct model.- Overrides:
getOntModelin classJenaBaseDao
-
getFauxPropertiesForBaseUri
public List<FauxProperty> getFauxPropertiesForBaseUri(String uri)
Description copied from interface:FauxPropertyDaoGet all of the FauxProperties that are based on this URI.- Specified by:
getFauxPropertiesForBaseUriin interfaceFauxPropertyDao- Returns:
- May return an empty list. Never returns null.
-
getFauxPropertyFromContextUri
public FauxProperty getFauxPropertyFromContextUri(String contextUri)
Returns null if contextUri does not represent a valid CONFIG_CONTEXT.- Specified by:
getFauxPropertyFromContextUriin interfaceFauxPropertyDao- Returns:
- May return null.
-
getFauxPropertyByUris
public FauxProperty getFauxPropertyByUris(String domainUri, String baseUri, String rangeUri)
Description copied from interface:FauxPropertyDaoIf the display model contains a ConfigContext based on these URIs, get the FauxProperty that it describes. May return null.- Specified by:
getFauxPropertyByUrisin interfaceFauxPropertyDao- Parameters:
domainUri- May be null, but then this will only match a ConfigContext that has no qualifiedByDomain property.baseUri- Object of configContextFor property. May not be null.rangeUri- Object of qualifiedBy property. May not be null.- Returns:
- May return null.
-
insertFauxProperty
public void insertFauxProperty(FauxProperty fp)
Description copied from interface:FauxPropertyDaoCreates a new FauxProperty in the display model. By "a new FauxProperty", we mean a new ConfigContext and a new ObjectPropertyDisplayConfig linked to it.- Specified by:
insertFauxPropertyin interfaceFauxPropertyDao
-
updateFauxProperty
public void updateFauxProperty(FauxProperty fp)
Description copied from interface:FauxPropertyDaoUpdates the properties of this FauxProperty in the display model. By "this FauxProperty", we mean the ConfigContext and ObjectPropertyDisplayConfig whose URIs are stored in this FauxProperty.- Specified by:
updateFauxPropertyin interfaceFauxPropertyDao
-
deleteFauxProperty
public void deleteFauxProperty(FauxProperty fp)
Description copied from interface:FauxPropertyDaoDelete this FauxProperty from the display model. Delete any ConfigContext that is based on the constraints in this FauxProperty, and any ObjectPropertyDisplayConfigs that depend on that ConfigContext. If no such ConfigContext is found, no error is raised. No check is made to see whether the ObjectPropertyDisplayConfig matches the settings on this FauxProperty.- Specified by:
deleteFauxPropertyin interfaceFauxPropertyDao
-
-