Class SpecificOperationAccessContext

java.lang.Object
io.jmix.core.accesscontext.SpecificOperationAccessContext
All Implemented Interfaces:
AccessContext
Direct Known Subclasses:
BpmRestAccessContext, DashboardGroupBrowseContext, FlowuiLoginToUiContext, FlowuiShowExceptionDetailsContext, GraphQLAccessContext, PersistentDashboardEditButtonContext, ReportRestAccessContext, RestAccessContext, RestFileDownloadContext, RestFileUploadContext, TemplateBlocksButtonContext, TemplateGroupsButtonContext, UiBulkEditContext, UiFilterModifyConfigurationContext, UiFilterModifyGlobalConfigurationContext, UiFilterModifyJpqlConditionContext, UiGlobalPresentationContext, UiLoginToUiContext, UiShowEntityInfoContext, UiShowExceptionDetailsContext

public class SpecificOperationAccessContext extends Object implements AccessContext
An access context to check permissions on arbitrary named functionality.
  • Field Details

    • permitted

      protected boolean permitted
    • name

      protected final String name
  • Constructor Details

    • SpecificOperationAccessContext

      public SpecificOperationAccessContext(String name)
  • Method Details

    • getName

      public String getName()
    • setDenied

      public void setDenied()
    • isPermitted

      public boolean isPermitted()
    • explainConstraints

      @Nullable public String explainConstraints()
      Description copied from interface: AccessContext
      Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions. Null if the current context does not impose any constraints.
      Specified by:
      explainConstraints in interface AccessContext