|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.pageseeder.PSUsers
public final class PSUsers
A utility class for PageSeeder Users.
Method Summary | |
---|---|
static PSUser |
get(String property)
Returns the user from the property stored in the global settings. |
static PSSession |
getAnonymous()
|
static PSUser |
getUser(ContentRequest req)
Returns the PageSeeder user that is currently logged in. |
static boolean |
hasValidSession(PSUser user)
Indicates whether the session is still valid for the specified session. |
static boolean |
isValid(PSSession session)
Indicates whether the session is still valid for the specified session. |
static void |
setAnonymous(PSSession session)
Setting a reusable session for anonymous users. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PSUser getUser(ContentRequest req)
req
- the content request.
null
if it is not configured properly or could not login.public static PSUser get(String property) throws IOException
This class will log the user to PageSeeder to retrieve his info.
If the password is using some
property
- The property of the PageSeeder user.
null
if it is not configured properly or could not login.
IOException
- Should an error occur while attempting loginpublic static boolean hasValidSession(PSUser user)
user
- The PageSeeder session to check.
true
if the session is still valid;
false
otherwise.public static boolean isValid(PSSession session)
session
- The PageSeeder session to check.
true
if the session is still valid;
false
otherwise.public static PSSession getAnonymous()
public static void setAnonymous(PSSession session)
session
- a session to use for anonymous connections.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |