blob: 99cd2ddbe1e3c57365a4b8b672a6d092a64c5f3c [file] [log] [blame]
/*
* Copyright (c) 2013-2014, JoshuaTree Software. All rights reserved.
*/
package us.jts.commander;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
import us.jts.fortress.rbac.Permission;
/**
* ...
*
* @author Shawn McKinney
* @version $Rev$
*/
public class SecureIndicatingAjaxLink extends IndicatingAjaxLink
{
public SecureIndicatingAjaxLink( String id, String objectName, String opName )
{
super( id );
if(!GlobalUtils.isFound( new Permission(objectName, opName), this ))
setEnabled( false );
}
@Override
public void onClick( AjaxRequestTarget target )
{
//To change body of implemented methods use File | Settings | File Templates.
}
}