Changes between Version 4 and Version 5 of GritsGlycovaultManager


Ignore:
Timestamp:
11/07/2014 12:39:56 AM (7 years ago)
Author:
shan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GritsGlycovaultManager

    v4 v5  
    55* '''GroupType''' (vaguely similar to '''DescriptorGroup''' in Grits)
    66* '''PhysicalObjectType''' (vaguely similar to '''Template''' in Grits)
     7* '''SourceSample''' (vaguely similar to '''Component''' Grits)
    78
    89The main GlycovaultManager class inherits '''FormEditor''' and consists of three pages
     
    1011* '''GroupTypeManagementPage'''
    1112* '''PhysicalObjectTypeManagementPage'''
     13* '''SourceSampleManagementPage'''
    1214
    1315All the above pages inherits '''AbstractGlycovaultManagementPage''' which in turn inherits '''AbstractmanagementPage''' from Sample Manager in the sample plugin.
    1416
    15 Similar to SampleManager, this also has the same architecture where the '''RightSideSection''' is the pareant class of '''RightSideSectionGlycoVault'''. This '''RightSideSectionGlycoVault''' has additional field called '''GlycovaultObjectWithFeatures[] cachedObjects''' and overwrites '''public void setSelectedObject(ClassesWithFeatures selectedObject)'''. While selecting the object for right side display it checks if the selected object was stored in cache or else downloads it from glycaovault and stores it in the cache. the checking for cache is only done for objects which have already been submitted to the Glycovault and are not editable anymore. The following piece of code is added here :
     17Similar to SampleManager, this also has the same architecture where the '''RightSideSection''' is the parent class of '''RightSideSectionGlycoVault'''. This '''RightSideSectionGlycoVault''' has additional field called '''GlycovaultObjectWithFeatures[] cachedObjects''' and overwrites '''public void setSelectedObject(ClassesWithFeatures selectedObject)'''. While selecting the object for right side display it checks if the selected object was stored in cache or else downloads it from glycaovault and stores it in the cache. the checking for cache is only done for objects which have already been submitted to the Glycovault and are not editable anymore. The following piece of code is added here :
    1618
    1719{{{
     
    5658}}}
    5759
    58 '''RightSideSectionGlycoVault''' is further inherited by '''RightSideSimpleTypeSection''', '''RightSidePhysicalObjectTypeSection''', '''RightSideGroupTypeSection'''. Each of these classes have their own implementation for downloading the selectedObject (by using its name) and submit action for submitting their respective items.
     60'''RightSideSectionGlycoVault''' is further inherited by '''RightSideSimpleTypeSection''', '''RightSideGroupTypeSection''', '''RightSidePhysicalObjectTypeSection''' and '''RightSideSourceSampleSection'''. Each of these classes have their own implementation for downloading the selectedObject (by using its name) and submit action for submitting their respective items.
    5961
     62
     63== RightSideSourceSampleSection ==
     64
     65Relation between PhysicalObjectType and List of Descriptors in the Sample.
     66One can preload the list of descriptors into the tree that displays its "isDescribedBy" members. One can add only the descriptors with DescriptorType that are members of the selected PhysicalObjectType. If the descriptorType is not there in the physicalObjectType then user decides if the he/she wants to keep the template or else can cancel the addition of this new descriptor.
     67