|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.plugin.admin.BaseAdminPlugin
org.blojsom.plugin.admin.ViewBlogUserPropertiesPlugin
* View custom properties for a Blog user. Useful for collecting various information from a user upon registration.
| Field Summary | |
protected Fetcher |
_fetcher
|
protected static java.lang.String |
BLOJSOM_PLUGIN_VIEW_USER_PROPERTIES_USER_MAP
|
protected static java.lang.String |
FAILED_VIEW_PROPERTIES_KEY
|
protected static java.lang.String |
USER_PROPERTIES_SUFFIX
The suffix used to identify custom user properties. |
protected static java.lang.String |
VIEW_USER_PROPERTIES_PAGE
|
protected static java.lang.String |
VIEW_USER_PROPERTIES_PERMISSION
|
| Constructor Summary | |
ViewBlogUserPropertiesPlugin()
Construct a new instance of the View blog user properties plugin |
|
| Method Summary | |
Entry[] |
process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
Process the blog entries |
protected java.util.Map |
readPropertiesForUser(User user)
Read the properties for the specified user |
void |
setFetcher(Fetcher fetcher)
Set the Fetcher |
protected void |
setupPropertiesInContext(java.util.Map context,
Blog blog)
Add the properties for the users in a blog to the context |
| Methods inherited from class org.blojsom.plugin.admin.BaseAdminPlugin |
addOperationResultMessage, authenticateUser, checkPermission, cleanup, destroy, formatAdminResource, getAdminResource, getUsernameFromSession, init, setAuthorizationProvider, setResourceManager, setServletConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String USER_PROPERTIES_SUFFIX
protected static final java.lang.String BLOJSOM_PLUGIN_VIEW_USER_PROPERTIES_USER_MAP
protected static final java.lang.String VIEW_USER_PROPERTIES_PAGE
protected static final java.lang.String VIEW_USER_PROPERTIES_PERMISSION
protected static final java.lang.String FAILED_VIEW_PROPERTIES_KEY
protected Fetcher _fetcher
| Constructor Detail |
public ViewBlogUserPropertiesPlugin()
| Method Detail |
public void setFetcher(Fetcher fetcher)
Fetcher
fetcher - Fetcherprotected java.util.Map readPropertiesForUser(User user)
user - User
protected void setupPropertiesInContext(java.util.Map context,
Blog blog)
context - Contextblog - Blog
public Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
throws PluginException
process in interface Pluginprocess in class BaseAdminPluginhttpServletRequest - RequesthttpServletResponse - Responseblog - Blog instancecontext - Contextentries - Blog entries retrieved for the particular request
PluginException - If there is an error processing the blog entries
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||