org.wicketstuff.security.swarm.strategies
Class SwarmStrategyFactory

java.lang.Object
  extended by org.wicketstuff.security.swarm.strategies.SwarmStrategyFactory
All Implemented Interfaces:
org.wicketstuff.security.strategies.StrategyFactory

public class SwarmStrategyFactory
extends Object
implements org.wicketstuff.security.strategies.StrategyFactory

A factory to return new SwarmStrategys.

Author:
marrink

Constructor Summary
SwarmStrategyFactory(Class<? extends org.wicketstuff.security.components.ISecureComponent> secureClass, Object hiveQueen)
          Constructs a new factory.
SwarmStrategyFactory(Object hiveQueen)
          Constructs a new factory.
 
Method Summary
 void destroy()
           
protected  Object getHiveKey()
          The key to the hive.
protected  Class<? extends org.wicketstuff.security.components.ISecureComponent> getSecureClass()
          All instance of this class will be required to have ComponentPermission with at least the access action.
 org.wicketstuff.security.strategies.WaspAuthorizationStrategy newStrategy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwarmStrategyFactory

public SwarmStrategyFactory(Object hiveQueen)
Constructs a new factory. All the strategies will require ISecurePages to have access rights.

Parameters:
hiveQueen - the key to get the Hive

SwarmStrategyFactory

public SwarmStrategyFactory(Class<? extends org.wicketstuff.security.components.ISecureComponent> secureClass,
                            Object hiveQueen)
Constructs a new factory.

Parameters:
secureClass - instances of this class will be required to have access rights.
hiveQueen - hiveQueen the key to get the Hive
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface org.wicketstuff.security.strategies.StrategyFactory
See Also:
StrategyFactory.destroy()

newStrategy

public org.wicketstuff.security.strategies.WaspAuthorizationStrategy newStrategy()
Specified by:
newStrategy in interface org.wicketstuff.security.strategies.StrategyFactory
See Also:
StrategyFactory.newStrategy()

getHiveKey

protected final Object getHiveKey()
The key to the hive.

Returns:
the key

getSecureClass

protected final Class<? extends org.wicketstuff.security.components.ISecureComponent> getSecureClass()
All instance of this class will be required to have ComponentPermission with at least the access action.

Returns:
the class required to have instantiation rights


Copyright © 2006–2018 Apache Software Foundation. All rights reserved.