All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.captaingoldfish.scim.sdk.server.schemas.custom.EndpointControlFeature Maven / Gradle / Ivy

There is a newer version: 1.26.0
Show newest version
// Generated by delombok at Sat Aug 24 10:10:59 CEST 2024
package de.captaingoldfish.scim.sdk.server.schemas.custom;

import de.captaingoldfish.scim.sdk.common.constants.AttributeNames;
import de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode;


/**
 * author Pascal Knueppel 
* created at: 26.11.2019 - 08:50
*
* this feature extension will allow to disable specific endpoint for specific resource types */ public class EndpointControlFeature extends ScimObjectNode { public EndpointControlFeature(Boolean createDisabled, Boolean getDisabled, Boolean listDisabled, Boolean updateDisabled, Boolean deleteDisabled) { this(); setCreateDisabled(createDisabled); setGetDisabled(getDisabled); setListDisabled(listDisabled); setUpdateDisabled(updateDisabled); setDeleteDisabled(deleteDisabled); } /** * if the create endpoint is disabled or not */ public boolean isCreateDisabled() { return getBooleanAttribute(AttributeNames.Custom.DISABLE_CREATE).orElse(false); } /** * if the create endpoint is disabled or not */ public void setCreateDisabled(Boolean createDisabled) { setAttribute(AttributeNames.Custom.DISABLE_CREATE, createDisabled); } /** * if the get endpoint is disabled or not */ public boolean isGetDisabled() { return getBooleanAttribute(AttributeNames.Custom.DISABLE_GET).orElse(false); } /** * if the get endpoint is disabled or not */ public void setGetDisabled(Boolean getDisabled) { setAttribute(AttributeNames.Custom.DISABLE_GET, getDisabled); } /** * if the list endpoint is disabled or not */ public boolean isListDisabled() { return getBooleanAttribute(AttributeNames.Custom.DISABLE_LIST).orElse(false); } /** * if the list endpoint is disabled or not */ public void setListDisabled(Boolean listDisabled) { setAttribute(AttributeNames.Custom.DISABLE_LIST, listDisabled); } /** * if the update endpoint is disabled or not */ public boolean isUpdateDisabled() { return getBooleanAttribute(AttributeNames.Custom.DISABLE_UPDATE).orElse(false); } /** * if the update endpoint is disabled or not */ public void setUpdateDisabled(Boolean disableUpdate) { setAttribute(AttributeNames.Custom.DISABLE_UPDATE, disableUpdate); } /** * if the delete endpoint is disabled or not */ public boolean isDeleteDisabled() { return getBooleanAttribute(AttributeNames.Custom.DISABLE_DELETE).orElse(false); } /** * if the delete endpoint is disabled or not */ public void setDeleteDisabled(Boolean disableDelete) { setAttribute(AttributeNames.Custom.DISABLE_DELETE, disableDelete); } /** * check if all methods are disabled */ public boolean isResourceTypeDisabled() { if (isCreateDisabled() && isGetDisabled() && isListDisabled() && isUpdateDisabled() && isDeleteDisabled()) { return true; } return false; } @java.lang.SuppressWarnings("all") @lombok.Generated public static class EndpointControlFeatureBuilder { @java.lang.SuppressWarnings("all") @lombok.Generated private Boolean createDisabled; @java.lang.SuppressWarnings("all") @lombok.Generated private Boolean getDisabled; @java.lang.SuppressWarnings("all") @lombok.Generated private Boolean listDisabled; @java.lang.SuppressWarnings("all") @lombok.Generated private Boolean updateDisabled; @java.lang.SuppressWarnings("all") @lombok.Generated private Boolean deleteDisabled; @java.lang.SuppressWarnings("all") @lombok.Generated EndpointControlFeatureBuilder() {} /** * @return {@code this}. */ @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature.EndpointControlFeatureBuilder createDisabled(final Boolean createDisabled) { this.createDisabled = createDisabled; return this; } /** * @return {@code this}. */ @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature.EndpointControlFeatureBuilder getDisabled(final Boolean getDisabled) { this.getDisabled = getDisabled; return this; } /** * @return {@code this}. */ @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature.EndpointControlFeatureBuilder listDisabled(final Boolean listDisabled) { this.listDisabled = listDisabled; return this; } /** * @return {@code this}. */ @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature.EndpointControlFeatureBuilder updateDisabled(final Boolean updateDisabled) { this.updateDisabled = updateDisabled; return this; } /** * @return {@code this}. */ @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature.EndpointControlFeatureBuilder deleteDisabled(final Boolean deleteDisabled) { this.deleteDisabled = deleteDisabled; return this; } @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature build() { return new EndpointControlFeature(this.createDisabled, this.getDisabled, this.listDisabled, this.updateDisabled, this.deleteDisabled); } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public java.lang.String toString() { return "EndpointControlFeature.EndpointControlFeatureBuilder(createDisabled=" + this.createDisabled + ", getDisabled=" + this.getDisabled + ", listDisabled=" + this.listDisabled + ", updateDisabled=" + this.updateDisabled + ", deleteDisabled=" + this.deleteDisabled + ")"; } } @java.lang.SuppressWarnings("all") @lombok.Generated public static EndpointControlFeature.EndpointControlFeatureBuilder builder() { return new EndpointControlFeature.EndpointControlFeatureBuilder(); } @java.lang.SuppressWarnings("all") @lombok.Generated public EndpointControlFeature() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy