Class GoTo
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.util.servlet.GoTo
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
GoToAgenda
,GoToComponent
,GoToContribution
,GoToDocument
,GoToFile
,GoToMyProfile
,GoToPublication
,GoToSpace
,GoToTopic
public abstract class GoTo extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoTo.Context
-
Field Summary
Fields Modifier and Type Field Description protected SilverpeasWebUtil
util
-
Constructor Summary
Constructors Constructor Description GoTo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
void
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
protected String
getContentLanguage(javax.servlet.http.HttpServletRequest request)
Gets the content language specified into the request.abstract String
getDestination(String objectId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
String
getDestination(String objectId, GoTo.Context context)
String
getObjectId(javax.servlet.http.HttpServletRequest request)
String
getUserId(javax.servlet.http.HttpServletRequest req)
protected boolean
isUserAllowed(javax.servlet.http.HttpServletRequest req, String componentId)
protected boolean
isUserLogin(javax.servlet.http.HttpServletRequest req)
protected String
sendJson(String jsonContent)
protected void
setGefSpaceId(javax.servlet.http.HttpServletRequest req, String componentId)
Set GEF and look helper space identifier-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
util
@Inject protected SilverpeasWebUtil util
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
-
getDestination
public String getDestination(String objectId, GoTo.Context context) throws Exception
- Throws:
Exception
-
getDestination
public abstract String getDestination(String objectId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws Exception
- Throws:
Exception
-
getObjectId
public String getObjectId(javax.servlet.http.HttpServletRequest request)
-
isUserLogin
protected boolean isUserLogin(javax.servlet.http.HttpServletRequest req)
-
isUserAllowed
protected boolean isUserAllowed(javax.servlet.http.HttpServletRequest req, String componentId)
-
getUserId
public String getUserId(javax.servlet.http.HttpServletRequest req)
-
setGefSpaceId
protected void setGefSpaceId(javax.servlet.http.HttpServletRequest req, String componentId)
Set GEF and look helper space identifier- Parameters:
req
- current HttpServletRequestcomponentId
- the component identifier
-
getContentLanguage
protected String getContentLanguage(javax.servlet.http.HttpServletRequest request)
Gets the content language specified into the request.
-
-