📄 webauthorizer.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -