The configured grants.
Whether or not the current search text maps to a valid moniker.
The monikers that have grants on the current document.
Gets the selected moniker based off the current search text. If the text does not match the selected moniker, it will search through the last search results for monikers.
Whether a given moniker kind is a user kind.
The moniker kind.
Whether or not the kind is a user kind.
Checks whether or not the moniker already exists based off its ID and aliases.
The moniker to check whether it exists.
Whether or not the moniker exists.
Update the view model with the document of the given ID.
Updates the monikers list based off the given grants.
The grants to build the monikers from.
Add a grant to the document.
The global ID of the grant
The kind of grant.
The grant that was added
Add a moniker, updating the document with a grant for the moniker.
Binds a handler to an Observable or to a dojo.connect. Binding to an Observable:
``` this.auto(someObservable, function (newValue) { });
with explicit scope:
this.auto(someObservable, this, function (newValue) { });
Alternately, pass an event name as a string to use dojo.connect:
this.auto(window, "onclick", function () { }); ```
Either an Observable (for observable bindings) or a regular object (if arg1 is a string)
If arg0 is an Observable, a function or scope object. Otherwise, an event name (to use with dojo.connect).
If arg0 is an Observable, a function handler.
Destroys the object completely
Disposes any bindings tracked by this object.
Gets a language resource from the Application's resource dictionary, given a key, and optional locale. Returns null if the resource does not exist.
The locale of the resource to fetch. Defaults to the current application locale.
Load a document's grants from the document store and updates the view model state.
The ID of the document to load.
Override or attach to provide custom clean-up behaviour.
Set the view model state to defaults.
Reset the search options.
Search for monikers using a given search term. These results will be limited by the currently selected moniker kind (users or roles).
The search term to search monikers with.
A promise containing a list of monikers.
Tracks a subscription to an {@link geocortex.framework.commands.Command}, disposing it when this object is disposed with the destroy method.
Tracks a subscription to an {@link geocortex.framework.events.Event}, disposing it when this object is disposed with the destroy method.
Update the moniker by updating the document grants.
The model of the moniker being updated.
The kind of grant to add to the document for the given moniker.
Validates the search input.
The underlying document whose grants are being edited.