Class AbstractPolicyManager<T extends PolicyFilter>

java.lang.Object
com.jalios.jcms.policy.AbstractPolicyManager<T>
Direct Known Subclasses:
AlertPolicyManager, ChannelPolicyManager, ContentSecurityPolicyPolicyManager, CtxMenuPolicyManager, DataIconPolicyManager, DocumentEditorPolicyManager, ExportPolicyManager, ImportPolicyManager, JPortalPolicyManager, LuceneSearchEnginePolicyManager, MailPolicyManager, MediaTemplatePolicyManager, MemberPolicyManager, MemberQueryPolicyManager, PluginPolicyManager, PortalPolicyManager, PubChooserExternalSubProviderPolicyManager, PublicationFollowerPolicyManager, RemoteDocumentPolicyManager, RightPolicyManager, ShortcutPolicyManager, TemplatePolicyManager, ThumbnailPolicyManager, UILinkItemPolicyManager, UnifiedInsertPolicyManager, WikiPolicyManager, WizardPolicyManager, WysiwygPolicyManager

public abstract class AbstractPolicyManager<T extends PolicyFilter> extends Object
  • Constructor Details

    • AbstractPolicyManager

      public AbstractPolicyManager()
  • Method Details

    • addPolicyFilter

      public void addPolicyFilter(T pf)
      Add the given PolicyFilter.
      Parameters:
      pf - the PolicyFilter to be added
    • removePolicyFilter

      public void removePolicyFilter(T pf)
      Remove the given PolicyFilter.
      Parameters:
      pf - the PolicyFilter to be added
    • replacePolicyFilter

      public void replacePolicyFilter(T pfToRemoved, T pfToAdd)
      Replace the given PolicyFilter.
      Parameters:
      pfToRemoved - the PolicyFilter to be removed
      pfToAdd - the PolicyFilter to be added
    • getPolicyFilters

      protected Set<T> getPolicyFilters()
      Returns the set of PolicyFilters.
      Returns:
      Set of PolicyFilters
    • getPolicyFiltersMap

      protected Map<String,? extends Set<T>> getPolicyFiltersMap()
    • getStatusXmlTagName

      protected abstract String getStatusXmlTagName()
    • handleException

      protected void handleException(Exception ex, PolicyFilter pf)
      Handles exception that are not caught by policy filters.
      Parameters:
      ex - the thrown Exception
      pf - the PolicyFilter