Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

You can use this object to provide more detailed content to Geodi Data Extraction API (Formatter) and Geodi Feed Api (FeedHandler) services.

With the definitions to be sent, privileges, special display name, special display address of the content, path, url or whole content (byte []) from which the content will be transmitted can be forwarded to the service.

 All properties of objects can be accessed via Geodi using Single Content - ContentObject  and Multiple Content - IntegrationObject  addresses.


Single Content


		{ 
			Mode:0, 
			ContentURL : '',
			DisplayName:'',
			ContentDate:'',
			ViewURL : '',
			Thumbnail : '',
			FastViewHTML:'',
			MetaData :  [ { Name:'',  GType:'', Value: null, DDoubleValue:double , DText:'', DAttributes: {Key:Value,Key:Value} } ],
			Content : {
				Extension: '',
				ContentID:'',
				Content : '',
				CurrentSections :[{TableName:'',ColumnName:'',Section:0, SectionGroupID:'',Attributes : {Key:Value,Key:Value}}],
				Properties :[{TableName:'',ColumnName:'',Section:0, SectionGroupID:'',Attributes : {Key:Value,Key:Value}}],
				Splitters :  [
							{
								SType:'string',
								Text:'',
								SectionIndex:-1,
								PropertiesIndex:-1,
							},
							{
								SType:'string[]',
								Splitters : []
								SectionIndex:-1,
								PropertiesIndex:-1,
							},
							{
								SType:'object',
								Objects:[
									{GType:'', Value: null, DDoubleValue:double , DText:'', DAttributes: {Key:Value,Key:Value} }
								],
								SectionIndex:-1,
								PropertiesIndex:-1,
							}
						]
						},
			Permission : {
					Permit[],
					Deny[]
				}
		}


  • Mode (int - Optional) : It is the information of the transaction. Values 0 (Default): Added, Changed 1: Deleted, 2: Only Authorization Change
  • ContentURL (string) :  It is the path of content. Must be unique, show content. The path to the file on the URL or Disk can be exported.
  • DisplayName(string) : The name of the image to be displayed in the search result.
  • ContentDate (GMT string - Optional): Content Date
  • ViewURL (string- Optional) : The display address of the content. If not specified, GEODI shows the content without resorting to the application with the viewer. When specified, directs the user to this URL to access the content. The scanned document and the opened document are different. The following definitions are available within the URL
    • {wsName} : Project name defined on GEODI.
    • {unc} : Content.Content_Id value passed during feed
    • {viewParam} : Document opening parameters sent to GEODI Viewer.
    • {user} : Aktif kullanıcı. ( As this is a redirect process it will work with GET. The user can modify the browser. This value should not be relied upon, and its own user authentication mechanisms should be used by the application. )
    • Example usage : ViewURL:".../MyViewer.aspx?ID={unc}&wsName={wsName}"
  • Thumbnail  (string - Optional): This is the preview image you want to show in the search results. With base64: ... you can return the image or the image path directly.
  • FastViewHTML (string - Optional): If specified, the search result is displayed with the content.
  • TextURL (string - Optional) :  Tanımlanmışsa ve boş sonuç dönmezse dokümana ait metin içeriği almakta kullanılır. Sonuç dönerse ContentURL çağrısı yapılmaz.
  • TextData (string[] - Optional): Ek metin bilgileri iletilebilir. OCR veya farklı yollarla elde edilmiş aranabilir metin içerik beklenir. array içerisindeki her öğe bir sayfaya karşılık gelmelidir. Eğer sayfalama bilinmiyorsa sadece 1 eleman gönderilmeli, iletilecek tüm metin veriyi içermelidir. TextURL özelliğinden farklı olarak iletilen değerler içeriğe eklenir. ( ContentURL + TextData veya TextURL+ TextData şeklinde işlenir )
  • MetaData (object array- Optional) : İçeriğindeki Key/Value değerleri'de arama sonuçlarına yansıtılır. Contet içeriğinde ayrıca belirtilmesi gerekmez.
    • Name (string): Meta veri anahtar adı.
    • Value : Meta veri değeri
    • GType (string-Optional): Value<Type> , Type değerleri alabilir. Type için System.TypeCode , Geom değerleri kullanılabilir. Varsayılan değeri String'dir
    • DDoubleValue (advanced- Optional):: Value<Type> tipindeki değerler için normalize edilmiş değerdir.
    • DText (advanced- Optional):: Value<Type> tipindeki değerler string değerdir.
    • DAttributes (advanced- Optional):: Value<Type> tipindeki değerler için ek bilgilerdir. ItemType değerine KM, Parcel, Name gibi değerler atılarak bu değerin mutlaka kmi isim veya parsel olarak kabul eidlmesi sağlanabilir.
  • Content (opject - Optional) : Belirtilmesi durumunda ContentURL'e dönüş yapılmadan iletilen içerik kullanılır.
    • Extension (string): İçerik uzantısıdır. .pdf, .zip, .rar, .dwg gibi değerler kullanılabilir. Bir form içeriği iletiliyorsa .form değeri kullanılabilir.
    • Content (Optional): base64 formatında byte[] içerik veya doğrudan düz metin verilebilir.  ContentUrl sadece id olarak kullanılır.
    • ContentForcedBytes(Optional) :  içerik byte[] olarak verilebilir. tanımlanmışsa Content.Content yok sayılır. ContentUrl sadece id olarak kullanılır.
    • CurrentSections (advanced- section - Optional):  Spliterlara ait Section bilgisini array olarak içerir. İçeriğe geri dönüş için kullanılan bilgilerdir. (Kaçıncı sayfada, Hangi hücrede )
    • Properties (advanced- section - Optional):  Spliterlara ait ek bilgileri array olarak içerir. Recognizer'lar için kesinleştirme bilgileri içerir. Parsel, Ad, Soyad kolon veya katmanındaki içerikler için özel işlemler yapılır. ( Hangi tabloda, Hangi katmanda, Hangi kolonda )
    • Splitters (advanced- Optional):  İçerikten parçalarnmış değerlerdir. Satırlar, paragraflar, sayfalar olabilir. string, string[], object[] SpliterType değerleri kullanılabilir. Her tip farklı özellikler içerir. Spliter içerisindeki GType değeri MetaData içindeki ile aynıdır.
  • Permission (object- Optional): Root Permission ile aynı özelliklere sahiptir. Dosya bazında özelleştirilmiş yetkiler tanımlamakta kullanılır. Root üzerindeki Permission ile birlikte çalışır.


Multiple Contnet


 {
	PageCount:0,
	ChangeKey:'',
	Permission : {
					Permit[],
					Deny[]
				},
	Contents : [ ContentObject,  ContentObject , ... ]
 }
    • PageCount (int - Optional): Bir servis sonucunda dönecek içerik sayısı fazla ile uygulama ilk GetContents isteğinde sayfa sayısını dönerek kaynak kullanımını azaltabilir. sunucu durumu, servis ile dönecek içerik boyutuna, iç yetki mekanizmasına göre karar verebilir. Tümünü bir defada dönebileceği gibi sayfa sayfada gönderebilir.
    • ChangeKey (string): Bir sonraki zamanlanmış taramada ChangeKey olarak uygulamaya iletilecek değerdir.
    • Permission (object- Optional): Belirtilmesi durumunda dokümana özel görüntüleme yetkileri kullanılır. GEODI servis ile elde edilen verilerde içeriği değiştirme, düzenleme, silme özelliği sağlamaz. Bu servis çağrısında Contents ile dönen tüm içerikler bu yetkilere sahip olacaktır. Yetkilendirme kullanıldığında yetki değişimlerinden etkilenen dokümanlarda GetContent listesine dönmelidir. Sadece yetkilerinin değiştiği biliniyorsa Mode:2 değeri ayarlanmalıdır.
        • Permit (string array- Optional): İzin verilen kullanıcı/rol/grup listesidir.
        • Deny (string array- Optional): Yasaklanan kullanıcı/rol/grup listesidir.
    • Contents (object array): Content nesnesi dizisidir.
  • No labels