Required role: | REGISUserRole |
POST | /Directory/Settings/{uuid} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DirectorySettingsAndActivePersonLookupRequest
{
public String uuid = null;
public String getUuid() { return uuid; }
public DirectorySettingsAndActivePersonLookupRequest setUuid(String value) { this.uuid = value; return this; }
}
public static class DirectorySettingsAndPersonLookupResponse
{
public ResponseStatus responseStatus = null;
public Integer regent_id = null;
public String uuid = null;
public DirectoryResponse directory_settings = null;
public DirectoryShareSettingsResponse directory_share_settings = null;
public ArrayList<DirectoryPersonLookupResponse> person_lookup = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public DirectorySettingsAndPersonLookupResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getRegentId() { return regent_id; }
public DirectorySettingsAndPersonLookupResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getUuid() { return uuid; }
public DirectorySettingsAndPersonLookupResponse setUuid(String value) { this.uuid = value; return this; }
public DirectoryResponse getDirectorySettings() { return directory_settings; }
public DirectorySettingsAndPersonLookupResponse setDirectorySettings(DirectoryResponse value) { this.directory_settings = value; return this; }
public DirectoryShareSettingsResponse getDirectoryShareSettings() { return directory_share_settings; }
public DirectorySettingsAndPersonLookupResponse setDirectoryShareSettings(DirectoryShareSettingsResponse value) { this.directory_share_settings = value; return this; }
public ArrayList<DirectoryPersonLookupResponse> getPersonLookup() { return person_lookup; }
public DirectorySettingsAndPersonLookupResponse setPersonLookup(ArrayList<DirectoryPersonLookupResponse> value) { this.person_lookup = value; return this; }
}
public static class DirectoryResponse
{
public String directory_uuid = null;
public String waiver = null;
public Date bday = null;
public Date spouse_bday = null;
public String spouse_name = null;
public Date wedding_date = null;
public String kids = null;
public String home_country = null;
public String quote = null;
public String bio = null;
public String interests = null;
public String category = null;
public String field_of_work = null;
public String church = null;
public String getDirectoryUuid() { return directory_uuid; }
public DirectoryResponse setDirectoryUuid(String value) { this.directory_uuid = value; return this; }
public String getWaiver() { return waiver; }
public DirectoryResponse setWaiver(String value) { this.waiver = value; return this; }
public Date getBday() { return bday; }
public DirectoryResponse setBday(Date value) { this.bday = value; return this; }
public Date getSpouseBday() { return spouse_bday; }
public DirectoryResponse setSpouseBday(Date value) { this.spouse_bday = value; return this; }
public String getSpouseName() { return spouse_name; }
public DirectoryResponse setSpouseName(String value) { this.spouse_name = value; return this; }
public Date getWeddingDate() { return wedding_date; }
public DirectoryResponse setWeddingDate(Date value) { this.wedding_date = value; return this; }
public String getKids() { return kids; }
public DirectoryResponse setKids(String value) { this.kids = value; return this; }
public String getHomeCountry() { return home_country; }
public DirectoryResponse setHomeCountry(String value) { this.home_country = value; return this; }
public String getQuote() { return quote; }
public DirectoryResponse setQuote(String value) { this.quote = value; return this; }
public String getBio() { return bio; }
public DirectoryResponse setBio(String value) { this.bio = value; return this; }
public String getInterests() { return interests; }
public DirectoryResponse setInterests(String value) { this.interests = value; return this; }
public String getCategory() { return category; }
public DirectoryResponse setCategory(String value) { this.category = value; return this; }
public String getFieldOfWork() { return field_of_work; }
public DirectoryResponse setFieldOfWork(String value) { this.field_of_work = value; return this; }
public String getChurch() { return church; }
public DirectoryResponse setChurch(String value) { this.church = value; return this; }
}
public static class DirectoryShareSettingsResponse
{
public String directory_uuid = null;
public Boolean share_full_name = null;
public Boolean share_bday = null;
public Boolean share_home_phone = null;
public Boolean share_cell_phone = null;
public Boolean share_email = null;
public Boolean share_address = null;
public Boolean share_quote = null;
public Boolean share_bio = null;
public Boolean share_interests = null;
public Boolean share_home_country = null;
public Boolean share_program = null;
public Boolean share_picture = null;
public Boolean share_spouse_name = null;
public Boolean share_spouse_bday = null;
public Boolean share_wedding_date = null;
public Boolean share_kids = null;
public Boolean share_field_of_work = null;
public Boolean share_church = null;
public String getDirectoryUuid() { return directory_uuid; }
public DirectoryShareSettingsResponse setDirectoryUuid(String value) { this.directory_uuid = value; return this; }
public Boolean isShareFullName() { return share_full_name; }
public DirectoryShareSettingsResponse setShareFullName(Boolean value) { this.share_full_name = value; return this; }
public Boolean isShareBday() { return share_bday; }
public DirectoryShareSettingsResponse setShareBday(Boolean value) { this.share_bday = value; return this; }
public Boolean isShareHomePhone() { return share_home_phone; }
public DirectoryShareSettingsResponse setShareHomePhone(Boolean value) { this.share_home_phone = value; return this; }
public Boolean isShareCellPhone() { return share_cell_phone; }
public DirectoryShareSettingsResponse setShareCellPhone(Boolean value) { this.share_cell_phone = value; return this; }
public Boolean isShareEmail() { return share_email; }
public DirectoryShareSettingsResponse setShareEmail(Boolean value) { this.share_email = value; return this; }
public Boolean isShareAddress() { return share_address; }
public DirectoryShareSettingsResponse setShareAddress(Boolean value) { this.share_address = value; return this; }
public Boolean isShareQuote() { return share_quote; }
public DirectoryShareSettingsResponse setShareQuote(Boolean value) { this.share_quote = value; return this; }
public Boolean isShareBio() { return share_bio; }
public DirectoryShareSettingsResponse setShareBio(Boolean value) { this.share_bio = value; return this; }
public Boolean isShareInterests() { return share_interests; }
public DirectoryShareSettingsResponse setShareInterests(Boolean value) { this.share_interests = value; return this; }
public Boolean isShareHomeCountry() { return share_home_country; }
public DirectoryShareSettingsResponse setShareHomeCountry(Boolean value) { this.share_home_country = value; return this; }
public Boolean isShareProgram() { return share_program; }
public DirectoryShareSettingsResponse setShareProgram(Boolean value) { this.share_program = value; return this; }
public Boolean isSharePicture() { return share_picture; }
public DirectoryShareSettingsResponse setSharePicture(Boolean value) { this.share_picture = value; return this; }
public Boolean isShareSpouseName() { return share_spouse_name; }
public DirectoryShareSettingsResponse setShareSpouseName(Boolean value) { this.share_spouse_name = value; return this; }
public Boolean isShareSpouseBday() { return share_spouse_bday; }
public DirectoryShareSettingsResponse setShareSpouseBday(Boolean value) { this.share_spouse_bday = value; return this; }
public Boolean isShareWeddingDate() { return share_wedding_date; }
public DirectoryShareSettingsResponse setShareWeddingDate(Boolean value) { this.share_wedding_date = value; return this; }
public Boolean isShareKids() { return share_kids; }
public DirectoryShareSettingsResponse setShareKids(Boolean value) { this.share_kids = value; return this; }
public Boolean isShareFieldOfWork() { return share_field_of_work; }
public DirectoryShareSettingsResponse setShareFieldOfWork(Boolean value) { this.share_field_of_work = value; return this; }
public Boolean isShareChurch() { return share_church; }
public DirectoryShareSettingsResponse setShareChurch(Boolean value) { this.share_church = value; return this; }
}
public static class DirectoryPersonLookupResponse
{
public String directory_uuid = null;
public String name = null;
public Boolean is_active = null;
public String getDirectoryUuid() { return directory_uuid; }
public DirectoryPersonLookupResponse setDirectoryUuid(String value) { this.directory_uuid = value; return this; }
public String getName() { return name; }
public DirectoryPersonLookupResponse setName(String value) { this.name = value; return this; }
public Boolean getIsActive() { return is_active; }
public DirectoryPersonLookupResponse setIsActive(Boolean value) { this.is_active = value; return this; }
}
}
Java DirectorySettingsAndActivePersonLookupRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Directory/Settings/{uuid} HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DirectorySettingsAndActivePersonLookupRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<uuid>String</uuid>
</DirectorySettingsAndActivePersonLookupRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DirectorySettingsAndPersonLookupResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses"> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <directory_settings> <bday>0001-01-01T00:00:00</bday> <bio>String</bio> <category>String</category> <church>String</church> <directory_uuid>String</directory_uuid> <field_of_work>String</field_of_work> <home_country>String</home_country> <interests>String</interests> <kids>String</kids> <quote>String</quote> <spouse_bday>0001-01-01T00:00:00</spouse_bday> <spouse_name>String</spouse_name> <waiver>String</waiver> <wedding_date>0001-01-01T00:00:00</wedding_date> </directory_settings> <directory_share_settings> <directory_uuid>String</directory_uuid> <share_address>false</share_address> <share_bday>false</share_bday> <share_bio>false</share_bio> <share_cell_phone>false</share_cell_phone> <share_church>false</share_church> <share_email>false</share_email> <share_field_of_work>false</share_field_of_work> <share_full_name>false</share_full_name> <share_home_country>false</share_home_country> <share_home_phone>false</share_home_phone> <share_interests>false</share_interests> <share_kids>false</share_kids> <share_picture>false</share_picture> <share_program>false</share_program> <share_quote>false</share_quote> <share_spouse_bday>false</share_spouse_bday> <share_spouse_name>false</share_spouse_name> <share_wedding_date>false</share_wedding_date> </directory_share_settings> <person_lookup> <DirectoryPersonLookupResponse> <directory_uuid>String</directory_uuid> <is_active>false</is_active> <name>String</name> </DirectoryPersonLookupResponse> </person_lookup> <regent_id>0</regent_id> <uuid>String</uuid> </DirectorySettingsAndPersonLookupResponse>