Class MetarepController
In: app/controllers/metarep_controller.rb
Parent: ApplicationController

This controller governs all actions pertaining to the browser portion of the application.

Methods

Public Instance methods

Displays the browser layout. Tells the user he‘s logged in if he is logged in.

Reverts a description to the value stored in the selected change.

If the user is flagged, this will redirect him to change his password.

Make sure the tree locations table is not empty

Renders a blank page in the details iframe to start.

If this is a GET request, displays the editor. If this is a POST request, saves the user‘s edit to the database.

Expires the tree cache. This will rebuild the tree location mappings needed to link tree nodes with object id‘s and force a rebuilding of the tree on the next visit. A script visits this action on a regular basis.

Directs users to the correct action upon initial visit.

Builds the report part of the tree. Only to be called from tree_location_build

Searches all objects in the given context for the given search term. Reports all results, paginating with 10 per page.

Displays information about the selected column in the details iframe.

Shows the history of changes to this column object‘s description and sample data.

Displays information about the selected database in the details iframe.

Shows the history of changes to this database object‘s description.

Shows the history of changes to this report object‘s description and sample data.

Displays information about the selected schema in the details iframe.

Shows the history of changes to this schema object‘s description and title.

Shows information about either Subject Areas or Source Data in general

Displays information about the selected table in the details iframe.

Shows the history of changes to this table object‘s description.

Call this directly to store all information in the EDW in the change history. They will be commented with FULL STORE. The use of this is to revert to the last FULL STORE in case of a major site/database problem destroying all the site data. Individual reverts will also be possible; this is just to save time. Only a SuperAdmin or greater will succeed in calling this.

Displays the tree of objects.

Call this directly if new schemas, tables, or columns are added. This function rebuilds linkages to the tree.

Revert the element specified in this change to the version before this change‘s version. That is, perform an "undo" on this change. Unlike REVERT, this action DELETES changes until the desired version is reached.

Saves a column‘s description after a user edit.

Saves a column‘s sample data after a user edit.

Saves a database‘s description after a user edit.

Saves a report‘s attribute, given by the field parameter, after a user edit. The field is specified to avoid having to create too many functions, as there are many editable attributes in a report.

Saves a schema‘s description after a user edit.

Saves a schema‘s title after a user edit.

Saves a table‘s description after a user edit.

[Validate]