Class IndividualFiltering
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.filtering.IndividualFiltering
-
- All Implemented Interfaces:
Individual,ResourceBean,Comparable<Individual>
public class IndividualFiltering extends Object implements Individual
A Individual object that will delegate to an inner Individual and then filter the results. It also uses the specified WebappDaoFactory to get filtered Statements.- Author:
- bdc34
-
-
Constructor Summary
Constructors Constructor Description IndividualFiltering(Individual individual, VitroFilters filters)
-
Method Summary
-
-
-
Constructor Detail
-
IndividualFiltering
public IndividualFiltering(Individual individual, VitroFilters filters)
-
-
Method Detail
-
getDataPropertyList
public List<DataProperty> getDataPropertyList()
- Specified by:
getDataPropertyListin interfaceIndividual
-
getPopulatedDataPropertyList
public List<DataProperty> getPopulatedDataPropertyList()
- Specified by:
getPopulatedDataPropertyListin interfaceIndividual
-
getDataPropertyStatements
public List<DataPropertyStatement> getDataPropertyStatements()
- Specified by:
getDataPropertyStatementsin interfaceIndividual
-
getDataPropertyStatements
public List<DataPropertyStatement> getDataPropertyStatements(String propertyUri)
- Specified by:
getDataPropertyStatementsin interfaceIndividual
-
getDataPropertyMap
public Map<String,DataProperty> getDataPropertyMap()
- Specified by:
getDataPropertyMapin interfaceIndividual
-
getObjectPropertyList
public List<ObjectProperty> getObjectPropertyList()
- Specified by:
getObjectPropertyListin interfaceIndividual
-
getPopulatedObjectPropertyList
public List<ObjectProperty> getPopulatedObjectPropertyList()
Description copied from interface:IndividualReturns a list of ObjectProperty objects for which statements exist about the individual. Note that this method now returns multiple copies of a given predicate, with the rangeVClassURI changed to indicate the distinct types of the related objects. This supports finding the approriate list views for the "faux" qualified properties.- Specified by:
getPopulatedObjectPropertyListin interfaceIndividual
-
getObjectPropertyStatements
public List<ObjectPropertyStatement> getObjectPropertyStatements()
- Specified by:
getObjectPropertyStatementsin interfaceIndividual
-
getObjectPropertyStatements
public List<ObjectPropertyStatement> getObjectPropertyStatements(String propertyUri)
- Specified by:
getObjectPropertyStatementsin interfaceIndividual
-
getObjectPropertyMap
public Map<String,ObjectProperty> getObjectPropertyMap()
- Specified by:
getObjectPropertyMapin interfaceIndividual
-
getExternalIds
public List<DataPropertyStatement> getExternalIds()
- Specified by:
getExternalIdsin interfaceIndividual
-
getMainImageUri
public String getMainImageUri()
- Specified by:
getMainImageUriin interfaceIndividual
-
getImageUrl
public String getImageUrl()
- Specified by:
getImageUrlin interfaceIndividual
-
getThumbUrl
public String getThumbUrl()
- Specified by:
getThumbUrlin interfaceIndividual
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceResourceBean
-
getModTime
public Timestamp getModTime()
- Specified by:
getModTimein interfaceIndividual
-
getName
public String getName()
- Specified by:
getNamein interfaceIndividual
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceResourceBean
-
getPickListName
public String getPickListName()
- Specified by:
getPickListNamein interfaceResourceBean
-
getRdfsLabel
public String getRdfsLabel()
Description copied from interface:IndividualReturns an rdfs:label if there is one on the individual. Returns null if none can be found. If more than one rdfs:label can be found for the individual one of the labels will be returned, which one is undefined.- Specified by:
getRdfsLabelin interfaceIndividual
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceResourceBean
-
getURI
public String getURI()
- Specified by:
getURIin interfaceResourceBean
-
getVClass
public VClass getVClass()
- Specified by:
getVClassin interfaceIndividual
-
getVClassURI
public String getVClassURI()
- Specified by:
getVClassURIin interfaceIndividual
-
setDatatypePropertyList
public void setDatatypePropertyList(List<DataProperty> datatypePropertyList)
- Specified by:
setDatatypePropertyListin interfaceIndividual
-
setPopulatedDataPropertyList
public void setPopulatedDataPropertyList(List<DataProperty> dataPropertyList)
- Specified by:
setPopulatedDataPropertyListin interfaceIndividual
-
setObjectPropertyStatements
public void setObjectPropertyStatements(List<ObjectPropertyStatement> list)
- Specified by:
setObjectPropertyStatementsin interfaceIndividual
-
setDataPropertyStatements
public void setDataPropertyStatements(List<DataPropertyStatement> list)
- Specified by:
setDataPropertyStatementsin interfaceIndividual
-
setExternalIds
public void setExternalIds(List<DataPropertyStatement> externalIds)
- Specified by:
setExternalIdsin interfaceIndividual
-
setMainImageUri
public void setMainImageUri(String mainImageUri)
- Specified by:
setMainImageUriin interfaceIndividual
-
setLocalName
public void setLocalName(String localName)
- Specified by:
setLocalNamein interfaceResourceBean
-
setModTime
public void setModTime(Timestamp in)
- Specified by:
setModTimein interfaceIndividual
-
setName
public void setName(String in)
- Specified by:
setNamein interfaceIndividual
-
setRdfsLabel
public void setRdfsLabel(String in)
- Specified by:
setRdfsLabelin interfaceIndividual
-
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespacein interfaceResourceBean
-
setPropertyList
public void setPropertyList(List<ObjectProperty> propertyList)
- Specified by:
setPropertyListin interfaceIndividual
-
setPopulatedObjectPropertyList
public void setPopulatedObjectPropertyList(List<ObjectProperty> propertyList)
- Specified by:
setPopulatedObjectPropertyListin interfaceIndividual
-
setURI
public void setURI(String URI)
- Specified by:
setURIin interfaceResourceBean
-
setVClass
public void setVClass(VClass class1)
- Specified by:
setVClassin interfaceIndividual
-
setVClassURI
public void setVClassURI(String in)
- Specified by:
setVClassURIin interfaceIndividual
-
sortForDisplay
public void sortForDisplay()
- Specified by:
sortForDisplayin interfaceIndividual
-
getVClasses
public List<VClass> getVClasses()
- Specified by:
getVClassesin interfaceIndividual
-
getVClasses
public List<VClass> getVClasses(boolean direct)
- Specified by:
getVClassesin interfaceIndividual
-
isVClass
public boolean isVClass(String uri)
Description copied from interface:IndividualDoes the individual belong to this class?- Specified by:
isVClassin interfaceIndividual
-
getMostSpecificTypeURIs
public List<String> getMostSpecificTypeURIs()
- Specified by:
getMostSpecificTypeURIsin interfaceIndividual
-
setDataPropertyMap
public void setDataPropertyMap(Map<String,DataProperty> propertyMap)
- Specified by:
setDataPropertyMapin interfaceIndividual
-
setObjectPropertyMap
public void setObjectPropertyMap(Map<String,ObjectProperty> propertyMap)
- Specified by:
setObjectPropertyMapin interfaceIndividual
-
setVClasses
public void setVClasses(List<VClass> classList, boolean direct)
- Specified by:
setVClassesin interfaceIndividual
-
toJSON
public com.fasterxml.jackson.databind.JsonNode toJSON()
- Specified by:
toJSONin interfaceIndividual
-
getHiddenFromDisplayBelowRoleLevel
public BaseResourceBean.RoleLevel getHiddenFromDisplayBelowRoleLevel()
- Specified by:
getHiddenFromDisplayBelowRoleLevelin interfaceResourceBean
-
setHiddenFromDisplayBelowRoleLevel
public void setHiddenFromDisplayBelowRoleLevel(BaseResourceBean.RoleLevel eR)
- Specified by:
setHiddenFromDisplayBelowRoleLevelin interfaceResourceBean
-
setHiddenFromDisplayBelowRoleLevelUsingRoleUri
public void setHiddenFromDisplayBelowRoleLevelUsingRoleUri(String roleUri)
- Specified by:
setHiddenFromDisplayBelowRoleLevelUsingRoleUriin interfaceResourceBean
-
getProhibitedFromUpdateBelowRoleLevel
public BaseResourceBean.RoleLevel getProhibitedFromUpdateBelowRoleLevel()
- Specified by:
getProhibitedFromUpdateBelowRoleLevelin interfaceResourceBean
-
setProhibitedFromUpdateBelowRoleLevel
public void setProhibitedFromUpdateBelowRoleLevel(BaseResourceBean.RoleLevel eR)
- Specified by:
setProhibitedFromUpdateBelowRoleLevelin interfaceResourceBean
-
setProhibitedFromUpdateBelowRoleLevelUsingRoleUri
public void setProhibitedFromUpdateBelowRoleLevelUsingRoleUri(String roleUri)
- Specified by:
setProhibitedFromUpdateBelowRoleLevelUsingRoleUriin interfaceResourceBean
-
getHiddenFromPublishBelowRoleLevel
public BaseResourceBean.RoleLevel getHiddenFromPublishBelowRoleLevel()
- Specified by:
getHiddenFromPublishBelowRoleLevelin interfaceResourceBean
-
setHiddenFromPublishBelowRoleLevel
public void setHiddenFromPublishBelowRoleLevel(BaseResourceBean.RoleLevel eR)
- Specified by:
setHiddenFromPublishBelowRoleLevelin interfaceResourceBean
-
setHiddenFromPublishBelowRoleLevelUsingRoleUri
public void setHiddenFromPublishBelowRoleLevelUsingRoleUri(String roleUri)
- Specified by:
setHiddenFromPublishBelowRoleLevelUsingRoleUriin interfaceResourceBean
-
isAnonymous
public boolean isAnonymous()
- Specified by:
isAnonymousin interfaceResourceBean
-
compareTo
public int compareTo(Individual ind2)
- Specified by:
compareToin interfaceComparable<Individual>
-
setSearchBoost
public void setSearchBoost(Float boost)
- Specified by:
setSearchBoostin interfaceIndividual
-
getSearchBoost
public Float getSearchBoost()
- Specified by:
getSearchBoostin interfaceIndividual
-
setSearchSnippet
public void setSearchSnippet(String snippet)
- Specified by:
setSearchSnippetin interfaceIndividual
-
getSearchSnippet
public String getSearchSnippet()
- Specified by:
getSearchSnippetin interfaceIndividual
-
getDataValues
public List<String> getDataValues(String propertyUri)
- Specified by:
getDataValuesin interfaceIndividual
-
getDataValue
public String getDataValue(String propertyUri)
- Specified by:
getDataValuein interfaceIndividual
-
getDataPropertyStatement
public DataPropertyStatement getDataPropertyStatement(String propertyUri)
- Specified by:
getDataPropertyStatementin interfaceIndividual
-
getRelatedIndividuals
public List<Individual> getRelatedIndividuals(String propertyUri)
- Specified by:
getRelatedIndividualsin interfaceIndividual
-
getRelatedIndividual
public Individual getRelatedIndividual(String propertyUri)
- Specified by:
getRelatedIndividualin interfaceIndividual
-
hasThumb
public boolean hasThumb()
- Specified by:
hasThumbin interfaceIndividual
-
resolveAsFauxPropertyStatements
public void resolveAsFauxPropertyStatements(List<ObjectPropertyStatement> list)
Description copied from interface:IndividualThis is crap. It was put in so IndividualFiltering could filter object properties properly, but what we really need is either: filters have a reference to a webappDaoFactory, or all ObjectPropertyStatements are resolved when they are created. See VIVO-946 and VIVO-984.- Specified by:
resolveAsFauxPropertyStatementsin interfaceIndividual- Parameters:
list- Object property statements
-
-