Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • GEODI Servis modeli
  • Enterprise Content Managment (ECM) 

  • Content Managment System (CMS) 

  • Document Content Managment (DMS) 
  • Sitemap xml, News Sitemap xml


Excerpt
Uygulamanız

Bir web uygulamasına sahip iseniz, uygulamanız sürekli ayakta değil

ise

ise  uygulamanızın GEODI tarafından tetiklenmesi için bu yöntemi kullanabilirsiniz

GEODI Servis Bağlantısı Standardı

...

bilgileri alınacak, sistem belirlenen zamanlarda uygulamadan servis üzerinde isteklerde bulunacaktır. 

*  Sık Sorulan Sorular linkindeki uyarılara ve feed api için önemli bilgilere buradan ulaşabilirsiniz.

...

GetContents
Açıklama

Uygulamadaki değişikleri takip etmek, içerikleri almak için kullanılan metoddur. Ayarlanan zamanlarda bu servis çağrılarak değişen, eklenen içerkiler ile ilgili bilgi alınır.

Aynı parametreleri alan ve aynı nesneyi dönen bir .net soap api hazırlanmışsa metod üzerine [ScriptMethod(ResponseFormat=ResponseFormat.Json)] attribute eklenmelidir.

İstek[ServiceURL]?m=GetContents
HttpMethodGET, POST
Beklenen Hatalar

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

Ek Bilgiler

Api Credential (NTLM,Digest,Basic Authentication) : GEODI için ayarlanmış api kullanıcısı. Uygulama bu kullanıcını yetkisi dahilindeki tüm içerikleri dönmelidir.

ChangeKey: İlk istekte tüm veriyi almak için iletilmez. İletilmesi halinde GEODI bu değerden sonra değişen içeriklerin dönmesini bekler. GEODI bu değeri son işlediği GetContents sonucundaki ChangeKey değerinden alır. Sonraki zamanlanmış taramada iletir. Uygulama geri döndüğünde değişimi takip için kullanabileceği herhangi bir değer gönderebilir.

Page : GetContents servisinden bir PageCount dönmüşse şu an hangi sayfanın istendiğini gösterir. Bu parametre ile CurrentKey parametreside iletilir

Beklenen Sonuç

Çoklu ContentObject JSON dönülmesi beklenir. Geodi ContentObject - İçerik Tanım Nesnesi#İçerikTanımNesnesi-Çokluİçerik adresinden nesne detaylarına ulaşılabilir

Örnekler


Code Block
languagejs
linenumberstrue
//Request : [ServiceURL]?m=GetContents + Credential
 {
	ChangeKey:'2015-05-07 12:10:00',
	PageCount:5,
	Contents : [
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1465',
			DisplayName:'Kontrol Listesi Dokümanı',
			ContentDate:'Mon, 04 May 2015 07:38:28 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1465',
			Permission : {  Permit : ['S-151...']  }
		},
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1496',
			DisplayName:'Örnek Çalışmalar Notu',
			Content: {
				Extension:'.txt',
				Content: 'Kızılay civarında yapılan çalışmalar eklenmemiş.'
			}
			Permission : { Permit : ['S-151...'] }
		}
	]
 }


Code Block
languagejs
linenumberstrue
//Request : [ServiceURL]?m=GetContents + Credential&CurrentKey=2015-05-07 12:10:00&Page=1
 {
	ChangeKey:'2015-05-07 12:10:00',
	PageCount:5,
	Contents : [
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1469',
			DisplayName:'Kontrol Listesi Dokümanı',
			ContentDate:'Mon, 04 May 2015 07:38:28 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1469',
			Permission : {  Permit : ['S-151...']  }
		}
	]
 }


Code Block
languagejs
linenumberstrue
//Request : [ServiceURL]?m=GetContents&ChangeKey=2015-05-07%2012%3A10%3A00 + Credential
 {
	ChangeKey:'2015-05-08 12:10:00',
 }

//Değişen yok


Code Block
languagejs
linenumberstrue
//Request : [ServiceURL]?m=GetContents&ChangeKey=2015-05-08%2012%3A10%3A00 + Credential
 {
	ChangeKey:'2015-05-09 12:10:00',
	Contents : [
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1811',
			DisplayName:'Yeni Doküman',
			ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1811',
			Permission : {   Permit : ['S-151...','Koordinator']  }
		}
	
	]
 }


Örnek uygumalar

...