webauthorizer.java
来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 24 行
JAVA
24 行
package net.java.workeffort.webapp.security;import net.java.workeffort.infrastructure.security.AuthorizationException;import net.java.workeffort.infrastructure.security.ISecurityProfile;/** * Authorization manager for the Web (urls) * @author Antony Joseph */public class WebAuthorizer implements IWebAuthorizer { /** * Checks whether user has authorization for the url path. */ public void authorize(ISecurityProfile securityProfile, String path) throws AuthorizationException { if (securityProfile.getAccessDecision(path, "ACCESS") == ISecurityProfile.DENIED) { throw new AuthorizationException("Authorization failed. partyCd=" + securityProfile.getPartyCd() + " target=" + path + " operation=ACCESS"); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?