Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ public Response updateOrganization(String organizationId, OrganizationPUTRequest
public Response addOrganization(OrganizationPOSTRequest organizationPOSTRequest) {

try {
if (organizationPOSTRequest == null) {
throw new OrganizationManagementClientException("Empty request body.",
"The request body cannot be empty or null.", "ORG-60025");
}
Organization organization = organizationManager.addOrganization(getOrganizationFromPostRequest
(organizationPOSTRequest));
String organizationId = organization.getId();
Expand Down Expand Up @@ -415,6 +419,10 @@ public Response addOrganizationDiscoveryAttributes(OrganizationDiscoveryPostRequ
organizationDiscoveryPostRequest) {

try {
if (organizationDiscoveryPostRequest == null) {
throw new OrganizationManagementClientException("Empty request body.",
"The request body cannot be empty or null.", "ORG-60025");
}
List<OrgDiscoveryAttribute> orgDiscoveryAttributeList = organizationDiscoveryManager
.addOrganizationDiscoveryAttributes(organizationDiscoveryPostRequest.getOrganizationId(),
getOrgDiscoveryAttributesFromPostRequest(organizationDiscoveryPostRequest), true);
Expand Down Expand Up @@ -549,6 +557,10 @@ public Response isDiscoveryAttributeAvailable(OrganizationDiscoveryCheckPOSTRequ
organizationDiscoveryCheckPOSTRequest) {

try {
if (organizationDiscoveryCheckPOSTRequest == null) {
throw new OrganizationManagementClientException("Empty request body.",
"The request body cannot be empty or null.", "ORG-60025");
}
boolean discoveryAttributeValueAvailable = organizationDiscoveryManager
.isDiscoveryAttributeValueAvailable(organizationDiscoveryCheckPOSTRequest.getType(),
organizationDiscoveryCheckPOSTRequest.getValue());
Expand Down