public class AbstractMessageHandlerFactory.Handler extends java.lang.Object implements MessageHandler, Contexed
Modifier and Type | Method and Description |
---|---|
boolean |
canView(java.util.List<java.lang.String> path,
SessionService<?> operator)
Is the specified person allowed to view this message
|
AppContext |
getContext() |
MessageHandlerFactory |
getFactory(AppContext conn)
Get the MessageHandlerFactory for this MessageHandler.
|
MessageProvider |
getMessageProvider()
get the
MessageProvider corresponding to the Message |
java.util.List<java.lang.String> |
getPath()
Get the path to generate the
MessageHandler from the MessageHandlerFactory |
java.lang.String |
getTypeName()
get identifying name for the type of message being edited
|
protected final H extends AbstractMessageHandlerFactory.Provider provider
public Handler(H provider)
public java.util.List<java.lang.String> getPath()
MessageHandler
MessageHandler
from the MessageHandlerFactory
getPath
in interface MessageHandler
public MessageProvider getMessageProvider() throws java.lang.Exception
MessageHandler
MessageProvider
corresponding to the MessagegetMessageProvider
in interface MessageHandler
java.lang.Exception
public boolean canView(java.util.List<java.lang.String> path, SessionService<?> operator)
MessageHandler
canView
in interface MessageHandler
path
- Path being viewedpublic java.lang.String getTypeName()
MessageHandler
getTypeName
in interface MessageHandler
public MessageHandlerFactory getFactory(AppContext conn)
MessageHandler
getFactory
in interface MessageHandler
public AppContext getContext()
getContext
in interface Contexed