Package com.jalios.jcms.portlet
Class PortalPolicyManager
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyManager<PortalPolicyFilter>
-
- com.jalios.jcms.portlet.PortalPolicyManager
-
public class PortalPolicyManager extends AbstractPolicyManager<PortalPolicyFilter>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Category
checkCategory(Category workingCategory, Member loggedMember)
void
checkCtxCategories(java.util.List<Category> ctxCategories)
void
checkDisplay(DisplayContext context, Category cat, Member loggedMember)
void
checkDisplay(DisplayContext context, Member member, Category home, Member loggedMember)
void
checkDisplay(DisplayContext context, Publication pub, Member loggedMember)
void
checkDisplayContext(DisplayContext context)
java.lang.String
checkPermalink(java.lang.String permalink, Data data)
Deprecated.java.lang.String
checkPermalink(java.lang.String permalink, Data data, java.util.Locale locale)
boolean
checkPortal(PortalInterface portal, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, boolean jcmsChoice)
Publication
checkPublication(Publication workingPublication, Member loggedMember, boolean isPreview)
java.lang.String
checkRedirect(java.lang.String redirectUrl, PortalRedirect redirect, DisplayContext context, Member loggedMember)
void
checkWorkingCategories(java.util.List<Category> workingCategories, Publication pub, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, Category[] ctxCategories)
Workspace
checkWorkspace(DisplayContext context, Workspace workspace, Member loggedMember)
void
fillDescriptiveURLParamMap(java.util.Map<java.lang.String,java.lang.String> paramMap, Data data)
void
filterDisplayContext(PortalManager.DisplayContextParameters dcp)
boolean
getBooleanFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, boolean computedValue)
java.util.TreeSet<Category>
getCategoryFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, java.util.TreeSet<Category> computedValue)
PortalInterface
getDefaultPortal(PortalInterface jcmsChoice, Member loggedMember)
java.lang.String
getDescriptiveURLId(java.lang.String descriptiveUrl, java.lang.String id)
java.lang.String
getDescriptiveURLLanguage(java.lang.String descriptiveUrl, java.lang.String lang)
java.lang.String
getDescriptiveURLPath(Data data, java.util.Locale locale)
java.lang.String
getDescriptiveURLText(java.lang.String descriptiveURLtext, Data data, java.util.Locale locale)
double
getDoubleFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, double computedValue)
java.lang.Object
getFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, java.lang.Object computedValue)
Category
getHomeCategory(Category jcmsChoice, Member loggedMember)
static PortalPolicyManager
getInstance()
int
getIntFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, int computedValue)
long
getLongFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, long computedValue)
protected java.lang.String
getStatusXmlTagName()
void
initHeaders(java.util.Map<java.lang.String,java.lang.String> header, java.lang.String key, JcmsJspContext context)
void
initJavaScriptCodeSet(java.util.Set<java.lang.String> jsCodeSet, JcmsJspContext context)
void
initJavaScriptSet(java.util.Set<java.lang.String> jsSet, JcmsJspContext context)
void
setupHeaders(java.util.Map<java.lang.String,java.lang.String> header, java.lang.String key, JcmsJspContext context)
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyManager
addPolicyFilter, getPolicyFilters, getPolicyFiltersMap, handleException, removePolicyFilter, replacePolicyFilter
-
-
-
-
Method Detail
-
getInstance
public static final PortalPolicyManager getInstance()
-
getStatusXmlTagName
protected java.lang.String getStatusXmlTagName()
- Specified by:
getStatusXmlTagName
in classAbstractPolicyManager<PortalPolicyFilter>
-
getHomeCategory
public Category getHomeCategory(Category jcmsChoice, Member loggedMember)
- Since:
- jcms-7.1.2
- See Also:
PortalPolicyFilter.getHomeCategory(Category,Member)
-
getDefaultPortal
public PortalInterface getDefaultPortal(PortalInterface jcmsChoice, Member loggedMember)
- Since:
- jcms-7.1.2
- See Also:
PortalPolicyFilter.getDefaultPortal(PortalInterface,Member)
-
filterDisplayContext
public void filterDisplayContext(PortalManager.DisplayContextParameters dcp)
-
checkPublication
public Publication checkPublication(Publication workingPublication, Member loggedMember, boolean isPreview)
-
checkCtxCategories
public void checkCtxCategories(java.util.List<Category> ctxCategories)
-
checkPortal
public boolean checkPortal(PortalInterface portal, Publication pub, DisplayContext context, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, boolean jcmsChoice)
-
checkWorkingCategories
public void checkWorkingCategories(java.util.List<Category> workingCategories, Publication pub, Member loggedMember, boolean skipRedirect, boolean skipExact, boolean modePreview, Category[] ctxCategories)
-
checkDisplay
public void checkDisplay(DisplayContext context, Category cat, Member loggedMember)
-
checkDisplay
public void checkDisplay(DisplayContext context, Publication pub, Member loggedMember)
-
checkDisplay
public void checkDisplay(DisplayContext context, Member member, Category home, Member loggedMember)
-
checkWorkspace
public Workspace checkWorkspace(DisplayContext context, Workspace workspace, Member loggedMember)
-
checkDisplayContext
public void checkDisplayContext(DisplayContext context)
-
checkRedirect
public java.lang.String checkRedirect(java.lang.String redirectUrl, PortalRedirect redirect, DisplayContext context, Member loggedMember)
-
checkPermalink
public java.lang.String checkPermalink(java.lang.String permalink, Data data)
Deprecated.
-
checkPermalink
public java.lang.String checkPermalink(java.lang.String permalink, Data data, java.util.Locale locale)
-
getDescriptiveURLText
public java.lang.String getDescriptiveURLText(java.lang.String descriptiveURLtext, Data data, java.util.Locale locale)
-
getDescriptiveURLPath
public java.lang.String getDescriptiveURLPath(Data data, java.util.Locale locale)
-
getDescriptiveURLId
public java.lang.String getDescriptiveURLId(java.lang.String descriptiveUrl, java.lang.String id)
-
getDescriptiveURLLanguage
public java.lang.String getDescriptiveURLLanguage(java.lang.String descriptiveUrl, java.lang.String lang)
-
fillDescriptiveURLParamMap
public void fillDescriptiveURLParamMap(java.util.Map<java.lang.String,java.lang.String> paramMap, Data data)
- Since:
- jcms-7.0.0
- See Also:
PortalPolicyFilter.fillDescriptiveURLParameterMap(Map, Data)
-
getFieldValue
public java.lang.Object getFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, java.lang.Object computedValue)
-
getIntFieldValue
public int getIntFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, int computedValue)
- Since:
- jcms-6.0.0
- See Also:
PortalPolicyFilter.getIntFieldValue(JcmsJspContext, String, Data, int)
-
getLongFieldValue
public long getLongFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, long computedValue)
- Since:
- jcms-6.0.2, jcms-6.1.1
- See Also:
PortalPolicyFilter.getLongFieldValue(JcmsJspContext, String, Data, long)
-
getDoubleFieldValue
public double getDoubleFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, double computedValue)
- Since:
- jcms-6.0.2, jcms-6.1.1
- See Also:
PortalPolicyFilter.getDoubleFieldValue(JcmsJspContext, String, Data, double)
-
getBooleanFieldValue
public boolean getBooleanFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, boolean computedValue)
- Since:
- jcms-6.0.2, jcms-6.1.1
- See Also:
PortalPolicyFilter.getBooleanFieldValue(JcmsJspContext, String, Data, boolean)
-
getCategoryFieldValue
public java.util.TreeSet<Category> getCategoryFieldValue(JcmsJspContext ctxt, java.lang.String fieldName, Data data, java.util.TreeSet<Category> computedValue)
- Since:
- jcms-6.0.2, jcms-6.1.1
- See Also:
PortalPolicyFilter.getCategoryFieldValue(JcmsJspContext, String, Data, TreeSet)
-
initHeaders
public void initHeaders(java.util.Map<java.lang.String,java.lang.String> header, java.lang.String key, JcmsJspContext context)
-
setupHeaders
public void setupHeaders(java.util.Map<java.lang.String,java.lang.String> header, java.lang.String key, JcmsJspContext context)
-
initJavaScriptSet
public void initJavaScriptSet(java.util.Set<java.lang.String> jsSet, JcmsJspContext context)
-
initJavaScriptCodeSet
public void initJavaScriptCodeSet(java.util.Set<java.lang.String> jsCodeSet, JcmsJspContext context)
-
-