Class WebappDaoFactoryFiltering
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.filtering.WebappDaoFactoryFiltering
-
- All Implemented Interfaces:
WebappDaoFactory
public class WebappDaoFactoryFiltering extends Object implements WebappDaoFactory
This wraps a WebappDaoFactory and applies filtering. Objects that can be filtered by this class: IndividualWebapp ObjectProperty Tab VClassGroup VClass User If getCoreDaoFactory() is called on a WebappDaoFactoryFiltering, the returned CoreDaoFactory will have the same filtering as the WebappDaoFactoryFiltering. Notice: A WebappDaoFactoryFiltering with a set of filters will always filter the same regardless of context. If you need to filter one way on an entity page and a different way on a index page, then you will need WebappDaoFactoryFiltering objects with different sets of filters.- Author:
- bdc34
-
-
Constructor Summary
Constructors Constructor Description WebappDaoFactoryFiltering(WebappDaoFactory innerDao, VitroFilters filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcheckURI(String uriStr)Checks a URI String for two things: well-formedness and uniqueness in the model.StringcheckURIForEditableEntity(String uriStr)Checks a URI String to see whether it is suitable for use on a new editable entity.voidclose()Free any resources associated with this WebappDaoFactoryApplicationDaogetApplicationDao()List<String>getCommentsForResource(String resourceURI)BJL23 2008-05-20: Putting this here for lack of a more logical place.DataPropertyDaogetDataPropertyDao()returns a Data Access Object for working with DataPropertiesDataPropertyStatementDaogetDataPropertyStatementDao()returns a Data Access Object for working with DatatypePropertyStatementsDatatypeDaogetDatatypeDao()returns a Data Access Object for working with DatatypesStringgetDefaultNamespace()DisplayModelDaogetDisplayModelDao()FauxPropertyDaogetFauxPropertyDao()returns a Data Access Object for working with "faux" ObjectProperties.I18nBundlegetI18nBundle()IndividualDaogetIndividualDao()returns a Data Access Object for working with IndividualsMenuDaogetMenuDao()Set<String>getNonuserNamespaces()ObjectPropertyDaogetObjectPropertyDao()returns a Data Access Object for working with ObjectPropertiesObjectPropertyStatementDaogetObjectPropertyStatementDao()returns a Data Access Object for working with ObjectPropertyStatementsOntologyDaogetOntologyDao()returns a Data Access Object for working with OntologiesPageDaogetPageDao()List<String>getPreferredLanguages()PropertyGroupDaogetPropertyGroupDao()PropertyInstanceDaogetPropertyInstanceDao()UserAccountsDaogetUserAccountsDao()WebappDaoFactorygetUserAwareDaoFactory(String userURI)Copy this DAO factory to a new object associated with the specified user URI, or return the same factory if a user-aware version cannot be used.StringgetUserURI()Return URI of user associated with this WebappDaoFactory, or null if not applicable.VClassDaogetVClassDao()returns a Data Access Object for working with ontology class objectsVClassGroupDaogetVClassGroupDao()booleanhasExistingURI(String uriStr)Check if a given URI string exists in the system: checks for the following conditions: URI found as subject in a statement or an object or as a propertyStringtoString()
-
-
-
Constructor Detail
-
WebappDaoFactoryFiltering
public WebappDaoFactoryFiltering(WebappDaoFactory innerDao, VitroFilters filters)
-
-
Method Detail
-
checkURI
public String checkURI(String uriStr)
Description copied from interface:WebappDaoFactoryChecks a URI String for two things: well-formedness and uniqueness in the model. Ill-formed strings or those matching URIs already in use will cause an error message to be returned.- Specified by:
checkURIin interfaceWebappDaoFactory- Returns:
- error message String if invalid; otherwise null
-
checkURIForEditableEntity
public String checkURIForEditableEntity(String uriStr)
Description copied from interface:WebappDaoFactoryChecks a URI String to see whether it is suitable for use on a new editable entity. It must be well-formed, and it must not be declared in the model as a Thing, Class, ObjectProperty or DataProperty. Ill-formed strings or those so declared will cause an error message to be returned.- Specified by:
checkURIForEditableEntityin interfaceWebappDaoFactory- Returns:
- error message String if invalid; otherwise null
-
hasExistingURI
public boolean hasExistingURI(String uriStr)
Description copied from interface:WebappDaoFactoryCheck if a given URI string exists in the system: checks for the following conditions: URI found as subject in a statement or an object or as a property- Specified by:
hasExistingURIin interfaceWebappDaoFactory- Parameters:
uriStr- URI String
-
getUserAwareDaoFactory
public WebappDaoFactory getUserAwareDaoFactory(String userURI)
Description copied from interface:WebappDaoFactoryCopy this DAO factory to a new object associated with the specified user URI, or return the same factory if a user-aware version cannot be used.- Specified by:
getUserAwareDaoFactoryin interfaceWebappDaoFactory- Parameters:
userURI- User URI
-
getDefaultNamespace
public String getDefaultNamespace()
- Specified by:
getDefaultNamespacein interfaceWebappDaoFactory
-
getNonuserNamespaces
public Set<String> getNonuserNamespaces()
- Specified by:
getNonuserNamespacesin interfaceWebappDaoFactory
-
getPreferredLanguages
public List<String> getPreferredLanguages()
- Specified by:
getPreferredLanguagesin interfaceWebappDaoFactory
-
getCommentsForResource
public List<String> getCommentsForResource(String resourceURI)
Description copied from interface:WebappDaoFactoryBJL23 2008-05-20: Putting this here for lack of a more logical place. We need to build better support for the RDFS vocabulary into our API. Returns a list of the simple lexical form strings of the rdfs:comment values for a resource; empty list if none found.- Specified by:
getCommentsForResourcein interfaceWebappDaoFactory
-
getIndividualDao
public IndividualDao getIndividualDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with Individuals- Specified by:
getIndividualDaoin interfaceWebappDaoFactory
-
getUserAccountsDao
public UserAccountsDao getUserAccountsDao()
- Specified by:
getUserAccountsDaoin interfaceWebappDaoFactory
-
getVClassGroupDao
public VClassGroupDao getVClassGroupDao()
- Specified by:
getVClassGroupDaoin interfaceWebappDaoFactory
-
getPropertyGroupDao
public PropertyGroupDao getPropertyGroupDao()
- Specified by:
getPropertyGroupDaoin interfaceWebappDaoFactory
-
getUserURI
public String getUserURI()
Description copied from interface:WebappDaoFactoryReturn URI of user associated with this WebappDaoFactory, or null if not applicable.- Specified by:
getUserURIin interfaceWebappDaoFactory
-
getApplicationDao
public ApplicationDao getApplicationDao()
- Specified by:
getApplicationDaoin interfaceWebappDaoFactory
-
getDatatypeDao
public DatatypeDao getDatatypeDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with Datatypes- Specified by:
getDatatypeDaoin interfaceWebappDaoFactory
-
getOntologyDao
public OntologyDao getOntologyDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with Ontologies- Specified by:
getOntologyDaoin interfaceWebappDaoFactory
-
getPropertyInstanceDao
public PropertyInstanceDao getPropertyInstanceDao()
- Specified by:
getPropertyInstanceDaoin interfaceWebappDaoFactory
-
getDataPropertyDao
public DataPropertyDao getDataPropertyDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with DataProperties- Specified by:
getDataPropertyDaoin interfaceWebappDaoFactory
-
getDataPropertyStatementDao
public DataPropertyStatementDao getDataPropertyStatementDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with DatatypePropertyStatements- Specified by:
getDataPropertyStatementDaoin interfaceWebappDaoFactory
-
getObjectPropertyStatementDao
public ObjectPropertyStatementDao getObjectPropertyStatementDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with ObjectPropertyStatements- Specified by:
getObjectPropertyStatementDaoin interfaceWebappDaoFactory
-
getObjectPropertyDao
public ObjectPropertyDao getObjectPropertyDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with ObjectProperties- Specified by:
getObjectPropertyDaoin interfaceWebappDaoFactory
-
getFauxPropertyDao
public FauxPropertyDao getFauxPropertyDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with "faux" ObjectProperties.- Specified by:
getFauxPropertyDaoin interfaceWebappDaoFactory
-
getVClassDao
public VClassDao getVClassDao()
Description copied from interface:WebappDaoFactoryreturns a Data Access Object for working with ontology class objects- Specified by:
getVClassDaoin interfaceWebappDaoFactory
-
getPageDao
public PageDao getPageDao()
- Specified by:
getPageDaoin interfaceWebappDaoFactory
-
getMenuDao
public MenuDao getMenuDao()
- Specified by:
getMenuDaoin interfaceWebappDaoFactory
-
getDisplayModelDao
public DisplayModelDao getDisplayModelDao()
- Specified by:
getDisplayModelDaoin interfaceWebappDaoFactory
-
close
public void close()
Description copied from interface:WebappDaoFactoryFree any resources associated with this WebappDaoFactory- Specified by:
closein interfaceWebappDaoFactory
-
getI18nBundle
public I18nBundle getI18nBundle()
- Specified by:
getI18nBundlein interfaceWebappDaoFactory
-
-