Package com.jalios.jcms.policy
Class AbstractPolicyManager<T extends PolicyFilter>
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyManager<T>
-
- Direct Known Subclasses:
AlertPolicyManager
,ChannelPolicyManager
,CtxMenuPolicyManager
,DataIconPolicyManager
,DocumentEditorPolicyManager
,ExportPolicyManager
,ImportPolicyManager
,JPortalPolicyManager
,LuceneSearchEnginePolicyManager
,MailPolicyManager
,MediaTemplatePolicyManager
,MemberPolicyManager
,MemberQueryPolicyManager
,PluginPolicyManager
,PortalPolicyManager
,PubChooserExternalSubProviderPolicyManager
,PublicationFollowerPolicyManager
,RemoteDocumentPolicyManager
,RightPolicyManager
,ShortcutPolicyManager
,TemplatePolicyManager
,ThumbnailPolicyManager
,UILinkItemPolicyManager
,UnifiedInsertPolicyManager
,WebdavPolicyManager
,WikiPolicyManager
,WizardPolicyManager
,WysiwygPolicyManager
public abstract class AbstractPolicyManager<T extends PolicyFilter> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractPolicyManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addPolicyFilter(T pf)
Add the givenPolicyFilter
.protected java.util.Set<T>
getPolicyFilters()
Returns the set ofPolicyFilter
s.protected java.util.Map<java.lang.String,? extends java.util.Set<T>>
getPolicyFiltersMap()
protected abstract java.lang.String
getStatusXmlTagName()
protected void
handleException(java.lang.Exception ex, PolicyFilter pf)
Handles exception that are not caught by policy filters.void
removePolicyFilter(T pf)
Remove the givenPolicyFilter
.void
replacePolicyFilter(T pfToRemoved, T pfToAdd)
Replace the givenPolicyFilter
.
-
-
-
Method Detail
-
addPolicyFilter
public void addPolicyFilter(T pf)
Add the givenPolicyFilter
.- Parameters:
pf
- the PolicyFilter to be added
-
removePolicyFilter
public void removePolicyFilter(T pf)
Remove the givenPolicyFilter
.- Parameters:
pf
- the PolicyFilter to be added
-
replacePolicyFilter
public void replacePolicyFilter(T pfToRemoved, T pfToAdd)
Replace the givenPolicyFilter
.- Parameters:
pfToRemoved
- the PolicyFilter to be removedpfToAdd
- the PolicyFilter to be added
-
getPolicyFilters
protected java.util.Set<T> getPolicyFilters()
Returns the set ofPolicyFilter
s.- Returns:
- Set of PolicyFilters
-
getPolicyFiltersMap
protected java.util.Map<java.lang.String,? extends java.util.Set<T>> getPolicyFiltersMap()
-
getStatusXmlTagName
protected abstract java.lang.String getStatusXmlTagName()
-
handleException
protected void handleException(java.lang.Exception ex, PolicyFilter pf)
Handles exception that are not caught by policy filters.- Parameters:
ex
- the thrown Exceptionpf
- the PolicyFilter
-
-