Class FormRightPolicyFilter

All Implemented Interfaces:
PluginComponent, PolicyFilter, RightPolicyFilter, Comparable

public class FormRightPolicyFilter extends BasicRightPolicyFilter
  • Constructor Details

    • FormRightPolicyFilter

      public FormRightPolicyFilter()
  • Method Details

    • canBeReadBy

      public boolean canBeReadBy(boolean isAuthorized, Publication pub, Member member, boolean searchInGroups)
      Description copied from interface: RightPolicyFilter
      Called by Publication.canBeReadBy(Member, boolean). It checks if a member can read the given publication. WARNING: HIGHLY SENSIBLE, do not modify without being sure of what you do, can dramatically impact performance and can break existing rights behaviour.
      Specified by:
      canBeReadBy in interface RightPolicyFilter
      Overrides:
      canBeReadBy in class BasicRightPolicyFilter
      Parameters:
      isAuthorized - true if internal JCMS control authorized the member to perform this action
      pub - the publication to check
      member - the member to check
      searchInGroups - if true check if one of the group this member belongs to is authorized to read this publication.
      Returns:
      true if the member can read this publication
      See Also:
    • isDefaultPrivacySkipped

      protected static boolean isDefaultPrivacySkipped(Form form)
      Parameters:
      form - the form to check if it is protected by default (depending on its clazz)
      Returns:
      false by default, or true if skip property has been defined on given form clazz.
      See Also: