Package org.projectforge.registry

Examples of org.projectforge.registry.RegistryEntry


    if (CollectionUtils.isEmpty(entryList) == true) {
      // Nothing to do.
      return;
    }
    for (final Entry entry : entryList) {
      final RegistryEntry registryEntry = Registry.instance().getEntryByDO(entry.clazz);
      if (registryEntry == null) {
        // Nothing to do
        return;
      }
      final List< ? > result = getDependents(hibernateTemplate, registryEntry, entry, obj);
View Full Code Here


    if (baseDao == null) {
      throw new IllegalArgumentException(
          id
          + ": Dao object is null. May-be the developer forgots to initialize it in pluginContext.xml or the setter method is not given in the main plugin class!");
    }
    final RegistryEntry entry = new RegistryEntry(id, daoClassType, baseDao, i18nPrefix);
    register(entry);
    return entry;
  }
View Full Code Here

  @Override
  protected void initialize()
  {
    // DatabaseUpdateDao is needed by the updater:
    TeamCalPluginUpdates.dao = getDatabaseUpdateDao();
    final RegistryEntry entry = new RegistryEntry(ID, TeamCalDao.class, teamCalDao, "plugins.teamcal");
    final RegistryEntry eventEntry = new RegistryEntry("teamEvent", TeamEventDao.class, teamEventDao, "plugins.teamcal.event");
    eventEntry.setNestedDOClasses(TeamEventAttendeeDO.class, TeamEventAttachmentDO.class);

    // The CalendarDao is automatically available by the scripting engine!
    register(entry);
    register(eventEntry);
View Full Code Here

  @Override
  protected void initialize()
  {
    // DatabaseUpdateDao is needed by the updater:
    PollPluginUpdates.dao = getDatabaseUpdateDao();
    final RegistryEntry entry = new RegistryEntry(ID, PollDao.class, pollDao, "plugins.poll");
    final RegistryEntry eventEntry = new RegistryEntry("pollEvent", PollEventDao.class, pollEventDao, "plugins.poll");
    final RegistryEntry attendeeEntry = new RegistryEntry("pollAttendee", PollAttendeeDao.class, pollAttendeeDao, "plugins.poll");
    final RegistryEntry resultEntry = new RegistryEntry("pollResult", PollResultDao.class, pollResultDao, "plugins.poll");

    // The CalendarDao is automatically available by the scripting engine!
    register(entry);
    register(eventEntry);
    register(attendeeEntry);
View Full Code Here

  @Override
  protected void initialize()
  {
    // DatabaseUpdateDao is needed by the updater:
    LicenseManagementPluginUpdates.dao = getDatabaseUpdateDao();
    final RegistryEntry entry = new RegistryEntry(ID, LicenseDao.class, licenseDao, "plugins.licensemanagement");
    // The LicenseDao is automatically available by the scripting engine!
    register(entry);

    // Register the web part:
    registerWeb(ID, LicenseListPage.class, LicenseEditPage.class);
View Full Code Here

  @Override
  protected void initialize()
  {
    // DatabaseUpdateDao is needed by the updater:
    ToDoPluginUpdates.dao = getDatabaseUpdateDao();
    final RegistryEntry entry = new RegistryEntry(ID, ToDoDao.class, toDoDao, "plugins.todo");
    // The ToDoDao is automatically available by the scripting engine!
    register(entry); // Insert at second position after Address entry (for SearchPage).

    // Register the web part:
    registerWeb(ID, ToDoListPage.class, ToDoEditPage.class, DaoRegistry.ADDRESS, false); // Insert at second position after Address entry (for SearchPage).
View Full Code Here

  @Override
  protected void initialize()
  {
    // DatabaseUpdateDao is needed by the updater:
    LiquidityPlanningPluginUpdates.dao = getDatabaseUpdateDao();
    final RegistryEntry entry = new RegistryEntry(ID, LiquidityEntryDao.class, liquidityEntryDao, "plugins.liquidityplanning");
    register(entry);

    // Register the web part:
    // Insert at first position before accounting-record entry (for SearchPage).
    registerWeb(ID, LiquidityEntryListPage.class, LiquidityEntryEditPage.class, DaoRegistry.ACCOUNTING_RECORD, true);
View Full Code Here

TOP

Related Classes of org.projectforge.registry.RegistryEntry

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.