java.lang.Object
org.roller.presentation.velocity.ContextLoader
- public class ContextLoader
- extends java.lang.Object
Load Velocity Context with Roller objects, values, and custom plugins.
|
Method Summary |
private static java.lang.String |
figureResourcePath(org.roller.presentation.RollerRequest rreq)
|
boolean |
isUserAuthorizedToEdit()
|
protected static void |
loadCommentValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx)
|
protected static void |
loadPathValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx,
java.lang.String userName)
|
protected static void |
loadRequestParamKeys(org.apache.velocity.context.Context ctx)
|
protected static void |
loadRssValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
java.lang.String userName)
|
protected static void |
loadUtilityObjects(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx)
|
protected static java.lang.String |
loadWebsiteValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx)
|
static void |
setupContext(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
javax.servlet.http.HttpServletResponse response)
Setup the a Velocity context by loading it with objects, values, and
RollerPagePlugins needed for Roller page execution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mPageContext
private javax.servlet.jsp.PageContext mPageContext
mResponse
private javax.servlet.http.HttpServletResponse mResponse
mRollerReq
private org.roller.presentation.RollerRequest mRollerReq
mUsername
private java.lang.String mUsername
mVelocityContext
private org.apache.velocity.context.Context mVelocityContext
mPlugins
static java.util.List mPlugins
mLogger
private static org.apache.commons.logging.Log mLogger
ContextLoader
public ContextLoader(org.roller.presentation.RollerRequest rreq,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context ctx)
- Initialize VelocityHelper, setting the variables it will be hiding from
the Velocimacros.
setupContext
public static void setupContext(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
javax.servlet.http.HttpServletResponse response)
throws org.roller.RollerException
- Setup the a Velocity context by loading it with objects, values, and
RollerPagePlugins needed for Roller page execution.
figureResourcePath
private static java.lang.String figureResourcePath(org.roller.presentation.RollerRequest rreq)
isUserAuthorizedToEdit
public boolean isUserAuthorizedToEdit()
loadCommentValues
protected static void loadCommentValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx)
throws org.roller.RollerException
loadPathValues
protected static void loadPathValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx,
java.lang.String userName)
loadRequestParamKeys
protected static void loadRequestParamKeys(org.apache.velocity.context.Context ctx)
loadRssValues
protected static void loadRssValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
java.lang.String userName)
throws org.roller.RollerException
loadUtilityObjects
protected static void loadUtilityObjects(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx)
loadWebsiteValues
protected static java.lang.String loadWebsiteValues(org.apache.velocity.context.Context ctx,
org.roller.presentation.RollerRequest rreq,
org.roller.presentation.RollerContext rollerCtx)