Class Guard

java.lang.Object
org.beangle.struts2.view.component.Component
org.beangle.struts2.view.component.UIBean
org.openurp.web.view.component.SecurityUIBean
org.openurp.web.view.component.Guard

public class Guard extends SecurityUIBean
对资源和内置区域进行守护
Author:
chaostone
  • Field Summary

    Fields inherited from class org.beangle.struts2.view.component.UIBean

    cssClass, id, theme

    Fields inherited from class org.beangle.struts2.view.component.Component

    COMPONENT_STACK, parameters, stack
  • Constructor Summary

    Constructors
    Constructor
    Description
    Guard(com.opensymphony.xwork2.util.ValueStack stack, org.beangle.security.authz.Authorizer authorizer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    end(Writer writer, String body)
     
    protected String
     
    void
     

    Methods inherited from class org.openurp.web.view.component.SecurityUIBean

    isAuthorize, start

    Methods inherited from class org.beangle.struts2.view.component.UIBean

    evaluateParams, generateIdIfEmpty, getContainer, getCssClass, getId, getParameterString, getRequest, getRequestParameter, getRequestURI, getText, getText, getTheme, getValue, mergeTemplate, processLabel, render, setCssClass, setId, setTheme

    Methods inherited from class org.beangle.struts2.view.component.Component

    addAllParameters, addParameter, altSyntax, altSyntax, completeExpressionIfAltSyntax, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, popComponentStack, stripExpressionIfAltSyntax, stripExpressionIfAltSyntax, toString, usesBody

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Guard

      public Guard(com.opensymphony.xwork2.util.ValueStack stack, org.beangle.security.authz.Authorizer authorizer)
  • Method Details

    • end

      public boolean end(Writer writer, String body)
      Overrides:
      end in class org.beangle.struts2.view.component.UIBean
    • getResource

      protected String getResource()
      Specified by:
      getResource in class SecurityUIBean
    • setRes

      public void setRes(String res)