com.day.cq.wcm.notification.inbox.impl
Class InboxServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.day.cq.commons.servlets.AbstractPredicateServlet
com.day.cq.commons.servlets.AbstractCommandServlet
com.day.cq.wcm.notification.impl.AbstractServlet
com.day.cq.wcm.notification.inbox.impl.InboxServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class InboxServlet
- extends AbstractServlet
TableCommand
This command returns the table for the inbox.
TODO - Evaluate filter request properties!
- See Also:
- Serialized Form
| Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet |
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService |
| Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet |
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userManagerFactory
protected UserManagerFactory userManagerFactory
- The security service.
inboxManager
protected InboxManager inboxManager
- The inbox manager
InboxServlet
public InboxServlet()
getInboxEntries
protected MessageIterator getInboxEntries(AbstractServlet.RequestInfo info,
String key)
- Return all inbox entries for the user.
- Parameters:
key -
- Returns:
approveInboxEntry
protected void approveInboxEntry(AbstractServlet.RequestInfo info,
String key)
throws IOException
- Approve a message
- Throws:
IOException
deleteInboxEntry
protected void deleteInboxEntry(AbstractServlet.RequestInfo info,
String key)
- Delete a message
hasCommand
protected boolean hasCommand(org.apache.sling.api.SlingHttpServletRequest request)
throws javax.servlet.ServletException
- Description copied from class:
AbstractCommandServlet
- Checks if the command in the request is supported.
Returns
false by default.
- Overrides:
hasCommand in class AbstractCommandServlet
- Parameters:
request - servlet request
- Returns:
true if the command is supported.
- Throws:
javax.servlet.ServletException - if a servlet error occurs- See Also:
AbstractCommandServlet.hasCommand(org.apache.sling.api.SlingHttpServletRequest)
performCommand
protected void performCommand(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Description copied from class:
AbstractCommandServlet
- Perform the command of the current request.
This method is invoked if
AbstractCommandServlet.hasCommand(SlingHttpServletRequest) returns true
for a POST request.
- Specified by:
performCommand in class AbstractCommandServlet
- Parameters:
request - servlet requestresponse - servlet response
- Throws:
javax.servlet.ServletException - if an error occurs.
IOException - if an I/O error occurs.- See Also:
AbstractCommandServlet.performCommand(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse)
doGet
protected void doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.apache.commons.collections.Predicate predicate)
throws javax.servlet.ServletException,
IOException
- Return a list of all messages.
- Overrides:
doGet in class AbstractPredicateServlet
- Parameters:
request - The HTTP requestresponse - The HTTP responsepredicate - the predicate retrieved from the request
- Throws:
javax.servlet.ServletException - if a servlet error occurs
IOException - if an I/O error occurs- See Also:
AbstractPredicateServlet.doGet(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse, org.apache.commons.collections.Predicate)
Copyright © 2008 Day Management AG. All Rights Reserved.