Interface Restriction<M>

    • Method Detail

      • getRealClass

        default Class<?> getRealClass()
        Returns the real class of this restriction. Subclasses usually do not need to overwrite this method as the default implementation should be appropriate. This is necessary as CDI implementations that create proxies might not provide the real class that is necessary for restriction lookup.
        Returns:
        the real class of this restriction
      • allowCommand

        boolean allowCommand​(CommandContext<? extends M> commandContext)
        Returns whether a command caused by the given command context should be allowed by this restriction or not.
        Parameters:
        commandContext - the command context, usually fully populated
        Returns:
        whether a command caused by the given command context should be allowed by this restriction or not