Class AuthorizationCheckCmd

  • All Implemented Interfaces:
    Command<java.lang.Boolean>

    public class AuthorizationCheckCmd
    extends java.lang.Object
    implements Command<java.lang.Boolean>

    Command allowing to perform an authorization check

    Author:
    Daniel Meyer
    • Field Detail

      • userId

        protected java.lang.String userId
      • groupIds

        protected java.util.List<java.lang.String> groupIds
      • resourceId

        protected java.lang.String resourceId
    • Constructor Detail

      • AuthorizationCheckCmd

        public AuthorizationCheckCmd​(java.lang.String userId,
                                     java.util.List<java.lang.String> groupIds,
                                     Permission permission,
                                     Resource resource,
                                     java.lang.String resourceId)
    • Method Detail

      • execute

        public java.lang.Boolean execute​(CommandContext commandContext)
        Specified by:
        execute in interface Command<java.lang.Boolean>
      • validate

        protected void validate​(java.lang.String userId,
                                java.util.List<java.lang.String> groupIds,
                                Permission permission,
                                Resource resource)
      • isHistoricInstancePermissionsDisabled

        protected boolean isHistoricInstancePermissionsDisabled​(CommandContext commandContext)
      • isHistoricInstanceResource

        protected boolean isHistoricInstanceResource()