Package org.wicketstuff.security.hive.authorization.permissions

Examples of org.wicketstuff.security.hive.authorization.permissions.DataPermission


  /**
   * @see org.wicketstuff.security.checks.ISecurityCheck#isActionAuthorized(org.wicketstuff.security.actions.WaspAction)
   */
  public boolean isActionAuthorized(WaspAction action)
  {
    DataPermission permission = new DataPermission(getSecurityId(), action);
    return ((AbstractSwarmStrategy)getStrategy()).hasPermission(permission);
  }
View Full Code Here


   *      Component, WaspAction)
   */
  @Override
  public boolean isModelAuthorized(ISecureModel<?> model, Component component, WaspAction action)
  {
    DataPermission permission;
    if (model instanceof SwarmModel<?>)
      permission = new DataPermission(component, (SwarmModel<?>)model, (SwarmAction)action);
    else
      permission = new DataPermission(String.valueOf(model), action);
    if (hasPermission(permission))
      return true;
    IAuthorizationMessageSource message = getMessageSource();
    if (message != null)
    {
View Full Code Here

TOP

Related Classes of org.wicketstuff.security.hive.authorization.permissions.DataPermission

Copyright © 2018 www.massapicom. 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.