target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void isUserRegistrationEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isUserRegistrationEnabled()); }
public boolean isUserRegistrationEnabled() { return getLocalBoolean("user.userRegistrationEnabled", true); }
Configuration extends AbstractConfiguration { public boolean isUserRegistrationEnabled() { return getLocalBoolean("user.userRegistrationEnabled", true); } }
Configuration extends AbstractConfiguration { public boolean isUserRegistrationEnabled() { return getLocalBoolean("user.userRegistrationEnabled", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isUserRegistrationEnabled() { return getLocalBoolean("user.userRegistrationEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int...
Configuration extends AbstractConfiguration { public boolean isUserRegistrationEnabled() { return getLocalBoolean("user.userRegistrationEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int...
@Test public void checkAccessPermission_shouldNotReturnTrueIfNoIpRangeMatches() throws Exception { List<LicenseType> licenseTypes = new ArrayList<>(); { LicenseType lt = new LicenseType(); lt.setName("license type 1 name"); licenseTypes.add(lt); } Set<String> recordAccessConditions = new HashSet<>(); recordAccessCondit...
public static boolean checkAccessPermission(Set<String> requiredAccessConditions, String privilegeName, String query, HttpServletRequest request) throws IndexUnreachableException, PresentationException, DAOException { User user = BeanUtils.getUserFromRequest(request); if (user == null) { UserBean userBean = BeanUtils.g...
AccessConditionUtils { public static boolean checkAccessPermission(Set<String> requiredAccessConditions, String privilegeName, String query, HttpServletRequest request) throws IndexUnreachableException, PresentationException, DAOException { User user = BeanUtils.getUserFromRequest(request); if (user == null) { UserBean...
AccessConditionUtils { public static boolean checkAccessPermission(Set<String> requiredAccessConditions, String privilegeName, String query, HttpServletRequest request) throws IndexUnreachableException, PresentationException, DAOException { User user = BeanUtils.getUserFromRequest(request); if (user == null) { UserBean...
AccessConditionUtils { public static boolean checkAccessPermission(Set<String> requiredAccessConditions, String privilegeName, String query, HttpServletRequest request) throws IndexUnreachableException, PresentationException, DAOException { User user = BeanUtils.getUserFromRequest(request); if (user == null) { UserBean...
AccessConditionUtils { public static boolean checkAccessPermission(Set<String> requiredAccessConditions, String privilegeName, String query, HttpServletRequest request) throws IndexUnreachableException, PresentationException, DAOException { User user = BeanUtils.getUserFromRequest(request); if (user == null) { UserBean...
@Test public void getSecurityQuestions_shouldReturnAllConfiguredElements() throws Exception { List<SecurityQuestion> result = DataManager.getInstance().getConfiguration().getSecurityQuestions(); Assert.assertNotNull(result); Assert.assertEquals(2, result.size()); { SecurityQuestion q = result.get(0); Assert.assertEqual...
public List<SecurityQuestion> getSecurityQuestions() { List<HierarchicalConfiguration> nodes = getLocalConfigurationsAt("user.securityQuestions.question"); if (nodes == null || nodes.isEmpty()) { return Collections.emptyList(); } List<SecurityQuestion> ret = new ArrayList<>(nodes.size()); for (HierarchicalConfiguration...
Configuration extends AbstractConfiguration { public List<SecurityQuestion> getSecurityQuestions() { List<HierarchicalConfiguration> nodes = getLocalConfigurationsAt("user.securityQuestions.question"); if (nodes == null || nodes.isEmpty()) { return Collections.emptyList(); } List<SecurityQuestion> ret = new ArrayList<>...
Configuration extends AbstractConfiguration { public List<SecurityQuestion> getSecurityQuestions() { List<HierarchicalConfiguration> nodes = getLocalConfigurationsAt("user.securityQuestions.question"); if (nodes == null || nodes.isEmpty()) { return Collections.emptyList(); } List<SecurityQuestion> ret = new ArrayList<>...
Configuration extends AbstractConfiguration { public List<SecurityQuestion> getSecurityQuestions() { List<HierarchicalConfiguration> nodes = getLocalConfigurationsAt("user.securityQuestions.question"); if (nodes == null || nodes.isEmpty()) { return Collections.emptyList(); } List<SecurityQuestion> ret = new ArrayList<>...
Configuration extends AbstractConfiguration { public List<SecurityQuestion> getSecurityQuestions() { List<HierarchicalConfiguration> nodes = getLocalConfigurationsAt("user.securityQuestions.question"); if (nodes == null || nodes.isEmpty()) { return Collections.emptyList(); } List<SecurityQuestion> ret = new ArrayList<>...
@Test public void isShowOpenIdConnect_shouldReturnCorrectValue() throws Exception { Assert.assertTrue(DataManager.getInstance().getConfiguration().isShowOpenIdConnect()); }
public boolean isShowOpenIdConnect() { return getAuthenticationProviders().stream().anyMatch(provider -> OpenIdProvider.TYPE_OPENID.equalsIgnoreCase(provider.getType())); }
Configuration extends AbstractConfiguration { public boolean isShowOpenIdConnect() { return getAuthenticationProviders().stream().anyMatch(provider -> OpenIdProvider.TYPE_OPENID.equalsIgnoreCase(provider.getType())); } }
Configuration extends AbstractConfiguration { public boolean isShowOpenIdConnect() { return getAuthenticationProviders().stream().anyMatch(provider -> OpenIdProvider.TYPE_OPENID.equalsIgnoreCase(provider.getType())); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isShowOpenIdConnect() { return getAuthenticationProviders().stream().anyMatch(provider -> OpenIdProvider.TYPE_OPENID.equalsIgnoreCase(provider.getType())); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String...
Configuration extends AbstractConfiguration { public boolean isShowOpenIdConnect() { return getAuthenticationProviders().stream().anyMatch(provider -> OpenIdProvider.TYPE_OPENID.equalsIgnoreCase(provider.getType())); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String...
@Test public void getAuthenticationProviders_shouldLoadUserGroupNamesCorrectly() throws Exception { List<IAuthenticationProvider> providers = DataManager.getInstance().getConfiguration().getAuthenticationProviders(); Assert.assertEquals(5, providers.size()); List<String> groups = providers.get(2).getAddUserToGroups(); ...
public List<IAuthenticationProvider> getAuthenticationProviders() { XMLConfiguration myConfigToUse = config; if (!configLocal.configurationsAt("user.authenticationProviders").isEmpty()) { myConfigToUse = configLocal; } int max = myConfigToUse.getMaxIndex("user.authenticationProviders.provider"); List<IAuthenticationPro...
Configuration extends AbstractConfiguration { public List<IAuthenticationProvider> getAuthenticationProviders() { XMLConfiguration myConfigToUse = config; if (!configLocal.configurationsAt("user.authenticationProviders").isEmpty()) { myConfigToUse = configLocal; } int max = myConfigToUse.getMaxIndex("user.authenticatio...
Configuration extends AbstractConfiguration { public List<IAuthenticationProvider> getAuthenticationProviders() { XMLConfiguration myConfigToUse = config; if (!configLocal.configurationsAt("user.authenticationProviders").isEmpty()) { myConfigToUse = configLocal; } int max = myConfigToUse.getMaxIndex("user.authenticatio...
Configuration extends AbstractConfiguration { public List<IAuthenticationProvider> getAuthenticationProviders() { XMLConfiguration myConfigToUse = config; if (!configLocal.configurationsAt("user.authenticationProviders").isEmpty()) { myConfigToUse = configLocal; } int max = myConfigToUse.getMaxIndex("user.authenticatio...
Configuration extends AbstractConfiguration { public List<IAuthenticationProvider> getAuthenticationProviders() { XMLConfiguration myConfigToUse = config; if (!configLocal.configurationsAt("user.authenticationProviders").isEmpty()) { myConfigToUse = configLocal; } int max = myConfigToUse.getMaxIndex("user.authenticatio...
@Test public void getOrigContentFolder_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("source", DataManager.getInstance().getConfiguration().getOrigContentFolder()); }
public String getOrigContentFolder() { return getLocalString("origContentFolder"); }
Configuration extends AbstractConfiguration { public String getOrigContentFolder() { return getLocalString("origContentFolder"); } }
Configuration extends AbstractConfiguration { public String getOrigContentFolder() { return getLocalString("origContentFolder"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getOrigContentFolder() { return getLocalString("origContentFolder"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerP...
Configuration extends AbstractConfiguration { public String getOrigContentFolder() { return getLocalString("origContentFolder"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerP...
@Test public void getPageLoaderThreshold_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(1000, DataManager.getInstance().getConfiguration().getPageLoaderThreshold()); }
public int getPageLoaderThreshold() { return getLocalInt("performance.pageLoaderThreshold", 1000); }
Configuration extends AbstractConfiguration { public int getPageLoaderThreshold() { return getLocalInt("performance.pageLoaderThreshold", 1000); } }
Configuration extends AbstractConfiguration { public int getPageLoaderThreshold() { return getLocalInt("performance.pageLoaderThreshold", 1000); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getPageLoaderThreshold() { return getLocalInt("performance.pageLoaderThreshold", 1000); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getView...
Configuration extends AbstractConfiguration { public int getPageLoaderThreshold() { return getLocalInt("performance.pageLoaderThreshold", 1000); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getView...
@Test public void getPageType_shouldReturnTheCorrectValueForTheGivenType() throws Exception { Assert.assertEquals("viewImage_value", DataManager.getInstance().getConfiguration().getPageType(PageType.viewImage)); }
public String getPageType(PageType type) { return getLocalString("viewer.pageTypes." + type.name()); }
Configuration extends AbstractConfiguration { public String getPageType(PageType type) { return getLocalString("viewer.pageTypes." + type.name()); } }
Configuration extends AbstractConfiguration { public String getPageType(PageType type) { return getLocalString("viewer.pageTypes." + type.name()); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getPageType(PageType type) { return getLocalString("viewer.pageTypes." + type.name()); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getVi...
Configuration extends AbstractConfiguration { public String getPageType(PageType type) { return getLocalString("viewer.pageTypes." + type.name()); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getVi...
@Test public void getRssCopyrightText_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("copyright_value", DataManager.getInstance().getConfiguration().getRssCopyrightText()); }
public String getRssCopyrightText() { return getLocalString("rss.copyright"); }
Configuration extends AbstractConfiguration { public String getRssCopyrightText() { return getLocalString("rss.copyright"); } }
Configuration extends AbstractConfiguration { public String getRssCopyrightText() { return getLocalString("rss.copyright"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getRssCopyrightText() { return getLocalString("rss.copyright"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage()...
Configuration extends AbstractConfiguration { public String getRssCopyrightText() { return getLocalString("rss.copyright"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage()...
@Test public void getRssDescription_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("description_value", DataManager.getInstance().getConfiguration().getRssDescription()); }
public String getRssDescription() { return getLocalString("rss.description", "latest imports"); }
Configuration extends AbstractConfiguration { public String getRssDescription() { return getLocalString("rss.description", "latest imports"); } }
Configuration extends AbstractConfiguration { public String getRssDescription() { return getLocalString("rss.description", "latest imports"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getRssDescription() { return getLocalString("rss.description", "latest imports"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerT...
Configuration extends AbstractConfiguration { public String getRssDescription() { return getLocalString("rss.description", "latest imports"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerT...
@Test public void getRssFeedItems_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(25, DataManager.getInstance().getConfiguration().getRssFeedItems()); }
public int getRssFeedItems() { return getLocalInt("rss.numberOfItems", 50); }
Configuration extends AbstractConfiguration { public int getRssFeedItems() { return getLocalInt("rss.numberOfItems", 50); } }
Configuration extends AbstractConfiguration { public int getRssFeedItems() { return getLocalInt("rss.numberOfItems", 50); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getRssFeedItems() { return getLocalInt("rss.numberOfItems", 50); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); ...
Configuration extends AbstractConfiguration { public int getRssFeedItems() { return getLocalInt("rss.numberOfItems", 50); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); ...
@Test public void getRssTitle_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("title_value", DataManager.getInstance().getConfiguration().getRssTitle()); }
public String getRssTitle() { return getLocalString("rss.title", "viewer-rss"); }
Configuration extends AbstractConfiguration { public String getRssTitle() { return getLocalString("rss.title", "viewer-rss"); } }
Configuration extends AbstractConfiguration { public String getRssTitle() { return getLocalString("rss.title", "viewer-rss"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getRssTitle() { return getLocalString("rss.title", "viewer-rss"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage...
Configuration extends AbstractConfiguration { public String getRssTitle() { return getLocalString("rss.title", "viewer-rss"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage...
@Test public void getRelevantLicenseTypesOnly_shouldRemoveLicenseTypesWhoseNamesDoNotMatchAccessConditions() throws Exception { List<LicenseType> allLicenseTypes = new ArrayList<>(); LicenseType lt = new LicenseType(); allLicenseTypes.add(lt); lt.setName("type1"); lt = new LicenseType(); allLicenseTypes.add(lt); lt.set...
static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccessConditions.isEmpty()) {...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
@Test public void getRulesetFilePath_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("ruleset_value", DataManager.getInstance().getConfiguration().getRulesetFilePath()); }
public String getRulesetFilePath() { return getLocalString("content.ruleset"); }
Configuration extends AbstractConfiguration { public String getRulesetFilePath() { return getLocalString("content.ruleset"); } }
Configuration extends AbstractConfiguration { public String getRulesetFilePath() { return getLocalString("content.ruleset"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getRulesetFilePath() { return getLocalString("content.ruleset"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(...
Configuration extends AbstractConfiguration { public String getRulesetFilePath() { return getLocalString("content.ruleset"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(...
@Test public void getSearchHitMetadataForTemplate_shouldReturnCorrectTemplateConfiguration() throws Exception { Assert.assertEquals(1, DataManager.getInstance().getConfiguration().getSearchHitMetadataForTemplate("Chapter").size()); }
public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTemplate(template, templateList, true, true); }
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
@Test public void getSearchHitMetadataForTemplate_shouldReturnDefaultTemplateConfigurationIfRequestedNotFound() throws Exception { Assert.assertEquals(5, DataManager.getInstance().getConfiguration().getSearchHitMetadataForTemplate("nonexisting").size()); }
public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTemplate(template, templateList, true, true); }
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
@Test public void getSearchHitMetadataForTemplate_shouldReturnDefaultTemplateIfTemplateIsNull() throws Exception { Assert.assertEquals(5, DataManager.getInstance().getConfiguration().getSearchHitMetadataForTemplate(null).size()); }
public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTemplate(template, templateList, true, true); }
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
Configuration extends AbstractConfiguration { public List<Metadata> getSearchHitMetadataForTemplate(String template) { List<HierarchicalConfiguration> templateList = getLocalConfigurationsAt("metadata.searchHitMetadataList.template"); if (templateList == null) { return Collections.emptyList(); } return getMetadataForTe...
@Test public void getSearchHitMetadataValueLength_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(18, DataManager.getInstance().getConfiguration().getSearchHitMetadataValueLength()); }
public int getSearchHitMetadataValueLength() { return getLocalInt("metadata.searchHitMetadataList.valueLength", 0); }
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueLength() { return getLocalInt("metadata.searchHitMetadataList.valueLength", 0); } }
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueLength() { return getLocalInt("metadata.searchHitMetadataList.valueLength", 0); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueLength() { return getLocalInt("metadata.searchHitMetadataList.valueLength", 0); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFi...
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueLength() { return getLocalInt("metadata.searchHitMetadataList.valueLength", 0); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFi...
@Test public void getSearchHitMetadataValueNumber_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(17, DataManager.getInstance().getConfiguration().getSearchHitMetadataValueNumber()); }
public int getSearchHitMetadataValueNumber() { return getLocalInt("metadata.searchHitMetadataList.valueNumber", 1); }
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueNumber() { return getLocalInt("metadata.searchHitMetadataList.valueNumber", 1); } }
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueNumber() { return getLocalInt("metadata.searchHitMetadataList.valueNumber", 1); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueNumber() { return getLocalInt("metadata.searchHitMetadataList.valueNumber", 1); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFi...
Configuration extends AbstractConfiguration { public int getSearchHitMetadataValueNumber() { return getLocalInt("metadata.searchHitMetadataList.valueNumber", 1); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFi...
@Test public void getSidebarTocInitialCollapseLevel_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(22, DataManager.getInstance().getConfiguration().getSidebarTocInitialCollapseLevel()); }
public int getSidebarTocInitialCollapseLevel() { return this.getLocalInt("sidebar.sidebarToc.initialCollapseLevel", 2); }
Configuration extends AbstractConfiguration { public int getSidebarTocInitialCollapseLevel() { return this.getLocalInt("sidebar.sidebarToc.initialCollapseLevel", 2); } }
Configuration extends AbstractConfiguration { public int getSidebarTocInitialCollapseLevel() { return this.getLocalInt("sidebar.sidebarToc.initialCollapseLevel", 2); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getSidebarTocInitialCollapseLevel() { return this.getLocalInt("sidebar.sidebarToc.initialCollapseLevel", 2); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBund...
Configuration extends AbstractConfiguration { public int getSidebarTocInitialCollapseLevel() { return this.getLocalInt("sidebar.sidebarToc.initialCollapseLevel", 2); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBund...
@Test public void getSidebarTocLengthBeforeCut_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(21, DataManager.getInstance().getConfiguration().getSidebarTocLengthBeforeCut()); }
public int getSidebarTocLengthBeforeCut() { return this.getLocalInt("sidebar.sidebarToc.lengthBeforeCut", 10); }
Configuration extends AbstractConfiguration { public int getSidebarTocLengthBeforeCut() { return this.getLocalInt("sidebar.sidebarToc.lengthBeforeCut", 10); } }
Configuration extends AbstractConfiguration { public int getSidebarTocLengthBeforeCut() { return this.getLocalInt("sidebar.sidebarToc.lengthBeforeCut", 10); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getSidebarTocLengthBeforeCut() { return this.getLocalInt("sidebar.sidebarToc.lengthBeforeCut", 10); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile();...
Configuration extends AbstractConfiguration { public int getSidebarTocLengthBeforeCut() { return this.getLocalInt("sidebar.sidebarToc.lengthBeforeCut", 10); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile();...
@Test public void getSidebarTocPageNumbersVisible_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(true, DataManager.getInstance().getConfiguration().getSidebarTocPageNumbersVisible()); }
public boolean getSidebarTocPageNumbersVisible() { return this.getLocalBoolean("sidebar.sidebarToc.pageNumbersVisible", false); }
Configuration extends AbstractConfiguration { public boolean getSidebarTocPageNumbersVisible() { return this.getLocalBoolean("sidebar.sidebarToc.pageNumbersVisible", false); } }
Configuration extends AbstractConfiguration { public boolean getSidebarTocPageNumbersVisible() { return this.getLocalBoolean("sidebar.sidebarToc.pageNumbersVisible", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean getSidebarTocPageNumbersVisible() { return this.getLocalBoolean("sidebar.sidebarToc.pageNumbersVisible", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalResso...
Configuration extends AbstractConfiguration { public boolean getSidebarTocPageNumbersVisible() { return this.getLocalBoolean("sidebar.sidebarToc.pageNumbersVisible", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalResso...
@Test public void isSidebarTocTreeView_shouldReturnCorrectValue() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isSidebarTocTreeView()); }
public boolean isSidebarTocTreeView() { return getLocalBoolean("sidebar.sidebarToc.useTreeView", true); }
Configuration extends AbstractConfiguration { public boolean isSidebarTocTreeView() { return getLocalBoolean("sidebar.sidebarToc.useTreeView", true); } }
Configuration extends AbstractConfiguration { public boolean isSidebarTocTreeView() { return getLocalBoolean("sidebar.sidebarToc.useTreeView", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isSidebarTocTreeView() { return getLocalBoolean("sidebar.sidebarToc.useTreeView", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ge...
Configuration extends AbstractConfiguration { public boolean isSidebarTocTreeView() { return getLocalBoolean("sidebar.sidebarToc.useTreeView", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ge...
@Test public void getRelevantLicenseTypesOnly_shouldRemoveLicenseTypesWhoseConditionQueryExcludesTheGivenPi() throws Exception { List<LicenseType> allLicenseTypes = new ArrayList<>(); LicenseType lt = new LicenseType(); allLicenseTypes.add(lt); lt.setName("type1"); lt.setConditions("+" + SolrConstants.PI_TOPSTRUCT + ":...
static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccessConditions.isEmpty()) {...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
@Test public void isTocTreeView_shouldReturnTrueForAllowedDocstructs() throws Exception { Assert.assertTrue(DataManager.getInstance().getConfiguration().isTocTreeView("Monograph")); Assert.assertTrue(DataManager.getInstance().getConfiguration().isTocTreeView("Manuscript")); Assert.assertTrue(DataManager.getInstance().g...
public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"); return false; } if (docStructTypes != null)...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
@Test public void isTocTreeView_shouldReturnFalseForOtherDocstructs() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isTocTreeView("Volume")); }
public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"); return false; } if (docStructTypes != null)...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
Configuration extends AbstractConfiguration { public boolean isTocTreeView(String docStructType) { HierarchicalConfiguration hc = getLocalConfigurationAt("toc.useTreeView"); String docStructTypes = hc.getString("[@showDocStructs]"); boolean allowed = hc.getBoolean("."); if (!allowed) { logger.trace("Tree view disabled"...
@Test public void getSmtpPassword_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("smtpPassword_value", DataManager.getInstance().getConfiguration().getSmtpPassword()); }
public String getSmtpPassword() { return getLocalString("user.smtpPassword"); }
Configuration extends AbstractConfiguration { public String getSmtpPassword() { return getLocalString("user.smtpPassword"); } }
Configuration extends AbstractConfiguration { public String getSmtpPassword() { return getLocalString("user.smtpPassword"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSmtpPassword() { return getLocalString("user.smtpPassword"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage()...
Configuration extends AbstractConfiguration { public String getSmtpPassword() { return getLocalString("user.smtpPassword"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage()...
@Test public void getSmtpSecurity_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("smtpSecurity_value", DataManager.getInstance().getConfiguration().getSmtpSecurity()); }
public String getSmtpSecurity() { return getLocalString("user.smtpSecurity", "none"); }
Configuration extends AbstractConfiguration { public String getSmtpSecurity() { return getLocalString("user.smtpSecurity", "none"); } }
Configuration extends AbstractConfiguration { public String getSmtpSecurity() { return getLocalString("user.smtpSecurity", "none"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSmtpSecurity() { return getLocalString("user.smtpSecurity", "none"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsP...
Configuration extends AbstractConfiguration { public String getSmtpSecurity() { return getLocalString("user.smtpSecurity", "none"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsP...
@Test public void getSmtpSenderAddress_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("smtpSenderAddress_value", DataManager.getInstance().getConfiguration().getSmtpSenderAddress()); }
public String getSmtpSenderAddress() { return getLocalString("user.smtpSenderAddress"); }
Configuration extends AbstractConfiguration { public String getSmtpSenderAddress() { return getLocalString("user.smtpSenderAddress"); } }
Configuration extends AbstractConfiguration { public String getSmtpSenderAddress() { return getLocalString("user.smtpSenderAddress"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSmtpSenderAddress() { return getLocalString("user.smtpSenderAddress"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnail...
Configuration extends AbstractConfiguration { public String getSmtpSenderAddress() { return getLocalString("user.smtpSenderAddress"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnail...
@Test public void getSmtpSenderName_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("smtpSenderName_value", DataManager.getInstance().getConfiguration().getSmtpSenderName()); }
public String getSmtpSenderName() { return getLocalString("user.smtpSenderName"); }
Configuration extends AbstractConfiguration { public String getSmtpSenderName() { return getLocalString("user.smtpSenderName"); } }
Configuration extends AbstractConfiguration { public String getSmtpSenderName() { return getLocalString("user.smtpSenderName"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSmtpSenderName() { return getLocalString("user.smtpSenderName"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPa...
Configuration extends AbstractConfiguration { public String getSmtpSenderName() { return getLocalString("user.smtpSenderName"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPa...
@Test public void getSmtpServer_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("smtpServer_value", DataManager.getInstance().getConfiguration().getSmtpServer()); }
public String getSmtpServer() { return getLocalString("user.smtpServer"); }
Configuration extends AbstractConfiguration { public String getSmtpServer() { return getLocalString("user.smtpServer"); } }
Configuration extends AbstractConfiguration { public String getSmtpServer() { return getLocalString("user.smtpServer"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSmtpServer() { return getLocalString("user.smtpServer"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); in...
Configuration extends AbstractConfiguration { public String getSmtpServer() { return getLocalString("user.smtpServer"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); in...
@Test public void getSmtpUser_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("smtpUser_value", DataManager.getInstance().getConfiguration().getSmtpUser()); }
public String getSmtpUser() { return getLocalString("user.smtpUser"); }
Configuration extends AbstractConfiguration { public String getSmtpUser() { return getLocalString("user.smtpUser"); } }
Configuration extends AbstractConfiguration { public String getSmtpUser() { return getLocalString("user.smtpUser"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSmtpUser() { return getLocalString("user.smtpUser"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int ge...
Configuration extends AbstractConfiguration { public String getSmtpUser() { return getLocalString("user.smtpUser"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int ge...
@Test public void getAnonymousUserEmailAddress_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("we.are@anonymous.lulz", DataManager.getInstance().getConfiguration().getAnonymousUserEmailAddress()); }
public String getAnonymousUserEmailAddress() { return getLocalString("user.anonymousUserEmailAddress"); }
Configuration extends AbstractConfiguration { public String getAnonymousUserEmailAddress() { return getLocalString("user.anonymousUserEmailAddress"); } }
Configuration extends AbstractConfiguration { public String getAnonymousUserEmailAddress() { return getLocalString("user.anonymousUserEmailAddress"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getAnonymousUserEmailAddress() { return getLocalString("user.anonymousUserEmailAddress"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ge...
Configuration extends AbstractConfiguration { public String getAnonymousUserEmailAddress() { return getLocalString("user.anonymousUserEmailAddress"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ge...
@Test public void getSolrUrl_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("https: }
public String getSolrUrl() { String value = getLocalString("urls.solr", "http: if (value.charAt(value.length() - 1) == '/') { value = value.substring(0, value.length() - 1); } return value; }
Configuration extends AbstractConfiguration { public String getSolrUrl() { String value = getLocalString("urls.solr", "http: if (value.charAt(value.length() - 1) == '/') { value = value.substring(0, value.length() - 1); } return value; } }
Configuration extends AbstractConfiguration { public String getSolrUrl() { String value = getLocalString("urls.solr", "http: if (value.charAt(value.length() - 1) == '/') { value = value.substring(0, value.length() - 1); } return value; } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSolrUrl() { String value = getLocalString("urls.solr", "http: if (value.charAt(value.length() - 1) == '/') { value = value.substring(0, value.length() - 1); } return value; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadin...
Configuration extends AbstractConfiguration { public String getSolrUrl() { String value = getLocalString("urls.solr", "http: if (value.charAt(value.length() - 1) == '/') { value = value.substring(0, value.length() - 1); } return value; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadin...
@Test public void getRelevantLicenseTypesOnly_shouldNotRemoveWallLicenseTypesToOpenAccessIfConditionQueryExcludesGivenPi() throws Exception { List<LicenseType> allLicenseTypes = new ArrayList<>(); LicenseType lt = new LicenseType(); allLicenseTypes.add(lt); lt.setName("type1"); lt.setMovingWall(true); lt.setConditions(...
static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccessConditions.isEmpty()) {...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
AccessConditionUtils { static Map<String, List<LicenseType>> getRelevantLicenseTypesOnly(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String query, Map<String, Boolean> accessMap) throws IndexUnreachableException, PresentationException { if (requiredAccessConditions == null || requiredAccess...
@Test public void getCollectionSplittingChar_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(".", DataManager.getInstance().getConfiguration().getCollectionSplittingChar(SolrConstants.DC)); Assert.assertEquals("/", DataManager.getInstance().getConfiguration().getCollectionSplittingChar("MD_KNOWLEDGEFI...
public String getCollectionSplittingChar(String field) { HierarchicalConfiguration subConfig = getCollectionConfiguration(field); if (subConfig != null) { return subConfig.getString("splittingCharacter", "."); } return getLocalString("viewer.splittingCharacter", "."); }
Configuration extends AbstractConfiguration { public String getCollectionSplittingChar(String field) { HierarchicalConfiguration subConfig = getCollectionConfiguration(field); if (subConfig != null) { return subConfig.getString("splittingCharacter", "."); } return getLocalString("viewer.splittingCharacter", "."); } }
Configuration extends AbstractConfiguration { public String getCollectionSplittingChar(String field) { HierarchicalConfiguration subConfig = getCollectionConfiguration(field); if (subConfig != null) { return subConfig.getString("splittingCharacter", "."); } return getLocalString("viewer.splittingCharacter", "."); } Con...
Configuration extends AbstractConfiguration { public String getCollectionSplittingChar(String field) { HierarchicalConfiguration subConfig = getCollectionConfiguration(field); if (subConfig != null) { return subConfig.getString("splittingCharacter", "."); } return getLocalString("viewer.splittingCharacter", "."); } Con...
Configuration extends AbstractConfiguration { public String getCollectionSplittingChar(String field) { HierarchicalConfiguration subConfig = getCollectionConfiguration(field); if (subConfig != null) { return subConfig.getString("splittingCharacter", "."); } return getLocalString("viewer.splittingCharacter", "."); } Con...
@Test public void getPageSelectionFormat_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("{order} {msg.of} {numpages}", DataManager.getInstance().getConfiguration().getPageSelectionFormat()); }
public String getPageSelectionFormat() { return getLocalString("viewer.pageSelectionFormat", "{pageno}:{pagenolabel}"); }
Configuration extends AbstractConfiguration { public String getPageSelectionFormat() { return getLocalString("viewer.pageSelectionFormat", "{pageno}:{pagenolabel}"); } }
Configuration extends AbstractConfiguration { public String getPageSelectionFormat() { return getLocalString("viewer.pageSelectionFormat", "{pageno}:{pagenolabel}"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getPageSelectionFormat() { return getLocalString("viewer.pageSelectionFormat", "{pageno}:{pagenolabel}"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBund...
Configuration extends AbstractConfiguration { public String getPageSelectionFormat() { return getLocalString("viewer.pageSelectionFormat", "{pageno}:{pagenolabel}"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBund...
@Test public void loadStopwords_shouldLoadAllStopwords() throws Exception { Set<String> stopwords = Configuration.loadStopwords("src/test/resources/stopwords.txt"); Assert.assertNotNull(stopwords); Assert.assertEquals(5, stopwords.size()); }
protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwordsFilePath)) { logger.warn("'stopwordsFile' no...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
@Test public void loadStopwords_shouldRemovePartsStartingWithPipe() throws Exception { Set<String> stopwords = Configuration.loadStopwords("src/test/resources/stopwords.txt"); Assert.assertNotNull(stopwords); Assert.assertTrue(stopwords.contains("one")); }
protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwordsFilePath)) { logger.warn("'stopwordsFile' no...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
@Test public void loadStopwords_shouldNotAddEmptyStopwords() throws Exception { Set<String> stopwords = Configuration.loadStopwords("src/test/resources/stopwords.txt"); Assert.assertNotNull(stopwords); Assert.assertFalse(stopwords.contains("")); }
protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwordsFilePath)) { logger.warn("'stopwordsFile' no...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
@Test(expected = IllegalArgumentException.class) public void loadStopwords_shouldThrowIllegalArgumentExceptionIfStopwordsFilePathEmpty() throws Exception { Configuration.loadStopwords(null); }
protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwordsFilePath)) { logger.warn("'stopwordsFile' no...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
@Test(expected = FileNotFoundException.class) public void loadStopwords_shouldThrowFileNotFoundExceptionIfFileDoesNotExist() throws Exception { Configuration.loadStopwords("src/test/resources/startwords.txt"); }
protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwordsFilePath)) { logger.warn("'stopwordsFile' no...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
Configuration extends AbstractConfiguration { protected static Set<String> loadStopwords(String stopwordsFilePath) throws FileNotFoundException, IOException { if (StringUtils.isEmpty(stopwordsFilePath)) { throw new IllegalArgumentException("stopwordsFilePath may not be null or empty"); } if (StringUtils.isEmpty(stopwor...
@Test public void getStopwords_shouldReturnAllStopwords() throws Exception { Assert.assertEquals(5, DataManager.getInstance().getConfiguration().getStopwords().size()); }
public Set<String> getStopwords() { return stopwords; }
Configuration extends AbstractConfiguration { public Set<String> getStopwords() { return stopwords; } }
Configuration extends AbstractConfiguration { public Set<String> getStopwords() { return stopwords; } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public Set<String> getStopwords() { return stopwords; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int getViewerMaxImageW...
Configuration extends AbstractConfiguration { public Set<String> getStopwords() { return stopwords; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int getViewerMaxImageW...
@Test public void getStopwordsFilePath_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("src/test/resources/stopwords.txt", DataManager.getInstance().getConfiguration().getStopwordsFilePath()); }
public String getStopwordsFilePath() { return getLocalString("stopwordsFile"); }
Configuration extends AbstractConfiguration { public String getStopwordsFilePath() { return getLocalString("stopwordsFile"); } }
Configuration extends AbstractConfiguration { public String getStopwordsFilePath() { return getLocalString("stopwordsFile"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getStopwordsFilePath() { return getLocalString("stopwordsFile"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(...
Configuration extends AbstractConfiguration { public String getStopwordsFilePath() { return getLocalString("stopwordsFile"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(...
@Test public void getSubthemeMainTheme_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("mainTheme_value", DataManager.getInstance().getConfiguration().getSubthemeMainTheme()); }
public String getSubthemeMainTheme() { String theme = getLocalString("viewer.theme[@mainTheme]"); if (StringUtils.isEmpty(theme)) { logger.error("Theme name could not be read - config_viewer.xml may not be well-formed."); } return getLocalString("viewer.theme[@mainTheme]"); }
Configuration extends AbstractConfiguration { public String getSubthemeMainTheme() { String theme = getLocalString("viewer.theme[@mainTheme]"); if (StringUtils.isEmpty(theme)) { logger.error("Theme name could not be read - config_viewer.xml may not be well-formed."); } return getLocalString("viewer.theme[@mainTheme]");...
Configuration extends AbstractConfiguration { public String getSubthemeMainTheme() { String theme = getLocalString("viewer.theme[@mainTheme]"); if (StringUtils.isEmpty(theme)) { logger.error("Theme name could not be read - config_viewer.xml may not be well-formed."); } return getLocalString("viewer.theme[@mainTheme]");...
Configuration extends AbstractConfiguration { public String getSubthemeMainTheme() { String theme = getLocalString("viewer.theme[@mainTheme]"); if (StringUtils.isEmpty(theme)) { logger.error("Theme name could not be read - config_viewer.xml may not be well-formed."); } return getLocalString("viewer.theme[@mainTheme]");...
Configuration extends AbstractConfiguration { public String getSubthemeMainTheme() { String theme = getLocalString("viewer.theme[@mainTheme]"); if (StringUtils.isEmpty(theme)) { logger.error("Theme name could not be read - config_viewer.xml may not be well-formed."); } return getLocalString("viewer.theme[@mainTheme]");...
@Test public void generateAccessCheckQuery_shouldUseCorrectFieldNameForAVFiles() throws Exception { { String[] result = AccessConditionUtils.generateAccessCheckQuery("PPN123456789", "00000001.tif"); Assert.assertEquals("+" + SolrConstants.PI_TOPSTRUCT + ":PPN123456789 +" + SolrConstants.FILENAME + ":\"00000001.tif\"", ...
static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPathFromUrlString(fileNam...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
@Test public void testGetLocalesFromFile() throws FileNotFoundException, IOException, JDOMException { Path configPath = Paths.get("src/test/resources/localConfig/faces-config.xml"); assumeTrue(Files.isRegularFile(configPath)); List<Locale> locales = ViewerResourceBundle.getLocalesFromFile(configPath); assertEquals(6, l...
public static List<Locale> getLocalesFromFile(Path facesConfigPath) throws FileNotFoundException, IOException, JDOMException { Document doc = XmlTools.readXmlFile(facesConfigPath); Namespace xsi = Namespace.getNamespace("xsi", "http: Namespace javaee = Namespace.getNamespace("ee", "http: List<Namespace> namespaces = Ar...
ViewerResourceBundle extends ResourceBundle { public static List<Locale> getLocalesFromFile(Path facesConfigPath) throws FileNotFoundException, IOException, JDOMException { Document doc = XmlTools.readXmlFile(facesConfigPath); Namespace xsi = Namespace.getNamespace("xsi", "http: Namespace javaee = Namespace.getNamespac...
ViewerResourceBundle extends ResourceBundle { public static List<Locale> getLocalesFromFile(Path facesConfigPath) throws FileNotFoundException, IOException, JDOMException { Document doc = XmlTools.readXmlFile(facesConfigPath); Namespace xsi = Namespace.getNamespace("xsi", "http: Namespace javaee = Namespace.getNamespac...
ViewerResourceBundle extends ResourceBundle { public static List<Locale> getLocalesFromFile(Path facesConfigPath) throws FileNotFoundException, IOException, JDOMException { Document doc = XmlTools.readXmlFile(facesConfigPath); Namespace xsi = Namespace.getNamespace("xsi", "http: Namespace javaee = Namespace.getNamespac...
ViewerResourceBundle extends ResourceBundle { public static List<Locale> getLocalesFromFile(Path facesConfigPath) throws FileNotFoundException, IOException, JDOMException { Document doc = XmlTools.readXmlFile(facesConfigPath); Namespace xsi = Namespace.getNamespace("xsi", "http: Namespace javaee = Namespace.getNamespac...
@Test public void getSubthemeDiscriminatorField_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("FACET_VIEWERSUBTHEME", DataManager.getInstance().getConfiguration().getSubthemeDiscriminatorField()); }
public String getSubthemeDiscriminatorField() { return getLocalString("viewer.theme[@discriminatorField]", ""); }
Configuration extends AbstractConfiguration { public String getSubthemeDiscriminatorField() { return getLocalString("viewer.theme[@discriminatorField]", ""); } }
Configuration extends AbstractConfiguration { public String getSubthemeDiscriminatorField() { return getLocalString("viewer.theme[@discriminatorField]", ""); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getSubthemeDiscriminatorField() { return getLocalString("viewer.theme[@discriminatorField]", ""); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile()...
Configuration extends AbstractConfiguration { public String getSubthemeDiscriminatorField() { return getLocalString("viewer.theme[@discriminatorField]", ""); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile()...
@Test public void getTagCloudSampleSize_shouldReturnCorrectValueForExistingFields() throws Exception { Assert.assertEquals(20, DataManager.getInstance().getConfiguration().getTagCloudSampleSize("MD_TITLE")); }
public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); }
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } }
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRes...
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRes...
@Test public void getTagCloudSampleSize_shouldReturnINT_MAXForOtherFields() throws Exception { Assert.assertEquals(Integer.MAX_VALUE, DataManager.getInstance().getConfiguration().getTagCloudSampleSize("NONEXISTING_FIELD")); }
public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); }
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } }
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRes...
Configuration extends AbstractConfiguration { public int getTagCloudSampleSize(String fieldName) { return getLocalInt("tagclouds.sampleSizes." + fieldName, Integer.MAX_VALUE); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRes...
@Test public void getTheme_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("mainTheme_value", DataManager.getInstance().getConfiguration().getTheme()); }
public String getTheme() { return getSubthemeMainTheme(); }
Configuration extends AbstractConfiguration { public String getTheme() { return getSubthemeMainTheme(); } }
Configuration extends AbstractConfiguration { public String getTheme() { return getSubthemeMainTheme(); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getTheme() { return getSubthemeMainTheme(); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int getViewerMaxIm...
Configuration extends AbstractConfiguration { public String getTheme() { return getSubthemeMainTheme(); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int getViewerMaxIm...
@Test public void getName_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("Goobi viewer TEST", DataManager.getInstance().getConfiguration().getName()); }
public String getName() { return getLocalString("viewer.name", "Goobi viewer"); }
Configuration extends AbstractConfiguration { public String getName() { return getLocalString("viewer.name", "Goobi viewer"); } }
Configuration extends AbstractConfiguration { public String getName() { return getLocalString("viewer.name", "Goobi viewer"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getName() { return getLocalString("viewer.name", "Goobi viewer"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage...
Configuration extends AbstractConfiguration { public String getName() { return getLocalString("viewer.name", "Goobi viewer"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage...
@Test public void getDescription_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("Goobi viewer TEST desc", DataManager.getInstance().getConfiguration().getDescription()); }
public String getDescription() { return getLocalString("viewer.description", "Goobi viewer"); }
Configuration extends AbstractConfiguration { public String getDescription() { return getLocalString("viewer.description", "Goobi viewer"); } }
Configuration extends AbstractConfiguration { public String getDescription() { return getLocalString("viewer.description", "Goobi viewer"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getDescription() { return getLocalString("viewer.description", "Goobi viewer"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
Configuration extends AbstractConfiguration { public String getDescription() { return getLocalString("viewer.description", "Goobi viewer"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
@Test public void getThumbnailsHeight_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(11, DataManager.getInstance().getConfiguration().getThumbnailsHeight()); }
public int getThumbnailsHeight() { return getLocalInt("viewer.thumbnailsHeight", 120); }
Configuration extends AbstractConfiguration { public int getThumbnailsHeight() { return getLocalInt("viewer.thumbnailsHeight", 120); } }
Configuration extends AbstractConfiguration { public int getThumbnailsHeight() { return getLocalInt("viewer.thumbnailsHeight", 120); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getThumbnailsHeight() { return getLocalInt("viewer.thumbnailsHeight", 120); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnails...
Configuration extends AbstractConfiguration { public int getThumbnailsHeight() { return getLocalInt("viewer.thumbnailsHeight", 120); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnails...
@Test public void getThumbnailsWidth_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(10, DataManager.getInstance().getConfiguration().getThumbnailsWidth()); }
public int getThumbnailsWidth() { return getLocalInt("viewer.thumbnailsWidth", 100); }
Configuration extends AbstractConfiguration { public int getThumbnailsWidth() { return getLocalInt("viewer.thumbnailsWidth", 100); } }
Configuration extends AbstractConfiguration { public int getThumbnailsWidth() { return getLocalInt("viewer.thumbnailsWidth", 100); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getThumbnailsWidth() { return getLocalInt("viewer.thumbnailsWidth", 100); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPe...
Configuration extends AbstractConfiguration { public int getThumbnailsWidth() { return getLocalInt("viewer.thumbnailsWidth", 100); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPe...
@Test public void getThumbnailsCompressionTest() throws Exception { Assert.assertEquals(30, DataManager.getInstance().getConfiguration().getThumbnailsCompression()); }
public int getThumbnailsCompression() { return getLocalInt("viewer.thumbnailsCompression", 85); }
Configuration extends AbstractConfiguration { public int getThumbnailsCompression() { return getLocalInt("viewer.thumbnailsCompression", 85); } }
Configuration extends AbstractConfiguration { public int getThumbnailsCompression() { return getLocalInt("viewer.thumbnailsCompression", 85); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getThumbnailsCompression() { return getLocalInt("viewer.thumbnailsCompression", 85); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerT...
Configuration extends AbstractConfiguration { public int getThumbnailsCompression() { return getLocalInt("viewer.thumbnailsCompression", 85); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerT...
@Test public void getTitleBarMetadata_shouldReturnAllConfiguredMetadataElements() throws Exception { Assert.assertEquals(2, DataManager.getInstance().getConfiguration().getTitleBarMetadata().size()); }
public List<Metadata> getTitleBarMetadata() { List<HierarchicalConfiguration> elements = getLocalConfigurationsAt("metadata.titleBarMetadataList.metadata"); if (elements == null) { return Collections.emptyList(); } List<Metadata> ret = new ArrayList<>(elements.size()); for (Iterator<HierarchicalConfiguration> it = elem...
Configuration extends AbstractConfiguration { public List<Metadata> getTitleBarMetadata() { List<HierarchicalConfiguration> elements = getLocalConfigurationsAt("metadata.titleBarMetadataList.metadata"); if (elements == null) { return Collections.emptyList(); } List<Metadata> ret = new ArrayList<>(elements.size()); for ...
Configuration extends AbstractConfiguration { public List<Metadata> getTitleBarMetadata() { List<HierarchicalConfiguration> elements = getLocalConfigurationsAt("metadata.titleBarMetadataList.metadata"); if (elements == null) { return Collections.emptyList(); } List<Metadata> ret = new ArrayList<>(elements.size()); for ...
Configuration extends AbstractConfiguration { public List<Metadata> getTitleBarMetadata() { List<HierarchicalConfiguration> elements = getLocalConfigurationsAt("metadata.titleBarMetadataList.metadata"); if (elements == null) { return Collections.emptyList(); } List<Metadata> ret = new ArrayList<>(elements.size()); for ...
Configuration extends AbstractConfiguration { public List<Metadata> getTitleBarMetadata() { List<HierarchicalConfiguration> elements = getLocalConfigurationsAt("metadata.titleBarMetadataList.metadata"); if (elements == null) { return Collections.emptyList(); } List<Metadata> ret = new ArrayList<>(elements.size()); for ...
@Test public void generateAccessCheckQuery_shouldUseCorrectFileNameForTextFiles() throws Exception { { String[] result = AccessConditionUtils.generateAccessCheckQuery("PPN123456789", "00000001.txt"); Assert.assertEquals("+" + SolrConstants.PI_TOPSTRUCT + ":PPN123456789 +" + SolrConstants.FILENAME + ":00000001.*", resul...
static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPathFromUrlString(fileNam...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
@Test public void getUnconditionalImageAccessMaxWidth_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(1, DataManager.getInstance().getConfiguration().getUnconditionalImageAccessMaxWidth()); }
public int getUnconditionalImageAccessMaxWidth() { return getLocalInt("accessConditions.unconditionalImageAccessMaxWidth", 120); }
Configuration extends AbstractConfiguration { public int getUnconditionalImageAccessMaxWidth() { return getLocalInt("accessConditions.unconditionalImageAccessMaxWidth", 120); } }
Configuration extends AbstractConfiguration { public int getUnconditionalImageAccessMaxWidth() { return getLocalInt("accessConditions.unconditionalImageAccessMaxWidth", 120); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getUnconditionalImageAccessMaxWidth() { return getLocalInt("accessConditions.unconditionalImageAccessMaxWidth", 120); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRess...
Configuration extends AbstractConfiguration { public int getUnconditionalImageAccessMaxWidth() { return getLocalInt("accessConditions.unconditionalImageAccessMaxWidth", 120); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRess...
@Test public void getViewerHome_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("src/test/resources/data/viewer/", DataManager.getInstance().getConfiguration().getViewerHome()); }
public String getViewerHome() { return getLocalString("viewerHome"); }
Configuration extends AbstractConfiguration { public String getViewerHome() { return getLocalString("viewerHome"); } }
Configuration extends AbstractConfiguration { public String getViewerHome() { return getLocalString("viewerHome"); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getViewerHome() { return getLocalString("viewerHome"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int get...
Configuration extends AbstractConfiguration { public String getViewerHome() { return getLocalString("viewerHome"); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsPerPage(); int get...
@Test public void getViewerThumbnailsPerPage_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(9, DataManager.getInstance().getConfiguration().getViewerThumbnailsPerPage()); }
public int getViewerThumbnailsPerPage() { return getLocalInt("viewer.thumbnailsPerPage", 10); }
Configuration extends AbstractConfiguration { public int getViewerThumbnailsPerPage() { return getLocalInt("viewer.thumbnailsPerPage", 10); } }
Configuration extends AbstractConfiguration { public int getViewerThumbnailsPerPage() { return getLocalInt("viewer.thumbnailsPerPage", 10); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getViewerThumbnailsPerPage() { return getLocalInt("viewer.thumbnailsPerPage", 10); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
Configuration extends AbstractConfiguration { public int getViewerThumbnailsPerPage() { return getLocalInt("viewer.thumbnailsPerPage", 10); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
@Test public void getWatermarkIdField_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(Collections.singletonList("watermarkIdField_value"), DataManager.getInstance().getConfiguration().getWatermarkIdField()); }
public List<String> getWatermarkIdField() { return getLocalList("viewer.watermarkIdField", Collections.singletonList(SolrConstants.DC)); }
Configuration extends AbstractConfiguration { public List<String> getWatermarkIdField() { return getLocalList("viewer.watermarkIdField", Collections.singletonList(SolrConstants.DC)); } }
Configuration extends AbstractConfiguration { public List<String> getWatermarkIdField() { return getLocalList("viewer.watermarkIdField", Collections.singletonList(SolrConstants.DC)); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public List<String> getWatermarkIdField() { return getLocalList("viewer.watermarkIdField", Collections.singletonList(SolrConstants.DC)); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getL...
Configuration extends AbstractConfiguration { public List<String> getWatermarkIdField() { return getLocalList("viewer.watermarkIdField", Collections.singletonList(SolrConstants.DC)); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getL...
@Test public void getWatermarkTextConfiguration_shouldReturnAllConfiguredElementsInTheCorrectOrder() throws Exception { Assert.assertEquals(3, DataManager.getInstance().getConfiguration().getWatermarkTextConfiguration().size()); }
public List<String> getWatermarkTextConfiguration() { List<String> list = getLocalList("viewer.watermarkTextConfiguration.text"); return list; }
Configuration extends AbstractConfiguration { public List<String> getWatermarkTextConfiguration() { List<String> list = getLocalList("viewer.watermarkTextConfiguration.text"); return list; } }
Configuration extends AbstractConfiguration { public List<String> getWatermarkTextConfiguration() { List<String> list = getLocalList("viewer.watermarkTextConfiguration.text"); return list; } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public List<String> getWatermarkTextConfiguration() { List<String> list = getLocalList("viewer.watermarkTextConfiguration.text"); return list; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); Strin...
Configuration extends AbstractConfiguration { public List<String> getWatermarkTextConfiguration() { List<String> list = getLocalList("viewer.watermarkTextConfiguration.text"); return list; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); Strin...
@Test public void getZoomFullscreenViewType_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("classic", DataManager.getInstance().getConfiguration().getZoomFullscreenViewType()); }
public String getZoomFullscreenViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewFullscreen, null); }
Configuration extends AbstractConfiguration { public String getZoomFullscreenViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewFullscreen, null); } }
Configuration extends AbstractConfiguration { public String getZoomFullscreenViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewFullscreen, null); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getZoomFullscreenViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewFullscreen, null); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String g...
Configuration extends AbstractConfiguration { public String getZoomFullscreenViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewFullscreen, null); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String g...
@Test public void getZoomImageViewType_shouldReturnCorrectValue() throws Exception { Assert.assertEquals("openSeadragon", DataManager.getInstance().getConfiguration().getImageViewType()); }
public String getImageViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewImage, null); }
Configuration extends AbstractConfiguration { public String getImageViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewImage, null); } }
Configuration extends AbstractConfiguration { public String getImageViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewImage, null); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public String getImageViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewImage, null); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessour...
Configuration extends AbstractConfiguration { public String getImageViewType() throws ViewerConfigurationException { return getZoomImageViewType(PageType.viewImage, null); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessour...
@Test public void isBookshelvesEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isBookmarksEnabled()); }
public boolean isBookmarksEnabled() { return getLocalBoolean("bookmarks.bookmarksEnabled", true); }
Configuration extends AbstractConfiguration { public boolean isBookmarksEnabled() { return getLocalBoolean("bookmarks.bookmarksEnabled", true); } }
Configuration extends AbstractConfiguration { public boolean isBookmarksEnabled() { return getLocalBoolean("bookmarks.bookmarksEnabled", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isBookmarksEnabled() { return getLocalBoolean("bookmarks.bookmarksEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewe...
Configuration extends AbstractConfiguration { public boolean isBookmarksEnabled() { return getLocalBoolean("bookmarks.bookmarksEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewe...
@Test public void isBrowsingMenuEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isBrowsingMenuEnabled()); }
public boolean isBrowsingMenuEnabled() { return getLocalBoolean("metadata.browsingMenu.enabled", false); }
Configuration extends AbstractConfiguration { public boolean isBrowsingMenuEnabled() { return getLocalBoolean("metadata.browsingMenu.enabled", false); } }
Configuration extends AbstractConfiguration { public boolean isBrowsingMenuEnabled() { return getLocalBoolean("metadata.browsingMenu.enabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isBrowsingMenuEnabled() { return getLocalBoolean("metadata.browsingMenu.enabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int g...
Configuration extends AbstractConfiguration { public boolean isBrowsingMenuEnabled() { return getLocalBoolean("metadata.browsingMenu.enabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int g...
@Test public void isDisplaySearchResultNavigation_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isDisplaySearchResultNavigation()); }
public boolean isDisplaySearchResultNavigation() { return this.getLocalBoolean("webGuiDisplay.displaySearchResultNavigation", true); }
Configuration extends AbstractConfiguration { public boolean isDisplaySearchResultNavigation() { return this.getLocalBoolean("webGuiDisplay.displaySearchResultNavigation", true); } }
Configuration extends AbstractConfiguration { public boolean isDisplaySearchResultNavigation() { return this.getLocalBoolean("webGuiDisplay.displaySearchResultNavigation", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isDisplaySearchResultNavigation() { return this.getLocalBoolean("webGuiDisplay.displaySearchResultNavigation", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocal...
Configuration extends AbstractConfiguration { public boolean isDisplaySearchResultNavigation() { return this.getLocalBoolean("webGuiDisplay.displaySearchResultNavigation", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocal...
@Test public void generateAccessCheckQuery_shouldEscapeFileNameForWildcardSearchCorrectly() throws Exception { { String[] result = AccessConditionUtils.generateAccessCheckQuery("PPN123456789", "00000001 (1).xml"); Assert.assertEquals("+" + SolrConstants.PI_TOPSTRUCT + ":PPN123456789 +" + SolrConstants.FILENAME + ":0000...
static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPathFromUrlString(fileNam...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
@Test public void isDisplayStatistics_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isDisplayStatistics()); }
public boolean isDisplayStatistics() { return this.getLocalBoolean("webGuiDisplay.displayStatistics", true); }
Configuration extends AbstractConfiguration { public boolean isDisplayStatistics() { return this.getLocalBoolean("webGuiDisplay.displayStatistics", true); } }
Configuration extends AbstractConfiguration { public boolean isDisplayStatistics() { return this.getLocalBoolean("webGuiDisplay.displayStatistics", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isDisplayStatistics() { return this.getLocalBoolean("webGuiDisplay.displayStatistics", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); i...
Configuration extends AbstractConfiguration { public boolean isDisplayStatistics() { return this.getLocalBoolean("webGuiDisplay.displayStatistics", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); i...
@Test public void isDisplayTagCloudNavigation_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isDisplayTagCloudNavigation()); }
public boolean isDisplayTagCloudNavigation() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudNavigation", true); }
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudNavigation() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudNavigation", true); } }
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudNavigation() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudNavigation", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudNavigation() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudNavigation", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourc...
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudNavigation() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudNavigation", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourc...
@Test public void isDisplayTagCloudStartpage_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isDisplayTagCloudStartpage()); }
public boolean isDisplayTagCloudStartpage() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudStartpage", true); }
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudStartpage() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudStartpage", true); } }
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudStartpage() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudStartpage", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudStartpage() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudStartpage", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceB...
Configuration extends AbstractConfiguration { public boolean isDisplayTagCloudStartpage() { return this.getLocalBoolean("webGuiDisplay.displayTagCloudStartpage", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceB...
@Test public void isDisplayUserNavigation_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isDisplayUserNavigation()); }
public boolean isDisplayUserNavigation() { return this.getLocalBoolean("webGuiDisplay.userAccountNavigation", true); }
Configuration extends AbstractConfiguration { public boolean isDisplayUserNavigation() { return this.getLocalBoolean("webGuiDisplay.userAccountNavigation", true); } }
Configuration extends AbstractConfiguration { public boolean isDisplayUserNavigation() { return this.getLocalBoolean("webGuiDisplay.userAccountNavigation", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isDisplayUserNavigation() { return this.getLocalBoolean("webGuiDisplay.userAccountNavigation", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleF...
Configuration extends AbstractConfiguration { public boolean isDisplayUserNavigation() { return this.getLocalBoolean("webGuiDisplay.userAccountNavigation", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleF...
@Test public void isAddDublinCoreMetaTags_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(true, DataManager.getInstance().getConfiguration().isAddDublinCoreMetaTags()); }
public boolean isAddDublinCoreMetaTags() { return getLocalBoolean("metadata.addDublinCoreMetaTags", false); }
Configuration extends AbstractConfiguration { public boolean isAddDublinCoreMetaTags() { return getLocalBoolean("metadata.addDublinCoreMetaTags", false); } }
Configuration extends AbstractConfiguration { public boolean isAddDublinCoreMetaTags() { return getLocalBoolean("metadata.addDublinCoreMetaTags", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isAddDublinCoreMetaTags() { return getLocalBoolean("metadata.addDublinCoreMetaTags", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); in...
Configuration extends AbstractConfiguration { public boolean isAddDublinCoreMetaTags() { return getLocalBoolean("metadata.addDublinCoreMetaTags", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); in...
@Test public void isAddHighwirePressMetaTags_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(true, DataManager.getInstance().getConfiguration().isAddHighwirePressMetaTags()); }
public boolean isAddHighwirePressMetaTags() { return getLocalBoolean("metadata.addHighwirePressMetaTags", false); }
Configuration extends AbstractConfiguration { public boolean isAddHighwirePressMetaTags() { return getLocalBoolean("metadata.addHighwirePressMetaTags", false); } }
Configuration extends AbstractConfiguration { public boolean isAddHighwirePressMetaTags() { return getLocalBoolean("metadata.addHighwirePressMetaTags", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isAddHighwirePressMetaTags() { return getLocalBoolean("metadata.addHighwirePressMetaTags", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile...
Configuration extends AbstractConfiguration { public boolean isAddHighwirePressMetaTags() { return getLocalBoolean("metadata.addHighwirePressMetaTags", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile...
@Test public void getMetadataParamNumber_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(5, DataManager.getInstance().getConfiguration().getMetadataParamNumber()); }
public int getMetadataParamNumber() { return getLocalInt("metadata.metadataParamNumber", 10); }
Configuration extends AbstractConfiguration { public int getMetadataParamNumber() { return getLocalInt("metadata.metadataParamNumber", 10); } }
Configuration extends AbstractConfiguration { public int getMetadataParamNumber() { return getLocalInt("metadata.metadataParamNumber", 10); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public int getMetadataParamNumber() { return getLocalInt("metadata.metadataParamNumber", 10); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
Configuration extends AbstractConfiguration { public int getMetadataParamNumber() { return getLocalInt("metadata.metadataParamNumber", 10); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
@Test public void isMetadataPdfEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isMetadataPdfEnabled()); }
public boolean isMetadataPdfEnabled() { return getLocalBoolean("pdf.metadataPdfEnabled", true); }
Configuration extends AbstractConfiguration { public boolean isMetadataPdfEnabled() { return getLocalBoolean("pdf.metadataPdfEnabled", true); } }
Configuration extends AbstractConfiguration { public boolean isMetadataPdfEnabled() { return getLocalBoolean("pdf.metadataPdfEnabled", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isMetadataPdfEnabled() { return getLocalBoolean("pdf.metadataPdfEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerT...
Configuration extends AbstractConfiguration { public boolean isMetadataPdfEnabled() { return getLocalBoolean("pdf.metadataPdfEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerT...
@Test public void isOriginalContentDownload_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isOriginalContentDownload()); }
public boolean isOriginalContentDownload() { return getLocalBoolean("content.originalContentDownload", false); }
Configuration extends AbstractConfiguration { public boolean isOriginalContentDownload() { return getLocalBoolean("content.originalContentDownload", false); } }
Configuration extends AbstractConfiguration { public boolean isOriginalContentDownload() { return getLocalBoolean("content.originalContentDownload", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isOriginalContentDownload() { return getLocalBoolean("content.originalContentDownload", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile();...
Configuration extends AbstractConfiguration { public boolean isOriginalContentDownload() { return getLocalBoolean("content.originalContentDownload", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile();...
@Test public void isGeneratePdfInTaskManager_shouldReturnCorrectValue() throws Exception { Assert.assertTrue(DataManager.getInstance().getConfiguration().isGeneratePdfInTaskManager()); }
public boolean isGeneratePdfInTaskManager() { return getLocalBoolean("pdf.externalPdfGeneration", false); }
Configuration extends AbstractConfiguration { public boolean isGeneratePdfInTaskManager() { return getLocalBoolean("pdf.externalPdfGeneration", false); } }
Configuration extends AbstractConfiguration { public boolean isGeneratePdfInTaskManager() { return getLocalBoolean("pdf.externalPdfGeneration", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isGeneratePdfInTaskManager() { return getLocalBoolean("pdf.externalPdfGeneration", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ...
Configuration extends AbstractConfiguration { public boolean isGeneratePdfInTaskManager() { return getLocalBoolean("pdf.externalPdfGeneration", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ...
@Test public void generateAccessCheckQuery_shouldWorkCorrectlyWithUrls() throws Exception { String[] result = AccessConditionUtils.generateAccessCheckQuery("PPN123456789", "file: Assert.assertEquals("+" + SolrConstants.PI_TOPSTRUCT + ":PPN123456789 +" + SolrConstants.FILENAME + ":\"bild4.png\"", result[0]); Assert.asse...
static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPathFromUrlString(fileNam...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
AccessConditionUtils { static String[] generateAccessCheckQuery(String identifier, String fileName) { if (StringUtils.isEmpty(fileName)) { return new String[2]; } String[] ret = new String[2]; StringBuilder sbQuery = new StringBuilder(); String useFileField = SolrConstants.FILENAME; String useFileName = FileTools.getPa...
@Test public void isPdfApiDisabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isPdfApiDisabled()); }
public boolean isPdfApiDisabled() { return getLocalBoolean("pdf.pdfApiDisabled", false); }
Configuration extends AbstractConfiguration { public boolean isPdfApiDisabled() { return getLocalBoolean("pdf.pdfApiDisabled", false); } }
Configuration extends AbstractConfiguration { public boolean isPdfApiDisabled() { return getLocalBoolean("pdf.pdfApiDisabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isPdfApiDisabled() { return getLocalBoolean("pdf.pdfApiDisabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnai...
Configuration extends AbstractConfiguration { public boolean isPdfApiDisabled() { return getLocalBoolean("pdf.pdfApiDisabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnai...
@Test public void isTitlePdfEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isTitlePdfEnabled()); }
public boolean isTitlePdfEnabled() { boolean enabled = getLocalBoolean("pdf.titlePdfEnabled", true); return enabled; }
Configuration extends AbstractConfiguration { public boolean isTitlePdfEnabled() { boolean enabled = getLocalBoolean("pdf.titlePdfEnabled", true); return enabled; } }
Configuration extends AbstractConfiguration { public boolean isTitlePdfEnabled() { boolean enabled = getLocalBoolean("pdf.titlePdfEnabled", true); return enabled; } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isTitlePdfEnabled() { boolean enabled = getLocalBoolean("pdf.titlePdfEnabled", true); return enabled; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleF...
Configuration extends AbstractConfiguration { public boolean isTitlePdfEnabled() { boolean enabled = getLocalBoolean("pdf.titlePdfEnabled", true); return enabled; } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleF...
@Test public void isTocPdfEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isTocPdfEnabled()); }
public boolean isTocPdfEnabled() { return getLocalBoolean("pdf.tocPdfEnabled", true); }
Configuration extends AbstractConfiguration { public boolean isTocPdfEnabled() { return getLocalBoolean("pdf.tocPdfEnabled", true); } }
Configuration extends AbstractConfiguration { public boolean isTocPdfEnabled() { return getLocalBoolean("pdf.tocPdfEnabled", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isTocPdfEnabled() { return getLocalBoolean("pdf.tocPdfEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsP...
Configuration extends AbstractConfiguration { public boolean isTocPdfEnabled() { return getLocalBoolean("pdf.tocPdfEnabled", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnailsP...
@Test public void isPagePdfEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(true, DataManager.getInstance().getConfiguration().isPagePdfEnabled()); }
public boolean isPagePdfEnabled() { return getLocalBoolean("pdf.pagePdfEnabled", false); }
Configuration extends AbstractConfiguration { public boolean isPagePdfEnabled() { return getLocalBoolean("pdf.pagePdfEnabled", false); } }
Configuration extends AbstractConfiguration { public boolean isPagePdfEnabled() { return getLocalBoolean("pdf.pagePdfEnabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isPagePdfEnabled() { return getLocalBoolean("pdf.pagePdfEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnai...
Configuration extends AbstractConfiguration { public boolean isPagePdfEnabled() { return getLocalBoolean("pdf.pagePdfEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbnai...
@Test public void isDocHierarchyPdfEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(true, DataManager.getInstance().getConfiguration().isDocHierarchyPdfEnabled()); }
public boolean isDocHierarchyPdfEnabled() { return getLocalBoolean("pdf.docHierarchyPdfEnabled", false); }
Configuration extends AbstractConfiguration { public boolean isDocHierarchyPdfEnabled() { return getLocalBoolean("pdf.docHierarchyPdfEnabled", false); } }
Configuration extends AbstractConfiguration { public boolean isDocHierarchyPdfEnabled() { return getLocalBoolean("pdf.docHierarchyPdfEnabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isDocHierarchyPdfEnabled() { return getLocalBoolean("pdf.docHierarchyPdfEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int g...
Configuration extends AbstractConfiguration { public boolean isDocHierarchyPdfEnabled() { return getLocalBoolean("pdf.docHierarchyPdfEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int g...
@Test public void isTitleEpubEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isTitleEpubEnabled()); }
public boolean isTitleEpubEnabled() { return getLocalBoolean("epub.titleEpubEnabled", false); }
Configuration extends AbstractConfiguration { public boolean isTitleEpubEnabled() { return getLocalBoolean("epub.titleEpubEnabled", false); } }
Configuration extends AbstractConfiguration { public boolean isTitleEpubEnabled() { return getLocalBoolean("epub.titleEpubEnabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isTitleEpubEnabled() { return getLocalBoolean("epub.titleEpubEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
Configuration extends AbstractConfiguration { public boolean isTitleEpubEnabled() { return getLocalBoolean("epub.titleEpubEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThu...
@Test public void isTocEpubEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isTocEpubEnabled()); }
public boolean isTocEpubEnabled() { return getLocalBoolean("epub.tocEpubEnabled", false); }
Configuration extends AbstractConfiguration { public boolean isTocEpubEnabled() { return getLocalBoolean("epub.tocEpubEnabled", false); } }
Configuration extends AbstractConfiguration { public boolean isTocEpubEnabled() { return getLocalBoolean("epub.tocEpubEnabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isTocEpubEnabled() { return getLocalBoolean("epub.tocEpubEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbna...
Configuration extends AbstractConfiguration { public boolean isTocEpubEnabled() { return getLocalBoolean("epub.tocEpubEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getViewerThumbna...
@Test public void isMetadataEpubEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isMetadataEpubEnabled()); }
public boolean isMetadataEpubEnabled() { return getLocalBoolean("epub.metadataEpubEnabled", false); }
Configuration extends AbstractConfiguration { public boolean isMetadataEpubEnabled() { return getLocalBoolean("epub.metadataEpubEnabled", false); } }
Configuration extends AbstractConfiguration { public boolean isMetadataEpubEnabled() { return getLocalBoolean("epub.metadataEpubEnabled", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isMetadataEpubEnabled() { return getLocalBoolean("epub.metadataEpubEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getVie...
Configuration extends AbstractConfiguration { public boolean isMetadataEpubEnabled() { return getLocalBoolean("epub.metadataEpubEnabled", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getVie...
@Test public void getDownloadFolder_shouldReturnCorrectValueForPdf() throws Exception { Assert.assertEquals("/opt/digiverso/viewer/download_test_pdf", DataManager.getInstance().getConfiguration().getDownloadFolder("pdf")); }
public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); default: return ""; } }
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
@Test public void getDownloadFolder_shouldReturnCorrectValueForEpub() throws Exception { Assert.assertEquals("/opt/digiverso/viewer/download_test_epub", DataManager.getInstance().getConfiguration().getDownloadFolder("epub")); }
public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); default: return ""; } }
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
@Test(expected = RecordNotFoundException.class) public void getPdfDownloadQuotaForRecord_shouldThrowRecordNotFoundExceptionIfRecordNotFound() throws Exception { AccessConditionUtils.getPdfDownloadQuotaForRecord("notfound"); }
public static int getPdfDownloadQuotaForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException, RecordNotFoundException { if (StringUtils.isEmpty(pi)) { return 0; } SolrDocument doc = DataManager.getInstance() .getSearchIndex() .getFirstDoc("+" + SolrConstants.PI + ":\"" + pi + '"', Arr...
AccessConditionUtils { public static int getPdfDownloadQuotaForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException, RecordNotFoundException { if (StringUtils.isEmpty(pi)) { return 0; } SolrDocument doc = DataManager.getInstance() .getSearchIndex() .getFirstDoc("+" + SolrConstants.PI ...
AccessConditionUtils { public static int getPdfDownloadQuotaForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException, RecordNotFoundException { if (StringUtils.isEmpty(pi)) { return 0; } SolrDocument doc = DataManager.getInstance() .getSearchIndex() .getFirstDoc("+" + SolrConstants.PI ...
AccessConditionUtils { public static int getPdfDownloadQuotaForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException, RecordNotFoundException { if (StringUtils.isEmpty(pi)) { return 0; } SolrDocument doc = DataManager.getInstance() .getSearchIndex() .getFirstDoc("+" + SolrConstants.PI ...
AccessConditionUtils { public static int getPdfDownloadQuotaForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException, RecordNotFoundException { if (StringUtils.isEmpty(pi)) { return 0; } SolrDocument doc = DataManager.getInstance() .getSearchIndex() .getFirstDoc("+" + SolrConstants.PI ...
@Test public void getDownloadFolder_shouldReturnEmptyStringIfTypeUnknown() throws Exception { Assert.assertEquals("", DataManager.getInstance().getConfiguration().getDownloadFolder("xxx")); }
public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); default: return ""; } }
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
Configuration extends AbstractConfiguration { public String getDownloadFolder(String type) { switch (type.toLowerCase()) { case "pdf": return getLocalString("pdf.downloadFolder", "/opt/digiverso/viewer/pdf_download"); case "epub": return getLocalString("epub.downloadFolder", "/opt/digiverso/viewer/epub_download"); defa...
@Test public void isPreventProxyCaching_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(true, DataManager.getInstance().getConfiguration().isPreventProxyCaching()); }
public boolean isPreventProxyCaching() { return getLocalBoolean(("performance.preventProxyCaching"), false); }
Configuration extends AbstractConfiguration { public boolean isPreventProxyCaching() { return getLocalBoolean(("performance.preventProxyCaching"), false); } }
Configuration extends AbstractConfiguration { public boolean isPreventProxyCaching() { return getLocalBoolean(("performance.preventProxyCaching"), false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isPreventProxyCaching() { return getLocalBoolean(("performance.preventProxyCaching"), false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); i...
Configuration extends AbstractConfiguration { public boolean isPreventProxyCaching() { return getLocalBoolean(("performance.preventProxyCaching"), false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); i...
@Test public void isSolrCompressionEnabled_shouldReturnCorrectValue() throws Exception { Assert.assertFalse(DataManager.getInstance().getConfiguration().isSolrCompressionEnabled()); }
public boolean isSolrCompressionEnabled() { return getLocalBoolean(("performance.solr.compressionEnabled"), true); }
Configuration extends AbstractConfiguration { public boolean isSolrCompressionEnabled() { return getLocalBoolean(("performance.solr.compressionEnabled"), true); } }
Configuration extends AbstractConfiguration { public boolean isSolrCompressionEnabled() { return getLocalBoolean(("performance.solr.compressionEnabled"), true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isSolrCompressionEnabled() { return getLocalBoolean(("performance.solr.compressionEnabled"), true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFil...
Configuration extends AbstractConfiguration { public boolean isSolrCompressionEnabled() { return getLocalBoolean(("performance.solr.compressionEnabled"), true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFil...
@Test public void isSolrBackwardsCompatible_shouldReturnCorrectValue() throws Exception { Assert.assertTrue(DataManager.getInstance().getConfiguration().isSolrBackwardsCompatible()); }
public boolean isSolrBackwardsCompatible() { return getLocalBoolean(("performance.solr.backwardsCompatible"), false); }
Configuration extends AbstractConfiguration { public boolean isSolrBackwardsCompatible() { return getLocalBoolean(("performance.solr.backwardsCompatible"), false); } }
Configuration extends AbstractConfiguration { public boolean isSolrBackwardsCompatible() { return getLocalBoolean(("performance.solr.backwardsCompatible"), false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isSolrBackwardsCompatible() { return getLocalBoolean(("performance.solr.backwardsCompatible"), false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundle...
Configuration extends AbstractConfiguration { public boolean isSolrBackwardsCompatible() { return getLocalBoolean(("performance.solr.backwardsCompatible"), false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundle...
@Test public void isShowSidebarEventMetadata_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isShowSidebarEventMetadata()); }
public boolean isShowSidebarEventMetadata() { return getLocalBoolean("sidebar.metadata.showEventMetadata", true); }
Configuration extends AbstractConfiguration { public boolean isShowSidebarEventMetadata() { return getLocalBoolean("sidebar.metadata.showEventMetadata", true); } }
Configuration extends AbstractConfiguration { public boolean isShowSidebarEventMetadata() { return getLocalBoolean("sidebar.metadata.showEventMetadata", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isShowSidebarEventMetadata() { return getLocalBoolean("sidebar.metadata.showEventMetadata", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile...
Configuration extends AbstractConfiguration { public boolean isShowSidebarEventMetadata() { return getLocalBoolean("sidebar.metadata.showEventMetadata", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile...
@Test public void isShowRecordLabelIfNoOtherViews_shouldReturnCorrectValue() throws Exception { Assert.assertTrue(DataManager.getInstance().getConfiguration().isShowRecordLabelIfNoOtherViews()); }
public boolean isShowRecordLabelIfNoOtherViews() { return getLocalBoolean("sidebar.metadata.showRecordLabelIfNoOtherViews", false); }
Configuration extends AbstractConfiguration { public boolean isShowRecordLabelIfNoOtherViews() { return getLocalBoolean("sidebar.metadata.showRecordLabelIfNoOtherViews", false); } }
Configuration extends AbstractConfiguration { public boolean isShowRecordLabelIfNoOtherViews() { return getLocalBoolean("sidebar.metadata.showRecordLabelIfNoOtherViews", false); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isShowRecordLabelIfNoOtherViews() { return getLocalBoolean("sidebar.metadata.showRecordLabelIfNoOtherViews", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalR...
Configuration extends AbstractConfiguration { public boolean isShowRecordLabelIfNoOtherViews() { return getLocalBoolean("sidebar.metadata.showRecordLabelIfNoOtherViews", false); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalR...
@Test public void isSidebarFulltextLinkVisible_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isSidebarFulltextLinkVisible()); }
public boolean isSidebarFulltextLinkVisible() { return getLocalBoolean("sidebar.fulltext.visible", true); }
Configuration extends AbstractConfiguration { public boolean isSidebarFulltextLinkVisible() { return getLocalBoolean("sidebar.fulltext.visible", true); } }
Configuration extends AbstractConfiguration { public boolean isSidebarFulltextLinkVisible() { return getLocalBoolean("sidebar.fulltext.visible", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isSidebarFulltextLinkVisible() { return getLocalBoolean("sidebar.fulltext.visible", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ...
Configuration extends AbstractConfiguration { public boolean isSidebarFulltextLinkVisible() { return getLocalBoolean("sidebar.fulltext.visible", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int ...
@Test public void isSidebarMetadataLinkVisible_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isSidebarMetadataViewLinkVisible()); }
public boolean isSidebarMetadataViewLinkVisible() { return getLocalBoolean("sidebar.metadata.visible", true); }
Configuration extends AbstractConfiguration { public boolean isSidebarMetadataViewLinkVisible() { return getLocalBoolean("sidebar.metadata.visible", true); } }
Configuration extends AbstractConfiguration { public boolean isSidebarMetadataViewLinkVisible() { return getLocalBoolean("sidebar.metadata.visible", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isSidebarMetadataViewLinkVisible() { return getLocalBoolean("sidebar.metadata.visible", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); ...
Configuration extends AbstractConfiguration { public boolean isSidebarMetadataViewLinkVisible() { return getLocalBoolean("sidebar.metadata.visible", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); ...
@Test public void isSidebarPageLinkVisible_shouldReturnCorrectValue() throws Exception { Assert.assertEquals(false, DataManager.getInstance().getConfiguration().isSidebarPageViewLinkVisible()); }
public boolean isSidebarPageViewLinkVisible() { return getLocalBoolean("sidebar.page.visible", true); }
Configuration extends AbstractConfiguration { public boolean isSidebarPageViewLinkVisible() { return getLocalBoolean("sidebar.page.visible", true); } }
Configuration extends AbstractConfiguration { public boolean isSidebarPageViewLinkVisible() { return getLocalBoolean("sidebar.page.visible", true); } Configuration(String configFilePath); }
Configuration extends AbstractConfiguration { public boolean isSidebarPageViewLinkVisible() { return getLocalBoolean("sidebar.page.visible", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getV...
Configuration extends AbstractConfiguration { public boolean isSidebarPageViewLinkVisible() { return getLocalBoolean("sidebar.page.visible", true); } Configuration(String configFilePath); Set<String> getStopwords(); boolean reloadingRequired(); String getConfigLocalPath(); String getLocalRessourceBundleFile(); int getV...