[mapguide-trac] #672: Resource definitions - adding ResourceName property

MapGuide Open Source trac_mapguide at osgeo.org
Sat Aug 23 11:29:17 EDT 2008


#672: Resource definitions - adding ResourceName property
-------------------------+--------------------------------------------------
 Reporter:  MaksimS      |         Owner:  ksgeograf
     Type:  enhancement  |        Status:  assigned 
 Priority:  low          |     Milestone:           
Component:  Maestro      |       Version:           
 Severity:  trivial      |    Resolution:           
 Keywords:               |   External_id:           
-------------------------+--------------------------------------------------
Changes (by ksgeograf):

  * status:  new => assigned
  * version:  2.0.1 =>

Comment:

 I find it a bit confusing that there are all these functions that
 manipulate the resourceId.

 The problem with adding a property like you propose is that it quickly
 leads to other properties, such as "ResourceExtension", "ResourcePath",
 "ResourceNameAndPath" and "ResourceNameInSession".

 .Net uses the System.IO.Path class to store static functions for
 manipulation on paths.

 I was thinking of creating a class for the ResourceId (much like the
 MgResourceId class), and let that class have all the properties and
 functions. If possible it could be automatically convertible to and from a
 string.

 I will try to see if I can make such a class, and implement it everywhere.
 Otherwise I will move all those manipulation into a static class called
 "ResourceIdentifier".

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/672#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list