📄 knowngroup.java
字号:
package com.ecyrd.jspwiki.auth;import com.ecyrd.jspwiki.InternalWikiException;import java.security.Principal;/** * A special kind of WikiGroup. Anyone who has logged in * and has been authenticated is a part of this group. */public class KnownGroup extends AllGroup{ public KnownGroup() { setName( UserManager.GROUP_KNOWNPERSON ); } public boolean isMember( Principal user ) { if( user instanceof UserProfile ) { UserProfile p = (UserProfile) user; return p.isAuthenticated(); } throw new InternalWikiException("Someone offered us a Principal that is not an UserProfile!"); } public boolean equals( Object o ) { return o != null && o instanceof KnownGroup; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -