DigiOffice Gateway Web Services

<back to all web services

AddDocumentByEmailMessageId

Requires Authentication
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class AddDocumentByEmailMessageId
    {
        public String ItemId = null;
        public String EwsUrl = null;
        public String Token = null;
        public String DocumentId = null;
        public AddDocument documentToAdd = null;
        
        public String getItemId() { return ItemId; }
        public AddDocumentByEmailMessageId setItemId(String value) { this.ItemId = value; return this; }
        public String getEwsUrl() { return EwsUrl; }
        public AddDocumentByEmailMessageId setEwsUrl(String value) { this.EwsUrl = value; return this; }
        public String getToken() { return Token; }
        public AddDocumentByEmailMessageId setToken(String value) { this.Token = value; return this; }
        public String getDocumentId() { return DocumentId; }
        public AddDocumentByEmailMessageId setDocumentId(String value) { this.DocumentId = value; return this; }
        public AddDocument getDocumentToAdd() { return documentToAdd; }
        public AddDocumentByEmailMessageId setDocumentToAdd(AddDocument value) { this.documentToAdd = value; return this; }
    }

    public static class AddDocument
    {
        public UUID RegistrationProfileID = null;
        public UUID DocumentID = null;
        public UUID RootDocumentID = null;
        public Integer AssignToUserID = null;
        public Integer AssignToGroupID = null;
        public ArrayList<MetaDataField> MetaData = null;
        public Mailings Mailings = null;
        public ArrayList<AttachmentMailing> AttachmentsMailings = null;
        public UUID FileID = null;
        public DocInfoSilentMode SilentMode = null;
        public Boolean updateStorageSystem = null;
        public Integer MessageQueueId = null;
        
        public UUID getRegistrationProfileID() { return RegistrationProfileID; }
        public AddDocument setRegistrationProfileID(UUID value) { this.RegistrationProfileID = value; return this; }
        public UUID getDocumentID() { return DocumentID; }
        public AddDocument setDocumentID(UUID value) { this.DocumentID = value; return this; }
        public UUID getRootDocumentID() { return RootDocumentID; }
        public AddDocument setRootDocumentID(UUID value) { this.RootDocumentID = value; return this; }
        public Integer getAssignToUserID() { return AssignToUserID; }
        public AddDocument setAssignToUserID(Integer value) { this.AssignToUserID = value; return this; }
        public Integer getAssignToGroupID() { return AssignToGroupID; }
        public AddDocument setAssignToGroupID(Integer value) { this.AssignToGroupID = value; return this; }
        public ArrayList<MetaDataField> getMetaData() { return MetaData; }
        public AddDocument setMetaData(ArrayList<MetaDataField> value) { this.MetaData = value; return this; }
        public Mailings getMailings() { return Mailings; }
        public AddDocument setMailings(Mailings value) { this.Mailings = value; return this; }
        public ArrayList<AttachmentMailing> getAttachmentsMailings() { return AttachmentsMailings; }
        public AddDocument setAttachmentsMailings(ArrayList<AttachmentMailing> value) { this.AttachmentsMailings = value; return this; }
        public UUID getFileID() { return FileID; }
        public AddDocument setFileID(UUID value) { this.FileID = value; return this; }
        public DocInfoSilentMode getSilentMode() { return SilentMode; }
        public AddDocument setSilentMode(DocInfoSilentMode value) { this.SilentMode = value; return this; }
        public Boolean isUpdateStorageSystem() { return updateStorageSystem; }
        public AddDocument setUpdateStorageSystem(Boolean value) { this.updateStorageSystem = value; return this; }
        public Integer getMessageQueueId() { return MessageQueueId; }
        public AddDocument setMessageQueueId(Integer value) { this.MessageQueueId = value; return this; }
    }

    @DataContract
    public static class MetaDataField
    {
        @DataMember
        public UUID ID = null;

        @DataMember
        public UUID DocumentVeldID = null;

        @DataMember
        public String Name = null;

        @DataMember
        public String Label = null;

        @DataMember
        public String Datatype = null;

        @DataMember
        public String PrintLabel = null;

        @DataMember
        public String Entity = null;

        @DataMember
        public String PrintValue = null;

        @DataMember
        public String RegistrationValue = null;

        @DataMember
        public String SPSiteColumnName = null;

        @DataMember
        public String ShadowName = null;

        @DataMember
        public String ShadowDatatype = null;

        @DataMember
        public String ShadowSPSiteColumnName = null;

        @DataMember
        public String ShadowSPSiteColumnRegistrationValue = null;

        @DataMember
        public String ShadowRegistrationValue = null;

        @DataMember
        public Boolean IsKeyField = null;

        @DataMember
        public Boolean KopierenBijNieuweVersie = null;
        
        public UUID getId() { return ID; }
        public MetaDataField setId(UUID value) { this.ID = value; return this; }
        public UUID getDocumentVeldID() { return DocumentVeldID; }
        public MetaDataField setDocumentVeldID(UUID value) { this.DocumentVeldID = value; return this; }
        public String getName() { return Name; }
        public MetaDataField setName(String value) { this.Name = value; return this; }
        public String getLabel() { return Label; }
        public MetaDataField setLabel(String value) { this.Label = value; return this; }
        public String getDatatype() { return Datatype; }
        public MetaDataField setDatatype(String value) { this.Datatype = value; return this; }
        public String getPrintLabel() { return PrintLabel; }
        public MetaDataField setPrintLabel(String value) { this.PrintLabel = value; return this; }
        public String getEntity() { return Entity; }
        public MetaDataField setEntity(String value) { this.Entity = value; return this; }
        public String getPrintValue() { return PrintValue; }
        public MetaDataField setPrintValue(String value) { this.PrintValue = value; return this; }
        public String getRegistrationValue() { return RegistrationValue; }
        public MetaDataField setRegistrationValue(String value) { this.RegistrationValue = value; return this; }
        public String getSpSiteColumnName() { return SPSiteColumnName; }
        public MetaDataField setSpSiteColumnName(String value) { this.SPSiteColumnName = value; return this; }
        public String getShadowName() { return ShadowName; }
        public MetaDataField setShadowName(String value) { this.ShadowName = value; return this; }
        public String getShadowDatatype() { return ShadowDatatype; }
        public MetaDataField setShadowDatatype(String value) { this.ShadowDatatype = value; return this; }
        public String getShadowSPSiteColumnName() { return ShadowSPSiteColumnName; }
        public MetaDataField setShadowSPSiteColumnName(String value) { this.ShadowSPSiteColumnName = value; return this; }
        public String getShadowSPSiteColumnRegistrationValue() { return ShadowSPSiteColumnRegistrationValue; }
        public MetaDataField setShadowSPSiteColumnRegistrationValue(String value) { this.ShadowSPSiteColumnRegistrationValue = value; return this; }
        public String getShadowRegistrationValue() { return ShadowRegistrationValue; }
        public MetaDataField setShadowRegistrationValue(String value) { this.ShadowRegistrationValue = value; return this; }
        public Boolean getIsKeyField() { return IsKeyField; }
        public MetaDataField setIsKeyField(Boolean value) { this.IsKeyField = value; return this; }
        public Boolean isKopierenBijNieuweVersie() { return KopierenBijNieuweVersie; }
        public MetaDataField setKopierenBijNieuweVersie(Boolean value) { this.KopierenBijNieuweVersie = value; return this; }
    }

    public static class Mailings
    {
        
    }

    public static class AttachmentMailing
    {
        
    }

    public static enum DocInfoSilentMode
    {
        Off,
        AllowUserInteraction,
        DoNotAllowUserInteraction;
    }

    public static class DocumentResponse
    {
        public UUID DocumentID = null;
        public String DocumentNr = null;
        public UUID RootDocumentID = null;
        public ArrayList<MetaDataField> MetaData = null;
        public ArrayList<Bookmark> Bookmarks = null;
        public Mailings Mailings = null;
        public ArrayList<AttachmentMailing> AttachmentsMailings = null;
        public IInformationMessages Messages = null;
        public String SourceDocumentPath = null;
        public String DestinationDocumentPath = null;
        public String SharePointContentTypeName = null;
        public Boolean ZIPAttachments = null;
        
        public UUID getDocumentID() { return DocumentID; }
        public DocumentResponse setDocumentID(UUID value) { this.DocumentID = value; return this; }
        public String getDocumentNr() { return DocumentNr; }
        public DocumentResponse setDocumentNr(String value) { this.DocumentNr = value; return this; }
        public UUID getRootDocumentID() { return RootDocumentID; }
        public DocumentResponse setRootDocumentID(UUID value) { this.RootDocumentID = value; return this; }
        public ArrayList<MetaDataField> getMetaData() { return MetaData; }
        public DocumentResponse setMetaData(ArrayList<MetaDataField> value) { this.MetaData = value; return this; }
        public ArrayList<Bookmark> getBookmarks() { return Bookmarks; }
        public DocumentResponse setBookmarks(ArrayList<Bookmark> value) { this.Bookmarks = value; return this; }
        public Mailings getMailings() { return Mailings; }
        public DocumentResponse setMailings(Mailings value) { this.Mailings = value; return this; }
        public ArrayList<AttachmentMailing> getAttachmentsMailings() { return AttachmentsMailings; }
        public DocumentResponse setAttachmentsMailings(ArrayList<AttachmentMailing> value) { this.AttachmentsMailings = value; return this; }
        public IInformationMessages getMessages() { return Messages; }
        public DocumentResponse setMessages(IInformationMessages value) { this.Messages = value; return this; }
        public String getSourceDocumentPath() { return SourceDocumentPath; }
        public DocumentResponse setSourceDocumentPath(String value) { this.SourceDocumentPath = value; return this; }
        public String getDestinationDocumentPath() { return DestinationDocumentPath; }
        public DocumentResponse setDestinationDocumentPath(String value) { this.DestinationDocumentPath = value; return this; }
        public String getSharePointContentTypeName() { return SharePointContentTypeName; }
        public DocumentResponse setSharePointContentTypeName(String value) { this.SharePointContentTypeName = value; return this; }
        public Boolean isZipAttachments() { return ZIPAttachments; }
        public DocumentResponse setZipAttachments(Boolean value) { this.ZIPAttachments = value; return this; }
    }

    public static class Bookmark
    {
        public Boolean RemoveLastBreak = null;
        public Boolean ReplaceOnChange = null;
        public Boolean IsDynamic = null;
        
        public Boolean isRemoveLastBreak() { return RemoveLastBreak; }
        public Bookmark setRemoveLastBreak(Boolean value) { this.RemoveLastBreak = value; return this; }
        public Boolean isReplaceOnChange() { return ReplaceOnChange; }
        public Bookmark setReplaceOnChange(Boolean value) { this.ReplaceOnChange = value; return this; }
        public Boolean getIsDynamic() { return IsDynamic; }
        public Bookmark setIsDynamic(Boolean value) { this.IsDynamic = value; return this; }
    }

    public static interface IInformationMessages
    {
    }

}

Java AddDocumentByEmailMessageId DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/AddDocumentByEmailMessageId HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ItemId: String,
	EwsUrl: String,
	Token: String,
	DocumentId: String,
	documentToAdd: 
	{
		DocumentID: 00000000-0000-0000-0000-000000000000,
		RootDocumentID: 00000000-0000-0000-0000-000000000000,
		AssignToUserID: 0,
		AssignToGroupID: 0,
		MetaData: 
		[
			{
				ID: 00000000-0000-0000-0000-000000000000,
				DocumentVeldID: 00000000-0000-0000-0000-000000000000,
				Name: String,
				Label: String,
				Datatype: String,
				PrintLabel: String,
				Entity: String,
				PrintValue: String,
				RegistrationValue: String,
				SPSiteColumnName: String,
				ShadowName: String,
				ShadowDatatype: String,
				ShadowSPSiteColumnName: String,
				ShadowSPSiteColumnRegistrationValue: String,
				ShadowRegistrationValue: String,
				IsKeyField: False,
				KopierenBijNieuweVersie: False
			}
		],
		Mailings: {},
		AttachmentsMailings: 
		[
			{
				
			}
		],
		FileID: 00000000-0000-0000-0000-000000000000,
		SilentMode: Off,
		updateStorageSystem: False,
		MessageQueueId: 0
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DocumentNr: String,
	MetaData: 
	[
		{
			ID: 00000000-0000-0000-0000-000000000000,
			DocumentVeldID: 00000000-0000-0000-0000-000000000000,
			Name: String,
			Label: String,
			Datatype: String,
			PrintLabel: String,
			Entity: String,
			PrintValue: String,
			RegistrationValue: String,
			SPSiteColumnName: String,
			ShadowName: String,
			ShadowDatatype: String,
			ShadowSPSiteColumnName: String,
			ShadowSPSiteColumnRegistrationValue: String,
			ShadowRegistrationValue: String,
			IsKeyField: False,
			KopierenBijNieuweVersie: False
		}
	],
	Bookmarks: 
	[
		{
			RemoveLastBreak: False,
			ReplaceOnChange: False,
			IsDynamic: False
		}
	],
	Mailings: {},
	AttachmentsMailings: 
	[
		{
			
		}
	],
	SourceDocumentPath: String,
	DestinationDocumentPath: String,
	SharePointContentTypeName: String,
	ZIPAttachments: False
}