mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Convert update dto classes to interfaces
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
package sonia.scm.api.v2.resources;
|
||||
|
||||
import de.otto.edison.hal.HalRepresentation;
|
||||
@@ -33,7 +33,7 @@ import lombok.Setter;
|
||||
@NoArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
public class HgConfigDto extends HalRepresentation {
|
||||
public class HgConfigDto extends HalRepresentation implements UpdateHgConfigDto {
|
||||
|
||||
private boolean disabled;
|
||||
|
||||
|
||||
@@ -24,23 +24,22 @@
|
||||
|
||||
package sonia.scm.api.v2.resources;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
interface UpdateHgConfigDto {
|
||||
boolean isDisabled();
|
||||
|
||||
/**
|
||||
* This class is currently only used in the openapi scheme
|
||||
*/
|
||||
@Getter
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
final class UpdateHgConfigDto {
|
||||
private boolean disabled;
|
||||
private String hgBinary;
|
||||
private String pythonBinary;
|
||||
private String pythonPath;
|
||||
private String encoding;
|
||||
private boolean useOptimizedBytecode;
|
||||
private boolean showRevisionInId;
|
||||
private boolean disableHookSSLValidation;
|
||||
private boolean enableHttpPostArgs;
|
||||
String getHgBinary();
|
||||
|
||||
String getPythonBinary();
|
||||
|
||||
String getPythonPath();
|
||||
|
||||
String getEncoding();
|
||||
|
||||
boolean isUseOptimizedBytecode();
|
||||
|
||||
boolean isShowRevisionInId();
|
||||
|
||||
boolean isDisableHookSSLValidation();
|
||||
|
||||
boolean isEnableHttpPostArgs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user