Package com.gnizr.web.util

Examples of com.gnizr.web.util.GnizrConfiguration


  private RegisterUser action;
 
  protected void setUp() throws Exception {
    super.setUp();
   
    gnizrConfiguration = new GnizrConfiguration();
    gnizrConfiguration.setSiteContactEmail("admin@mysite.com");
    gnizrConfiguration.setWebApplicationUrl("http://foo.com/gnizr");
   
    FreeMarkerConfigurationFactory factory = new FreeMarkerConfigurationFactory();
    factory.setTemplateLoaderPath("/templates");
View Full Code Here


  private Map<Object, Object> session = new HashMap<Object, Object>();
 
  protected void setUp() throws Exception {
    super.setUp();
    userManager = new UserManager(getGnizrDao());
    GnizrConfiguration config = new GnizrConfiguration();
    config.setWebApplicationUrl("http://foo.com/gnizr");
   
    search = new Search(getGnizrDao());
   
    action = new SearchBookmark();   
    action.setSearch(search);
View Full Code Here

  private ExportNetscapeBookmarks action;
 
  protected void setUp() throws Exception {
    super.setUp();
   
    gnizrConfiguration = new GnizrConfiguration();
    gnizrConfiguration.setTempDirectoryPath("target");
   
    folderManager = new FolderManager(getGnizrDao());
    userManager = new UserManager(getGnizrDao());
   
View Full Code Here

  private GnizrConfiguration gnizrConfiguration;
 
  protected void setUp() throws Exception {
    super.setUp();
   
    gnizrConfiguration = new GnizrConfiguration();
    gnizrConfiguration.setSiteContactEmail("admin@mysite.com");
    gnizrConfiguration.setWebApplicationUrl("http://foo.com/gnizr");

    FreeMarkerConfigurationFactory factory = new FreeMarkerConfigurationFactory();
    factory.setTemplateLoaderPath("/templates");
View Full Code Here

    super.setUp();
   
    mailSender = new JavaMailSenderImpl();
    mailSender.setHost("localhost");
   
    gnizrConfiguration = new GnizrConfiguration();
    gnizrConfiguration.setSiteContactEmail("admin@mysite.com");
    gnizrConfiguration.setWebApplicationUrl("http://foo.com/gnizr");
   
    FreeMarkerConfigurationFactory factory = new FreeMarkerConfigurationFactory();
    factory.setTemplateLoaderPath("/templates");
View Full Code Here

    return SUCCESS;
  }

  private synchronized OpenSearchDirectory getOpenSearchDirectory() {
    if (openSearchDirectory == null) {     
      GnizrConfiguration c = getGnizrConfiguration();
      if (c == null) {
        logger.error("Missing GnizrConfiguration");
        throw new RuntimeException("Missing GnizrConfiguration");
      }
      if (c.getOpenSearchServices() == null
          || !(c.getOpenSearchServices() instanceof List)) {
        final String m = "OpenSearchServices variable is undefined in the GnizrConfiguraiton";
        logger.error(m);
        throw new RuntimeException(m);
      }
      openSearchDirectory = new OpenSearchDirectory(c
          .getOpenSearchServices());
      if (openSearchDirectory.getWebApplicationUrl() == null) {
        String prefixUrl = getGnizrConfiguration()
            .getWebApplicationUrl();
        openSearchDirectory.setWebApplicationUrl(prefixUrl);
View Full Code Here

TOP

Related Classes of com.gnizr.web.util.GnizrConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.