Package org.projectforge.web.registry

Examples of org.projectforge.web.registry.WebRegistryEntry


   * @return this for chaining.
   * @see WebRegistry#register(WebRegistryEntry, boolean, WebRegistryEntry)
   */
  protected AbstractPlugin registerWeb(final String id, final String existingEntryId, final boolean insertBefore)
  {
    final WebRegistryEntry existingEntry = WebRegistry.instance().getEntry(id);
    WebRegistry.instance().register(existingEntry, insertBefore, new WebRegistryEntry(id));
    return this;
  }
View Full Code Here


   */
  @SuppressWarnings("unchecked")
  protected AbstractPlugin registerWeb(final String id, final Class< ? extends WebPage> pageListClass,
      final Class< ? extends WebPage> pageEditClass, final String existingEntryId, final boolean insertBefore)
  {
    WebRegistryEntry entry;
    if (IListPageColumnsCreator.class.isAssignableFrom(pageListClass) == true) {
      entry = new WebRegistryEntry(id, (Class< ? extends IListPageColumnsCreator< ? >>) pageListClass);
    } else {
      entry = new WebRegistryEntry(id);
    }
    if (existingEntryId != null) {
      final WebRegistryEntry existingEntry = WebRegistry.instance().getEntry(existingEntryId);
      WebRegistry.instance().register(existingEntry, insertBefore, entry);
    } else {
      WebRegistry.instance().register(entry);
    }
    WebRegistry.instance().addMountPages(id, pageListClass, pageEditClass);
View Full Code Here

        if (SearchForm.isSearchable(registryEntry.getRegistryEntry()) == true) {
          addArea(registryEntry);
        }
      }
    } else {
      final WebRegistryEntry registryEntry = WebRegistry.instance().getEntry(form.filter.getArea());
      if (registryEntry == null) {
        log.error("Can't search in area '" + form.filter.getArea() + "'. No such area registered in WebRegistry! No results.");
      } else {
        addArea(registryEntry);
      }
View Full Code Here

TOP

Related Classes of org.projectforge.web.registry.WebRegistryEntry

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.