mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +00:00
[JSDoc] Add annotations
Bulk-add JSDoc annotations, WTD-1482.
This commit is contained in:
@ -31,6 +31,8 @@ define(
|
||||
* @param {PolicyService} policyService the service which provides
|
||||
* policy decisions
|
||||
* @param {ActionService} actionService the service to decorate
|
||||
* @constructor
|
||||
* @memberof platform/policy
|
||||
*/
|
||||
function PolicyActionDecorator(policyService, actionService) {
|
||||
return {
|
||||
@ -40,6 +42,7 @@ define(
|
||||
* are deemed inapplicable by policy.
|
||||
* @param context the context in which the action will occur
|
||||
* @returns {Action[]} applicable actions
|
||||
* @memberof platform/policy.PolicyActionDecorator#
|
||||
*/
|
||||
getActions: function (context) {
|
||||
// Check if an action is allowed by policy.
|
||||
@ -55,4 +58,4 @@ define(
|
||||
|
||||
return PolicyActionDecorator;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -30,6 +30,7 @@ define(
|
||||
* Provides an implementation of `policyService` which consults
|
||||
* various policy extensions to determine whether or not a specific
|
||||
* decision should be allowed.
|
||||
* @memberof platform/policy
|
||||
* @constructor
|
||||
*/
|
||||
function PolicyProvider(policies) {
|
||||
@ -74,6 +75,7 @@ define(
|
||||
* was disallowed (if its disallowed)
|
||||
* @returns {boolean} true if the decision is allowed,
|
||||
* otherwise false.
|
||||
* @memberof platform/policy.PolicyProvider#
|
||||
*/
|
||||
allow: function (category, candidate, context, callback) {
|
||||
var policyList = policyMap[category] || [],
|
||||
@ -103,4 +105,4 @@ define(
|
||||
|
||||
return PolicyProvider;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -31,6 +31,8 @@ define(
|
||||
* @param {PolicyService} policyService the service which provides
|
||||
* policy decisions
|
||||
* @param {ViewService} viewService the service to decorate
|
||||
* @constructor
|
||||
* @memberof platform/policy
|
||||
*/
|
||||
function PolicyActionDecorator(policyService, viewService) {
|
||||
return {
|
||||
@ -40,6 +42,7 @@ define(
|
||||
* are deemed inapplicable by policy.
|
||||
* @param {DomainObject} the domain object to view
|
||||
* @returns {View[]} applicable views
|
||||
* @memberof platform/policy.PolicyViewDecorator#
|
||||
*/
|
||||
getViews: function (domainObject) {
|
||||
// Check if an action is allowed by policy.
|
||||
@ -55,4 +58,4 @@ define(
|
||||
|
||||
return PolicyActionDecorator;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user