public class BowSession extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
admin |
protected BowProxy |
proxy |
protected String |
temporaryToken |
protected BowUser |
user |
| Constructor and Description |
|---|
BowSession() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAppAdminGroup(BowUser user,
String... adminsLogin)
Verifie que le group AppAdminGroup exist et est a jour
|
protected void |
checkPreference(BowPreference preference) |
BowAuthentication |
getAuthentication()
Get default user authentication
|
BowAuthentication |
getAuthentication(String wikittyId)
get authentication for specified target (User or bookmark)
|
static BowSession |
getBowSession(javax.servlet.http.HttpServletRequest request) |
static BowSession |
getBowSession(javax.servlet.http.HttpSession httpSession) |
static BowSession |
getBowSession(Map<String,Object> session) |
String |
getPermanentToken() |
BowProxy |
getProxy() |
List<BowSearchPrefix> |
getSearchPrefix() |
String |
getTemporaryToken() |
BowUser |
getUser() |
static void |
invalidate(Map<String,Object> session) |
boolean |
isAdmin() |
void |
removeAndAddTag(List<String> toRemove,
List<String> toAdd)
Recherche les bookmarks de l'utilisateur courant (owner) contenant au
moins un des tags a supprimer (toRemove) et les supprimes et ajoute ceux
qui sont dans la liste toAdd.
|
void |
setAdmin(boolean admin) |
void |
setTemporaryToken(String temporaryToken) |
void |
setUser(BowUser user) |
protected BowProxy proxy
protected BowUser user
protected String temporaryToken
protected boolean admin
public static BowSession getBowSession(javax.servlet.http.HttpServletRequest request)
public static BowSession getBowSession(javax.servlet.http.HttpSession httpSession)
public static BowSession getBowSession(Map<String,Object> session)
public BowProxy getProxy()
public BowUser getUser()
public void removeAndAddTag(List<String> toRemove, List<String> toAdd)
toRemove - les des tags servant pour la recherche et qui seront supprimestoAdd - les tags qui seront ajoutepublic BowAuthentication getAuthentication()
public BowAuthentication getAuthentication(String wikittyId)
wikittyId - public List<BowSearchPrefix> getSearchPrefix()
public void setUser(BowUser user)
protected void checkAppAdminGroup(BowUser user, String... adminsLogin)
user - adminsLogin - other admin identified by loginprotected void checkPreference(BowPreference preference)
public String getPermanentToken()
public String getTemporaryToken()
public void setTemporaryToken(String temporaryToken)
public boolean isAdmin()
public void setAdmin(boolean admin)
Copyright © 2010–2015 CodeLutin. All rights reserved.