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 3 Next »





The feed method works when the application transmits the information to GEODI in case of changes in data or privileges. GEODI Functions as the opposite of the service connection method.

Bu yöntemde GEODI üzerinde veri atılmak istenilen katmana yetkili bir kullanıcı bilgisine sahip olunmalıdır.You can use this method to send as many content as you want at any time if your application is standing, if there are internal methods to trigger, or if you don't have a Web application

*  If you have a question you can the Frequently Asked Questions .


Multiple Content Feed

BulkFeed
DefinitionBulkFeed çağrısı ile içerikler GEODI'ye iletilir. GEODI çağrıyı bekletmeden sadece durum bilgisi döner. Çoklu içerik gönderimi için uygundur. Tek içerik göndermek için Feed metodu daha uygundur.
Request

[GEODIURL]/FeedHandler?op=BulkFeed&Content=[ContentJson]&UserSession=[Token]

  • UserSession: Sistem yöneticisinden alınacak Besleme yetkili Token belirtilmelidir. Generating a Geodi Token Sayfasındaki bilgiler ile Token elde edilebilir.
  • wsName (Opsiyonel): Sağlanan Token birden fazla projeyi beslemeye yetkili ise wsName iletilmelidir.
  • enumeratorID (Opsiyonel): Sağlanan Token birden fazla kaynağı (geodi enumerator) beslemeye yetkili ise enumeratorID iletilmelidir.
  • content: İçerik bilgilerin içeren bir JSON nesnesidir. Nesne detaylarına Geodi ContentObject - İçerik Tanım Nesnesi#İçerikTanımNesnesi-Çokluİçerik dokümanından ulaşılabilir
HttpMethodGET,POST
Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

470 Desteklenmeyen uzantı, Sunucu yapılandırma hatası

471 Content Reqired

481 This Token cannot access any workspaces

453 wsName Required - Token birden fazla projeyi besleyebiliyorsa wsname gereklidir.

452 enumeratorID Required  - Token birden fazla proje kaynağını besleyebiliyorsa wsname gereklidir.

480 wsname or enumeratorID is not accessable - Token yeterli yetkiye sahip değil


Return Value

OK metni döndürülür.

  • Taramanın başladığını gösterir.  Bir hata alınmamışsa tarama başlatılır. Sonucu kontrol etmek gerekli değildir.
Examples
//Request : 
[ServiceURL]/FeedHandler?op=BulkFeed&UserSession=[Token]&content=
 {
	Contents : 
	[
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1811',
			DisplayName:'Doküman1',
			ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1811&wsName={wsName}',
			Permission : {   Permit : ['S-151...','Role2','Role3']  },
            MetaData:  [
					 { Name:"Açıklama", Value:"Bu Doküman ...... ... " } 
				]

		},
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1812',
			DisplayName:'Doküman2',
			ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1812&wsName={wsName}',
			Permission : {   Permit : ['S-151...','Role2','Role3']  }
		},
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1813',
			DisplayName:'Doküman3',
			ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1813&wsName={wsName}',
			Permission : {   Permit : ['S-151...','Role2','Role3']  }
		},
	]
 }
Example application


Single Content Feed

Feed
DefinitionBulkFeed çağrısı ile içerikler GEODI'ye iletilir. GEODI çağrıyı bekletmeden sadece durum bilgisi döner. Çoklu içerik gönderimi için uygundur. Tek içerik göndermek için Feed metodu daha uygundur.
Request

[GEODIURL]/FeedHandler?op=Feed&Content=[ContentJson]&UserSession=[Token]

  • content: İçerik bilgilerin içeren bir JSON nesnesidir. Nesne detaylarına Geodi ContentObject - İçerik Tanım Nesnesi#İçerikTanımNesnesi-Tekİçerik dokümanından ulaşılabilir. Json iade fazla büyüyebilir. POST ile gönderilmesi tercih edilmelidir.
  • UserSession: Sistem yöneticisinden alınacak Besleme yetkili Token belirtilmelidir. [geodiurl]/Api adersinden Token oluşturma arayüzüne ulaşılabilir ( Geodi REST API )
  • wsName (Opsiyonel): Sağlanan Token birden fazla projeyi beslemeye yetkili ise wsName iletilmelidir.
  • enumeratorID (Opsiyonel): Sağlanan Token birden fazla kaynağı (geodi enumerator) beslemeye yetkili ise enumeratorID iletilmelidir.
HttpMethodGET,POST
Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

470 Desteklenmeyen uzantı, Sunucu yapılandırma hatası

471 Content Reqired

481 This Token cannot access any workspaces

453 wsName Required - Token birden fazla projeyi besleyebiliyorsa wsname gereklidir.

452 enumeratorID Required  - Token birden fazla proje kaynağını besleyebiliyorsa wsname gereklidir.

480 wsname or enumeratorID is not accessable - Token yeterli yetkiye sahip değil

Return Value

OK metni döndürülür.

  • Taramanın başladığını gösterir.  Bir hata alınmamışsa tarama başlatılır. Sonucu kontrol etmek gerekli değildir. 
Examples
//Request : 
[ServiceURL]/FeedHandler?op=Feed&UserSession=[Token]&content=
{ 
	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...','Role2','Role3']  }
}
Example applications

Sub Content Feed

BulkFeed
Definition

You can add sub-content to a content in GEODI. There are two methods for this.

If no authorization is defined for a child content, it inherits the rights from the parent. If authorization is defined, only the privileges defined are used. Does not inherit from the parent.


1. You can use the ParentContentIdOrURL value if you want to link the content you feed at any time to an earlier content.

  [
  		{
            ContentURL : '.../MyApplication/Content.php?id=1810',
            DisplayName:'Ana Doküman1',
            ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
            Permission : {   Permit : ['S-151...','Role2','Role3']  },
            MetaData:  [
                     { Name:"Açıklama", Value:"Bu Doküman ...... ... " }
                ]
         },
        {
            ContentURL : '.../MyApplication/Content.php?id=1811',
            DisplayName:'Doküman1',
            ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
            Permission : {   Permit : ['S-151...','Role2','Role3']  },
            MetaData:  [
                     { Name:"Açıklama", Value:"Bu Doküman ...... ... " }
                ],
			ParentContentIdOrURL :'.../MyApplication/Content.php?id=1810'
         }
	]

2. Subcontents of main content can be passed in bulk with the SubContents object.

[
  	{
        ContentURL : '.../MyApplication/Content.php?id=1810',
        DisplayName:'Ana Doküman1',
        ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
        Permission : {   Permit : ['S-151...','Role2','Role3']  },
        MetaData:  [
            { Name:"Açıklama", Value:"Bu Doküman ...... ... " }
        ]
    },
    SubContents: [ {
        ContentURL : '.../MyApplication/Content.php?id=1811',
        DisplayName:'Doküman1',
        ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
        Permission : {   Permit : ['S-151...','Role2','Role3']  },
        MetaData:  [
             { Name:"Açıklama", Value:"Bu Doküman ...... ... " }
        ]
    } ]
]





  • No labels