org.wicketstuff.security.swarm.checks
Class DataSecurityCheck

java.lang.Object
  extended by org.wicketstuff.security.checks.AbstractSecurityCheck
      extended by org.wicketstuff.security.swarm.checks.DataSecurityCheck
All Implemented Interfaces:
Serializable, org.wicketstuff.security.checks.ISecurityCheck

public class DataSecurityCheck
extends org.wicketstuff.security.checks.AbstractSecurityCheck

SecurityCheck that uses a DataPermission. For example
new DataSecurityCheck("something");
requires the following permission in your policy file:
permission ${DataPermission} "something", "render";
if you want the component(s) having that securitycheck to be visible.

Author:
marrink
See Also:
Serialized Form

Constructor Summary
DataSecurityCheck(String securityId)
          Creates a check that will verify if the current user has a DataPermission with the specified name.
 
Method Summary
 String getSecurityId()
          The id / name from the DataPermission.
 boolean isActionAuthorized(org.wicketstuff.security.actions.WaspAction action)
           
 boolean isAuthenticated()
           
 
Methods inherited from class org.wicketstuff.security.checks.AbstractSecurityCheck
getActionFactory, getLoginPage, getStrategy, isActionAuthorized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSecurityCheck

public DataSecurityCheck(String securityId)
Creates a check that will verify if the current user has a DataPermission with the specified name.

Parameters:
securityId - the name of the DataPermission in your policy file
Method Detail

isActionAuthorized

public boolean isActionAuthorized(org.wicketstuff.security.actions.WaspAction action)
See Also:
ISecurityCheck.isActionAuthorized(org.wicketstuff.security.actions.WaspAction)

isAuthenticated

public boolean isAuthenticated()
See Also:
ISecurityCheck.isAuthenticated()

getSecurityId

public final String getSecurityId()
The id / name from the DataPermission.

Returns:
securityId


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