Examples of SwarmPolicyFileHiveFactory


Examples of org.apache.wicket.security.hive.config.SwarmPolicyFileHiveFactory

    }

    @Override
    protected void setUpHive()
    {
      PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
      try
      {
        factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
        factory.setAlias("SimplePrincipal",
          "org.apache.wicket.security.hive.authorization.SimplePrincipal");
        factory.setAlias("myPackage", "org.apache.wicket.security.pages");
      }
      catch (MalformedURLException e)
      {
        log.error(e.getMessage(), e);
      }
View Full Code Here

Examples of org.apache.wicket.security.hive.config.SwarmPolicyFileHiveFactory

    }

    @Override
    protected void setUpHive()
    {
      PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
      try
      {
        factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
        factory.setAlias("SimplePrincipal",
          "org.apache.wicket.security.hive.authorization.SimplePrincipal");
        factory.setAlias("myPackage", "org.apache.wicket.security.pages");
      }
      catch (MalformedURLException e)
      {
        log.error(e.getMessage(), e);
      }
View Full Code Here

Examples of org.apache.wicket.security.hive.config.SwarmPolicyFileHiveFactory

    /**
     * Set up for the hive.
     */
    protected void setUpHive()
    {
      PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
      try
      {
        factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
        factory.setAlias("SimplePrincipal",
          "org.apache.wicket.security.hive.authorization.SimplePrincipal");
        factory.setAlias("myPackage", "org.apache.wicket.security.pages");
      }
      catch (MalformedURLException e)
      {
        log.error(e.getMessage(), e);
      }
View Full Code Here

Examples of org.apache.wicket.security.hive.config.SwarmPolicyFileHiveFactory

      }

      @Override
      protected void setUpHive()
      {
        PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
        try
        {
          factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
          factory.setAlias("SimplePrincipal",
            "org.apache.wicket.security.hive.authorization.SimplePrincipal");
          factory.setAlias("myPackage", "org.apache.wicket.security.pages");
        }
        catch (MalformedURLException e)
        {
          log.error(e.getMessage(), e);
        }
View Full Code Here

Examples of org.apache.wicket.security.hive.config.SwarmPolicyFileHiveFactory

   * @see org.apache.wicket.security.swarm.SwarmWebApplication#setUpHive()
   */
  protected void setUpHive()
  {
    // create factory to read policy files
    PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
    try
    {
      // this quickstart uses 1 policy file but you can add as many as you like
      factory.addPolicyFile(getServletContext().getResource("/WEB-INF/application.hive"));
      // to avoid having to type the full packagename we declare an alias
      factory.setAlias("web", "${packageName}.web");
      //alias for the principals
      factory.setAlias("principal","org.apache.wicket.security.hive.authorization.SimplePrincipal");
    }
    catch (MalformedURLException e)
    {
      throw new WicketRuntimeException(e);
    }
View Full Code Here

Examples of org.wicketstuff.security.hive.config.SwarmPolicyFileHiveFactory

      }

      @Override
      protected void setUpHive()
      {
        PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
        try
        {
          factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
          factory.setAlias("SimplePrincipal",
            "org.wicketstuff.security.hive.authorization.SimplePrincipal");
          factory.setAlias("myPackage", "org.wicketstuff.security.pages");
        }
        catch (MalformedURLException e)
        {
          log.error(e.getMessage(), e);
        }
View Full Code Here

Examples of org.wicketstuff.security.hive.config.SwarmPolicyFileHiveFactory

    }

    @Override
    protected void setUpHive()
    {
      PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
      try
      {
        factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
        factory.setAlias("SimplePrincipal",
          "org.wicketstuff.security.hive.authorization.SimplePrincipal");
        factory.setAlias("myPackage", "org.wicketstuff.security.pages");
      }
      catch (MalformedURLException e)
      {
        log.error(e.getMessage(), e);
      }
View Full Code Here

Examples of org.wicketstuff.security.hive.config.SwarmPolicyFileHiveFactory

    }

    @Override
    protected void setUpHive()
    {
      PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
      try
      {
        factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
        factory.setAlias("SimplePrincipal",
          "org.wicketstuff.security.hive.authorization.SimplePrincipal");
        factory.setAlias("myPackage", "org.wicketstuff.security.pages");
      }
      catch (MalformedURLException e)
      {
        log.error(e.getMessage(), e);
      }
View Full Code Here

Examples of org.wicketstuff.security.hive.config.SwarmPolicyFileHiveFactory

      return "test";
    }

    protected void setUpHive()
    {
      PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
      try
      {
        factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
        factory.setAlias("SimplePrincipal",
          "org.wicketstuff.security.hive.authorization.SimplePrincipal");
        factory.setAlias("myPackage", "org.wicketstuff.security.pages");
      }
      catch (MalformedURLException e)
      {
        log.error(e.getMessage(), e);
      }
View Full Code Here

Examples of org.wicketstuff.security.hive.config.SwarmPolicyFileHiveFactory

      }

      @Override
      protected void setUpHive()
      {
        PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
        try
        {
          factory.addPolicyFile(getServletContext().getResource("WEB-INF/policy.hive"));
          factory.setAlias("SimplePrincipal",
            "org.wicketstuff.security.hive.authorization.SimplePrincipal");
          factory.setAlias("myPackage", "org.wicketstuff.security.pages");
        }
        catch (MalformedURLException e)
        {
          log.error(e.getMessage(), e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.