mocksecurityprofile.java

来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 45 行

JAVA
45
字号
package net.java.workeffort.service;import net.java.workeffort.infrastructure.security.ISecurityProfile;/** * <p> * Mock for SecurityProfile for testing. * </p> * @author Antony Joseph */public class MockSecurityProfile implements ISecurityProfile {    String partyCd = "mocktest";    /**     * @return Returns the partyCd.     */    public String getPartyCd() {        return partyCd;    }    /**     * @param partyCd The partyCd to set.     */    public void setPartyCd(String partyCd) {        this.partyCd = partyCd;    }    /**     * @return Returns the password.     */    public String getPassword() {        return "";    }    /**     * @param password The password to set.     */    public void setPassword(String password) {    }    public int getAccessDecision(String target, String operation) {        return ISecurityProfile.ALLOWED;       }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?