Class FauxPropertyDaoFiltering
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.filtering.BaseFiltering
-
- edu.cornell.mannlib.vitro.webapp.dao.filtering.FauxPropertyDaoFiltering
-
- All Implemented Interfaces:
FauxPropertyDao
public class FauxPropertyDaoFiltering extends BaseFiltering implements FauxPropertyDao
TODO Find out if this is really necessary. If so, what is filtered?
-
-
Constructor Summary
Constructors Constructor Description FauxPropertyDaoFiltering(FauxPropertyDao fauxPropertyDao, VitroFilters filters)
-
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)If the display model contains a ConfigContext with this URI, get the FauxProperty that it describes.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.filtering.BaseFiltering
filter, filter
-
-
-
-
Constructor Detail
-
FauxPropertyDaoFiltering
public FauxPropertyDaoFiltering(FauxPropertyDao fauxPropertyDao, VitroFilters filters)
-
-
Method Detail
-
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)
Description copied from interface:FauxPropertyDaoIf the display model contains a ConfigContext with this URI, get the FauxProperty that it describes.- 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.
-
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
-
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
-
-