public class DataSecurityCheck extends AbstractSecurityCheck
DataPermission
. For example
new DataSecurityCheck("something");
permission ${DataPermission} "something", "render";
Constructor and Description |
---|
DataSecurityCheck(String securityId)
Creates a check that will verify if the current user has a DataPermission with the specified
name.
|
Modifier and Type | Method and Description |
---|---|
String |
getSecurityId()
The id / name from the
DataPermission . |
boolean |
isActionAuthorized(WaspAction action)
Checks if there are sufficient rights to perform the desired action(s).
|
boolean |
isAuthenticated()
Checks if there is an authenticated user available.
|
getActionFactory, getLoginPage, getStrategy, isActionAuthorized
public DataSecurityCheck(String securityId)
securityId
- the name of the DataPermission in your policy filepublic boolean isActionAuthorized(WaspAction action)
ISecurityCheck
action
- the action(s) like render or enable.ISecurityCheck.isActionAuthorized(org.wicketstuff.security.actions.WaspAction)
public boolean isAuthenticated()
ISecurityCheck
ISecurityCheck.isAuthenticated()
public final String getSecurityId()
DataPermission
.Copyright © 2015. All rights reserved.