| |
|
| com.mvnforum.auth.OnlineUser
All known Subclasses: com.mvnforum.auth.OnlineUserImpl,
OnlineUser | public interface OnlineUser (Code) | | |
AUTHENTICATION_TYPE_COOKIE | final public static int AUTHENTICATION_TYPE_COOKIE(Code) | | |
AUTHENTICATION_TYPE_CUSTOMIZATION | final public static int AUTHENTICATION_TYPE_CUSTOMIZATION(Code) | | |
AUTHENTICATION_TYPE_HTML_FORM | final public static int AUTHENTICATION_TYPE_HTML_FORM(Code) | | |
AUTHENTICATION_TYPE_REALM | final public static int AUTHENTICATION_TYPE_REALM(Code) | | |
AUTHENTICATION_TYPE_SESSION | final public static int AUTHENTICATION_TYPE_SESSION(Code) | | |
AUTHENTICATION_TYPE_UNAUTHENTICATED | final public static int AUTHENTICATION_TYPE_UNAUTHENTICATED(Code) | | Constants
|
buildNewCaptcha | public void buildNewCaptcha()(Code) | | Build a new captcha, this method must be called before using some
action that need captcha validation.
|
destroyCurrentCaptcha | public void destroyCurrentCaptcha()(Code) | | Destroy the current captcha, this method must be called after validate
the captcha
|
ensureCorrectCaptchaResponse | public void ensureCorrectCaptchaResponse(String answer) throws BadInputException(Code) | | Check to make sure that the captcha answer is correct
Parameters: answer - String the captcha answer to check throws: BadInputException - in case the captcha answer is not correct |
getAuthenticationType | public int getAuthenticationType()(Code) | | Get the authentication type that user did used to login
int the authentication type |
getCssPath | public String getCssPath()(Code) | | Get the full ABSOLUTE path of the css file
String the full ABSOLUTE path of the css file |
getCssPath | public String getCssPath(HttpServletRequest request)(Code) | | Get the full ABSOLUTE path of the css file
String the full ABSOLUTE path of the css file,this method can customize the path based on parameter in request |
getCurrentCaptchaImage | public BufferedImage getCurrentCaptchaImage()(Code) | | Get the captcha image to challenge the user
BufferedImage the captcha image to challenge the user |
getGMTTimestampFormat | public String getGMTTimestampFormat(Timestamp gmtTimestamp, boolean adjustTimeZone)(Code) | | |
getLastLogonIP | public String getLastLogonIP()(Code) | | Get the IP of the last time this user login
String |
getLastLogonTimestamp | public Timestamp getLastLogonTimestamp()(Code) | | Get the timestampt of the last time this user login
Timestamp |
getLocale | public Locale getLocale()(Code) | | Get the current locale of this user
Locale the current locale of this user |
getLocaleName | public String getLocaleName()(Code) | | Get the current locale name of this user
String the current locale name of this user |
getLogoPath | public String getLogoPath()(Code) | | Get the full ABSOLUTE path of the logo file
String the full ABSOLUTE path of the logo file |
getMemberID | public int getMemberID()(Code) | | Get the numeric member id of this user
int the numeric member id of this user |
getMemberName | public String getMemberName()(Code) | | Get the memberName that is used to login
String the memberName that is used to login |
getMessagesPerPage | public int getMessagesPerPage()(Code) | | Get the number of private messages that shown in one page for this user
int the number of items that shown in one page |
getNewMessageCount | public int getNewMessageCount()(Code) | | Get the number of new private messages of this user.
int the number of new private messages of this user |
getOnlineUserAction | public OnlineUserAction getOnlineUserAction()(Code) | | Get the current action of this user in the system
OnlineUserAction |
getParticipants | public Set getParticipants()(Code) | | |
getPermission | public MVNForumPermission getPermission()(Code) | | Get the permission that this user currently has
MVNForumPermission |
getPostsPerPage | public int getPostsPerPage()(Code) | | Get the number of items that shown in one page for this user
int the number of items that shown in one page |
getTimeZone | public double getTimeZone()(Code) | | Get the current timezone of this user
current timezone of this user |
getWaitingList | public Set getWaitingList()(Code) | | |
isGuest | public boolean isGuest()(Code) | | Check if this user is guest (not login yet) or already authenticated
boolean true if this user is guest (not login yet) |
isInvisibleMember | public boolean isInvisibleMember()(Code) | | Check if this user prefer the invisible mode
boolean true if this user prefer the invisible mode |
isMember | public boolean isMember()(Code) | | Check if this user is already authenticated
boolean true if this user is already authenticated |
isPasswordExpired | public boolean isPasswordExpired()(Code) | | Check if this member's password is expired. For single sign on, this method should always return false
boolean true if password is expired |
reloadPermission | public void reloadPermission()(Code) | | Reload the permission from the underlying database
|
reloadProfile | public void reloadProfile()(Code) | | Reload the user's profile from the underlying database
|
removeParticipant | public void removeParticipant(Object conn)(Code) | | |
setLocaleName | public void setLocaleName(String localeName)(Code) | | Set the locale name for the current online user
Parameters: localeName - String |
setParticipants | public void setParticipants(Object conn)(Code) | | |
setXMPPConnection | public void setXMPPConnection(Object conn)(Code) | | |
updateNewMessageCount | public boolean updateNewMessageCount(boolean force)(Code) | | Update the new message count value. The implementation
should provide an effectively method if parameter force is false
since this method is called many time.
In case force is true, update it immediately
boolean values. It's true if the new message countgreater than the current message count |
validateCaptchaResponse | public boolean validateCaptchaResponse(String anwser)(Code) | | Validate the anwser of the captcha from user
Parameters: anwser - String the captcha anwser from user boolean true if the answer is valid, otherwise return false |
|
|
|