public class SearchUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<DiscoveryConfiguration> |
getAllDiscoveryConfigurations(Item item)
Method that retrieves a list of all the configuration objects from the given item
A configuration object can be returned for each parent community/collection
|
static List<DiscoveryConfiguration> |
getAllDiscoveryConfigurations(WorkflowItem witem)
Return all the discovery configuration applicable to the provided workflow item
|
static List<DiscoveryConfiguration> |
getAllDiscoveryConfigurations(WorkspaceItem witem)
Return all the discovery configuration applicable to the provided workspace item
|
static DiscoveryConfigurationService |
getConfigurationService() |
static DiscoveryConfiguration |
getDiscoveryConfiguration() |
static DiscoveryConfiguration |
getDiscoveryConfiguration(DSpaceObject dso) |
static DiscoveryConfiguration |
getDiscoveryConfiguration(String prefix,
DSpaceObject dso)
Return the discovery configuration to use in a specific scope for the king of search identified by the prefix.
|
static DiscoveryConfiguration |
getDiscoveryConfigurationByName(String configurationName)
Return the discovery configuration identified by the specified name
|
static List<String> |
getIgnoredMetadataFields(int type) |
static SearchService |
getSearchService() |
public static SearchService getSearchService()
public static DiscoveryConfiguration getDiscoveryConfiguration()
public static DiscoveryConfiguration getDiscoveryConfiguration(DSpaceObject dso)
public static DiscoveryConfiguration getDiscoveryConfiguration(String prefix, DSpaceObject dso)
prefix - the namespace of the configuration to lookup if anydso - the DSpaceObjectpublic static DiscoveryConfiguration getDiscoveryConfigurationByName(String configurationName)
configurationName - the configuration name assigned to the bean in the
discovery.xmlpublic static DiscoveryConfigurationService getConfigurationService()
public static List<DiscoveryConfiguration> getAllDiscoveryConfigurations(Item item) throws SQLException
item - the DSpace itemSQLException - An exception that provides information on a database access error or other errors.public static List<DiscoveryConfiguration> getAllDiscoveryConfigurations(WorkspaceItem witem) throws SQLException
witem - a workspace itemSQLExceptionpublic static List<DiscoveryConfiguration> getAllDiscoveryConfigurations(WorkflowItem witem) throws SQLException
witem - a workflow itemSQLExceptionCopyright © 2019 DuraSpace. All rights reserved.