Package org.apache.wicket.security.checks

Examples of org.apache.wicket.security.checks.ContainerSecurityCheck


   *            the panel receiving the securitycheck
   * @return an {@link ISecurityCheck} or null if no check is required
   */
  protected ISecurityCheck getSecurityCheckForPanel(Panel panel)
  {
    return new ContainerSecurityCheck(panel);
  }
View Full Code Here


      public Panel getPanel(String panelId)
      {
        Gifkikker panel = new Gifkikker(panelId);
        // not an ISecureComponent but with an ISecurityCheck to check
        // for enough rights when rendering
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
        // @TODO what todo with the new isVisible method ?
        return true;
      }

      public IModel<String> getTitle()
      {
        return new Model<String>("Gifkikker");
      }
    });
    tabs.add(new ITab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Heineken panel = new Heineken(panelId);
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
        // @TODO what todo with the new isVisible method ?
        return true;
      }

      public IModel<String> getTitle()
      {
        return new Model<String>("Heineken");
      }
    });
    tabs.add(new ITab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Grolsch panel = new Grolsch(panelId);
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
View Full Code Here

      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Gifkikker panel = new Gifkikker(panelId);
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
        // @TODO what todo with the new isVisible method ?
        return true;
      }

      public IModel<String> getTitle()
      {
        return new Model<String>("Gifkikker");
      }

      public Class< ? extends Panel> getPanel()
      {
        return Gifkikker.class;
      }
    });
    tabs.add(new ISecureTab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Heineken panel = new Heineken(panelId);
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
        // @TODO what todo with the new isVisible method ?
        return true;
      }

      public IModel<String> getTitle()
      {
        return new Model<String>("Heineken");
      }

      public Class< ? extends Panel> getPanel()
      {
        return Heineken.class;
      }
    });
    tabs.add(new ISecureTab()
    {
      private static final long serialVersionUID = 1L;

      public Panel getPanel(String panelId)
      {
        Grolsch panel = new Grolsch(panelId);
        SecureComponentHelper.setSecurityCheck(panel, new ContainerSecurityCheck(panel));
        return panel;
      }

      public boolean isVisible()
      {
View Full Code Here

     * @param id
     */
    public SecureMarkupContainer(String id)
    {
      super(id);
      setSecurityCheck(new ContainerSecurityCheck(this));
    }
View Full Code Here

   * @param model
   */
  public L1Container(String id, IModel<?> model)
  {
    super(id, model);
    SecureComponentHelper.setSecurityCheck(this, new ContainerSecurityCheck(this));
    add(new SecureTextField<String>("txt1", new Model<String>("foo")));
    WebMarkupContainer lvl2 = new WebMarkupContainer("lvl2");
    add(lvl2);
    SecureComponentHelper.setSecurityCheck(lvl2, new ContainerSecurityCheck(lvl2));
    lvl2.add(new SecureTextField<String>("txt2", new Model<String>("bar")));
  }
View Full Code Here

   * @see Panel#Panel(String)
   */
  public SecurePanel(String id)
  {
    super(id);
    setSecurityCheck(new ContainerSecurityCheck(this));
  }
View Full Code Here

   * @see Panel#Panel(String, IModel)
   */
  public SecurePanel(String id, IModel<?> model)
  {
    super(id, model);
    setSecurityCheck(new ContainerSecurityCheck(this));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.security.checks.ContainerSecurityCheck

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.