Package org.projectforge.core

Examples of org.projectforge.core.Configuration


   * entries.
   */
  public void refresh()
  {
    final ConfigXml xmlConfiguration = ConfigXml.getInstance();
    final Configuration configuration = Configuration.getInstance();
    final boolean costConfigured = configuration.isCostConfigured();
    get(MenuItemDefId.CUSTOMER_LIST).setVisible(costConfigured);
    get(MenuItemDefId.PROJECT_LIST).setVisible(costConfigured);
    get(MenuItemDefId.EMPLOYEE_LIST).setVisible(costConfigured);
    get(MenuItemDefId.EMPLOYEE_SALARY_LIST).setVisible(costConfigured);
    get(MenuItemDefId.ACCOUNT_LIST).setVisible(costConfigured);
    get(MenuItemDefId.COST1_LIST).setVisible(costConfigured);
    get(MenuItemDefId.COST2_LIST).setVisible(costConfigured);
    get(MenuItemDefId.COST2_TYPE_LIST).setVisible(costConfigured);
    get(MenuItemDefId.ACCOUNTING_RECORD_LIST).setVisible(costConfigured);
    get(MenuItemDefId.REPORT_OBJECTIVES).setVisible(costConfigured);
    get(MenuItemDefId.DATEV_IMPORT).setVisible(costConfigured);

    get(MenuItemDefId.ADDRESS_LIST).setVisible(configuration.isAddressManagementConfigured());
    get(MenuItemDefId.BOOK_LIST).setVisible(configuration.isBookManagementConfigured());
    get(MenuItemDefId.MEB).setVisible(configuration.isMebConfigured());

    get(MenuItemDefId.PHONE_CALL).setVisible(StringUtils.isNotEmpty(xmlConfiguration.getTelephoneSystemUrl()));
    get(MenuItemDefId.CONTRACTS).setVisible(CollectionUtils.isNotEmpty(xmlConfiguration.getContractTypes()));
  }
View Full Code Here


      }
    } else {
      // Get a new HibernateTemplate each time
      ctx.getBeanFactory().autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
    }
    final Configuration cfg = ctx.getBean("configuration", Configuration.class);
    cfg.setBeanFactory(ctx.getBeanFactory()); // Bean factory need to be set.
  }
View Full Code Here

TOP

Related Classes of org.projectforge.core.Configuration

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.