[mapguide-users] Enumerating resources from Session repository

Zac Spitzer zac.spitzer at gmail.com
Mon Jan 16 06:54:36 EST 2012


I think we should enable this as an option which can be turned off

On Tue, Nov 20, 2007 at 2:49 AM, Maksim Sestic <max at geoinova.com> wrote:
>
> It explains the problem then, thank you for the clarification. Actually, I
> can browse down the library resources and "poke" their definitions in a
> session (well, session map) repository to see whether they exist there, to
> re-create some sort of their initial state. The rest of accessible resources
> found in a session map should be dynamically created ones.
>
> Regards,
> Maksim Sestic
>
>
>
> Kenneth, GEOGRAF A/S wrote:
>>
>> This has been discussed on the internals list:
>> http://trac.osgeo.org/mapguide/ticket/168
>>
>> Currently it is not supported and probably will not be supported.
>>
>> The session repository only contains items that has been placed there
>> explicitly.
>> If you save a layer there, you can read it, but there are no copies of
>> layers from the Library.
>>
>> This means that you have to keep a list of all items you place there.
>> If you are looking for the runtime map, it is saved as "Session:" +
>> sessionid + "//" + mapname + ".Map".
>> It is a dummy Xml, but it has ResourceData with binary representaions of
>> the Xml and MapDefinition.
>>
>> Anything other than the RuntimeMap can be saved in the Library if you
>> want to explore it.
>>
>> Regards, Kenneth, GEOGRAF A/S
>>
>>
>>
>> Maksim Sestic skrev:
>>> Is it possible to enumerate resources from a Session-based repository,
>>> using
>>> MgServerResourceService.EnumerateResources() method?
>>>
>>> I guess not (ServerResourceService.cpp):
>>>
>>> if (!resource->IsRepositoryTypeOf(MgRepositoryType::Library))
>>>     {
>>>         throw new MgInvalidRepositoryTypeException(
>>>             L"MgServerResourceService.EnumerateResources",
>>>             __LINE__, __WFILE__, NULL, L"", NULL);
>>>     }
>>>
>>> I need to enumerate available resources found within a Session, still
>>> have
>>> no clue how to browse down the session repository. In my understanding,
>>> each
>>> session carries actual instances of library repository definitions
>>> (objects). So I should be able to browse them then. I guess I'm missing
>>> something here :-)
>>>
>>> Regards,
>>> Maksim Sestic
>>>
>>>
>>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Enumerating-resources-from-Session-repository-tf4836077s16610.html#a13838672
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-users mailing list