Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Galaxy configuration

  • Last UpdatedJul 23, 2024
  • 1 minute read

IDE publishes a database related service called “IGalaxyConfiguration” to allow extensions query and configure galaxy database programmatically. It can be accessed from the service pool. Using this service one can perform various galaxy operations like, creating object instances, deriving templates, deleting template/instances, renaming template/instances, deploying instances, getting updates upon galaxy changes and so on.

The service also provides functionality for the extensions to store and retrieve information data per galaxy and per user basis. Extensions can leverage this mechanism to store/retrieve its own specific data like, last user selected object, view status and so on.

Following is an example of how a typical extension would save/retrieve user preferences to/from the galaxy.

IGalaxyConfiguration gc=m_site.Services[typeof(IGalaxyConfiguration)]

as IGalaxyConfiguration;

if(gc != null)

{

// Retrieve user preferences for this extension.

byte [] buffer = gc.GetUserPreference(this.ToString());

// TODO: Make some changes to the user preferences.

// Store user preferences for this extension.

gc.SetUserPreference(this.ToString(), buffer);

}

TitleResults for “How to create a CRG?”Also Available in