com.github.restup.registry.settings.MethodAccess Maven / Gradle / Ivy
package com.github.restup.registry.settings;
/**
* Settings which define which methods are exposed internally by service implementations. Disabling these service will disallow executing them internally as well as via http endpoints. However, if enabled, they may still be disabled by {@link ControllerMethodAccess}. By default all are enabled.
*/
public interface MethodAccess {
boolean isCreateDisabled();
boolean isCreateMultipleDisabled();
boolean isGetByIdDisabled();
boolean isListDisabled();
boolean isDeleteByIdDisabled();
boolean isDeleteByIdsDisabled();
boolean isPatchByIdDisabled();
boolean isPatchMultipleDisabled();
boolean isDeleteByQueryDisabled();
boolean isPatchByQueryDisabled();
}