| java.lang.Object org.tigris.scarab.util.AnonymousUserUtil
AnonymousUserUtil | public class AnonymousUserUtil (Code) | | author: hdab author: To change the template for this generated type comment go to author: Window - Preferences - Java - Code Generation - Code and Comments |
Method Summary | |
public static boolean | anonymousAccessAllowed() Returns true, when anonymous user access is explicitly allowed,. | public static void | anonymousLogin(RunData data) | public static String | getAnonymousRolename() Returns the name of the anonymous rolename
Note: This method returns the anonymous userid
independent from wether anonymous access is allowed or not. | public static User | getAnonymousUser() Return an instanceof the Anonymous User. | public static String | getAnonymousUserId() Returns the userid of the anonymous user
Note: This method returns the anonymous userid
independent from wether anonymous access is allowed or not. | public static boolean | isUserAnonymous(ScarabUser user) Returns true if the user is the one set in scarab.anonymous.username, and
false otherwise. | public static void | userLogin(RunData data, User user) Login a given user into the session updating the rundata. |
anonymousAccessAllowed | public static boolean anonymousAccessAllowed()(Code) | | Returns true, when anonymous user access is explicitly allowed,.
Otherwise returns false.
|
anonymousLogin | public static void anonymousLogin(RunData data)(Code) | | Login the Anonymous user and prepare the run data
Parameters: data - |
getAnonymousRolename | public static String getAnonymousRolename()(Code) | | Returns the name of the anonymous rolename
Note: This method returns the anonymous userid
independent from wether anonymous access is allowed or not.
|
getAnonymousUser | public static User getAnonymousUser() throws DataBackendException, UnknownEntityException(Code) | | Return an instanceof the Anonymous User.
If Anonymous user has been switched off, this method
returns a Turbine-anonymous user.
throws: DataBackendException - throws: UnknownEntityException - |
getAnonymousUserId | public static String getAnonymousUserId()(Code) | | Returns the userid of the anonymous user
Note: This method returns the anonymous userid
independent from wether anonymous access is allowed or not.
|
isUserAnonymous | public static boolean isUserAnonymous(ScarabUser user)(Code) | | Returns true if the user is the one set in scarab.anonymous.username, and
false otherwise.
Note: If anonymous access is denied per configuration, this method
always returns false!
|
userLogin | public static void userLogin(RunData data, User user)(Code) | | Login a given user into the session updating the rundata.
Parameters: data - Parameters: user - |
|
|