Examples of ISecurityCheck


Examples of org.apache.wicket.security.checks.ISecurityCheck

   */
  public static boolean isActionAuthorized(Component component, String action)
  {
    if (action == null)
      return true;
    ISecurityCheck check = saveGetSecurityCheck(component);
    if (check != null)
      return check.isActionAuthorized(getActionFactory().getAction(action));
    if (hasSecureModel(component))
      return ((ISecureModel<?>)component.getDefaultModel()).isAuthorized(component,
          getActionFactory().getAction(action));
    return true;
  }
View Full Code Here

Examples of org.apache.wicket.security.checks.ISecurityCheck

   */
  public static boolean isActionAuthorized(Component component, WaspAction action)
  {
    if (action == null)
      return true;
    ISecurityCheck check = saveGetSecurityCheck(component);
    if (check != null)
      return check.isActionAuthorized(action);
    if (hasSecureModel(component))
      return ((ISecureModel<?>)component.getDefaultModel()).isAuthorized(component, action);
    return true;
  }
View Full Code Here

Examples of org.apache.wicket.security.checks.ISecurityCheck

   * @see ISecurityCheck
   * @see ISecureModel
   */
  public static boolean isAuthenticated(Component component)
  {
    ISecurityCheck check = saveGetSecurityCheck(component);
    if (check != null)
      return check.isAuthenticated();
    if (hasSecureModel(component))
      return ((ISecureModel<?>)component.getDefaultModel()).isAuthenticated(component);
    return getStrategy().isUserAuthenticated();
  }
View Full Code Here

Examples of org.apache.wicket.security.checks.ISecurityCheck

   */
  public boolean isActionAuthorized(Component component, Action action)
  {
    if (component != null)
    {
      ISecurityCheck check = getSecurityCheck(component);
      if (check != null)
      {
        if (check.isActionAuthorized(getActionFactory().getAction(action)))
          return true;
        IAuthorizationMessageSource message = getMessageSource();
        if (message != null)
        {
          message.setComponent(component);
View Full Code Here

Examples of org.wicketstuff.security.checks.ISecurityCheck

   */
  public boolean isActionAuthorized(Component component, Action action)
  {
    if (component != null)
    {
      ISecurityCheck check = getSecurityCheck(component);
      if (check != null)
      {
        if (check.isActionAuthorized(getActionFactory().getAction(action)))
          return true;
        IAuthorizationMessageSource message = getMessageSource();
        if (message != null)
        {
          message.setComponent(component);
View Full Code Here

Examples of org.wicketstuff.security.checks.ISecurityCheck

   */
  public static boolean isActionAuthorized(Component component, String action)
  {
    if (action == null)
      return true;
    ISecurityCheck check = saveGetSecurityCheck(component);
    if (check != null)
      return check.isActionAuthorized(getActionFactory().getAction(action));
    if (hasSecureModel(component))
      return ((ISecureModel<?>)component.getDefaultModel()).isAuthorized(component,
        getActionFactory().getAction(action));
    return true;
  }
View Full Code Here

Examples of org.wicketstuff.security.checks.ISecurityCheck

   */
  public static boolean isActionAuthorized(Component component, WaspAction action)
  {
    if (action == null)
      return true;
    ISecurityCheck check = saveGetSecurityCheck(component);
    if (check != null)
      return check.isActionAuthorized(action);
    if (hasSecureModel(component))
      return ((ISecureModel<?>)component.getDefaultModel()).isAuthorized(component, action);
    return true;
  }
View Full Code Here

Examples of org.wicketstuff.security.checks.ISecurityCheck

   * @see ISecurityCheck
   * @see ISecureModel
   */
  public static boolean isAuthenticated(Component component)
  {
    ISecurityCheck check = saveGetSecurityCheck(component);
    if (check != null)
      return check.isAuthenticated();
    if (hasSecureModel(component))
      return ((ISecureModel<?>)component.getDefaultModel()).isAuthenticated(component);
    return getStrategy().isUserAuthenticated();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.