Uses of Class
com.jalios.jcms.portlet.DisplayContext
-
Packages that use DisplayContext Package Description com.jalios.jcms.context Provides context classes available in every request, you can extends them or use them as javabean.com.jalios.jcms.policy com.jalios.jcms.portlet Contains core Portlets parent of all generated portlets. -
-
Uses of DisplayContext in com.jalios.jcms.context
Methods in com.jalios.jcms.context with parameters of type DisplayContext Modifier and Type Method Description void
JcmsJspContext. registerDisplayContext(DisplayContext ctxt)
Register the given DisplayContext into the JcmsContext -
Uses of DisplayContext in com.jalios.jcms.policy
Methods in com.jalios.jcms.policy with parameters of type DisplayContext Modifier and Type Method Description void
BasicPortalPolicyFilter. checkDisplay(DisplayContext context, Category cat, Member loggedMember)
void
BasicPortalPolicyFilter. checkDisplay(DisplayContext context, Member member, Category home, Member loggedMember)
void
BasicPortalPolicyFilter. checkDisplay(DisplayContext context, Publication pub, Member loggedMember)
void
PortalPolicyFilter. checkDisplay(DisplayContext context, Category cat, Member loggedMember)
Hook called by getDisplayContext() to update the content of context.void
PortalPolicyFilter. checkDisplay(DisplayContext context, Member member, Category home, Member loggedMember)
Hook called by getDisplayContext() to update the content of context.void
PortalPolicyFilter. checkDisplay(DisplayContext context, Publication pub, Member loggedMember)
Hook called by getDisplayContext() to update the content of context.void
BasicPortalPolicyFilter. checkDisplayContext(DisplayContext context)
void
PortalPolicyFilter. checkDisplayContext(DisplayContext context)
Hook called by display.jsp to create the display context if it is null otherwise sendForbidden.boolean
BasicPortalPolicyFilter. checkPortal(PortalInterface portal, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, boolean jcmsChoice)
boolean
PortalPolicyFilter. checkPortal(PortalInterface portal, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, boolean jcmsChoice)
Hook called byPortalManager
to decide if the given portal may be used to display information.java.lang.String
BasicPortalPolicyFilter. checkRedirect(java.lang.String redirectUrl, PortalRedirect redirect, DisplayContext context, Member loggedMember)
java.lang.String
PortalPolicyFilter. checkRedirect(java.lang.String redirectUrl, PortalRedirect redirect, DisplayContext context, Member loggedMember)
Hook called by display.jsp to update the redirect url of PortletRedirect.Workspace
BasicPortalPolicyFilter. checkWorkspace(DisplayContext context, Workspace workspace, Member loggedMember)
Workspace
PortalPolicyFilter. checkWorkspace(DisplayContext context, Workspace workspace, Member loggedMember)
Hook called by handleDisplayRequest() (in display.jsp) to update the working worskpace. -
Uses of DisplayContext in com.jalios.jcms.portlet
Methods in com.jalios.jcms.portlet that return DisplayContext Modifier and Type Method Description static DisplayContext
PortalManager. getDisplayContext(JcmsContext context)
This is a convenient method to compute display.jsp display context.static DisplayContext
PortalManager. getDisplayContext(java.lang.String id, PortalInterface overrided, Category[] ctxCategories, Member loggedMember, boolean preview, java.lang.String queryString)
This method compute a display context of parameters for display.jsp.Methods in com.jalios.jcms.portlet with parameters of type DisplayContext Modifier and Type Method Description void
PortalPolicyManager. checkDisplay(DisplayContext context, Category cat, Member loggedMember)
void
PortalPolicyManager. checkDisplay(DisplayContext context, Member member, Category home, Member loggedMember)
void
PortalPolicyManager. checkDisplay(DisplayContext context, Publication pub, Member loggedMember)
void
PortalPolicyManager. checkDisplayContext(DisplayContext context)
static boolean
PortalManager. checkPortal(Category cat, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact)
This method looks for a matching Portal for a given Category.protected static boolean
PortalManager. checkPortal(Category cat, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact)
Check the validity of the given Publication to be a convenient Portal.protected static boolean
PortalManager. checkPortal(Category category, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean preview)
Check the validity of the given Publication to be a convenient Portal.boolean
PortalPolicyManager. checkPortal(PortalInterface portal, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, boolean jcmsChoice)
java.lang.String
PortalPolicyManager. checkRedirect(java.lang.String redirectUrl, PortalRedirect redirect, DisplayContext context, Member loggedMember)
Workspace
PortalPolicyManager. checkWorkspace(DisplayContext context, Workspace workspace, Member loggedMember)
static boolean
PortalManager. findPortal(Category cat, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean recursive)
Recursive methode that try to find the right portal for a given category otherwise may call parent category.static boolean
PortalManager. findPortal(Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean preview, Category[] ctxCategories)
Fill a display context with all the elements usefull for navigation, using the given steps:
1- Iterate on publication categories starting with sibling of contextual categories
2- Recursive call with parents until finding a Portal
3- Then set the portalCategory and the currentCategoryjava.lang.String
PortalRedirect. getRedirectURL(Member loggedMember, DisplayContext context)
static void
PortalManager. handleDisplayRequest(JcmsJspContext context, DisplayContext display, long startPageRequest)
Called by display.jsp to set all request attributes from computed display context.
-