Class WidgetConfigPolicyProcessor

java.lang.Object
ch.tocco.nice2.widget.impl.policyprocessor.WidgetConfigPolicyProcessor
All Implemented Interfaces:
PolicyProcessor

@Component public class WidgetConfigPolicyProcessor extends Object implements PolicyProcessor
This policy processor creates the acl rules for the widget config entities. Before the following acl rules must be created manually: - `entityManager(WIDGET_CONFIG): grant create to widgetmanager;` - `entity(WIDGET_CONFIG): grant access, delete to widgetmanager; grant access(read) to widgetguest;` - `entityPath(WIDGET_CONFIG, entity_name, form_base, rule_provider, disable_detail_view): deny access(write);` Deny write rules for other fields must be still manually created!
  • Constructor Details

    • WidgetConfigPolicyProcessor

      public WidgetConfigPolicyProcessor(DataModel dataModel)
  • Method Details

    • processPolicy

      public void processPolicy(PolicyBuilder policy, Object target)
      Description copied from interface: PolicyProcessor
      Post-process the given policy. On phase `LOGIN`, the `target` is the principal being logged in, on phase `GUARD`, it's the object being guarded. On phase `LOGIN` the `policy` is the entire policy containing all rules that affect the current user, on phase `GUARD` the policy only contains the rules that are relevant to the guarded objects (the entire policy, if needed, can be retrieved from the SecurityContext).
      Specified by:
      processPolicy in interface PolicyProcessor