2016-01-15 01:08:19 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
|
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
* Administration. All rights reserved.
|
|
|
|
*
|
|
|
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* Open MCT Web includes source code licensed under additional open source
|
|
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
|
|
* this source code distribution or the Licensing information page available
|
|
|
|
* at runtime from the About dialog for additional information.
|
|
|
|
*****************************************************************************/
|
|
|
|
/*global define*/
|
|
|
|
|
|
|
|
define([
|
|
|
|
"./src/objects/DomainObjectProvider",
|
|
|
|
"./src/capabilities/CoreCapabilityProvider",
|
|
|
|
"./src/models/StaticModelProvider",
|
|
|
|
"./src/models/RootModelProvider",
|
|
|
|
"./src/models/ModelAggregator",
|
2016-03-21 17:18:06 +00:00
|
|
|
"./src/models/ModelCacheService",
|
2016-01-15 01:08:19 +00:00
|
|
|
"./src/models/PersistedModelProvider",
|
|
|
|
"./src/models/CachingModelDecorator",
|
|
|
|
"./src/models/MissingModelDecorator",
|
|
|
|
"./src/types/TypeProvider",
|
|
|
|
"./src/actions/ActionProvider",
|
|
|
|
"./src/actions/ActionAggregator",
|
|
|
|
"./src/actions/LoggingActionDecorator",
|
|
|
|
"./src/views/ViewProvider",
|
|
|
|
"./src/identifiers/IdentifierProvider",
|
|
|
|
"./src/capabilities/CompositionCapability",
|
|
|
|
"./src/capabilities/RelationshipCapability",
|
|
|
|
"./src/types/TypeCapability",
|
|
|
|
"./src/actions/ActionCapability",
|
|
|
|
"./src/views/ViewCapability",
|
|
|
|
"./src/capabilities/PersistenceCapability",
|
|
|
|
"./src/capabilities/MetadataCapability",
|
|
|
|
"./src/capabilities/MutationCapability",
|
|
|
|
"./src/capabilities/DelegationCapability",
|
|
|
|
"./src/capabilities/InstantiationCapability",
|
|
|
|
"./src/services/Now",
|
|
|
|
"./src/services/Throttle",
|
|
|
|
"./src/services/Topic",
|
|
|
|
"./src/services/Contextualize",
|
|
|
|
"./src/services/Instantiate",
|
|
|
|
'legacyRegistry'
|
|
|
|
], function (
|
|
|
|
DomainObjectProvider,
|
|
|
|
CoreCapabilityProvider,
|
|
|
|
StaticModelProvider,
|
|
|
|
RootModelProvider,
|
|
|
|
ModelAggregator,
|
2016-03-21 17:18:06 +00:00
|
|
|
ModelCacheService,
|
2016-01-15 01:08:19 +00:00
|
|
|
PersistedModelProvider,
|
|
|
|
CachingModelDecorator,
|
|
|
|
MissingModelDecorator,
|
|
|
|
TypeProvider,
|
|
|
|
ActionProvider,
|
|
|
|
ActionAggregator,
|
|
|
|
LoggingActionDecorator,
|
|
|
|
ViewProvider,
|
|
|
|
IdentifierProvider,
|
|
|
|
CompositionCapability,
|
|
|
|
RelationshipCapability,
|
|
|
|
TypeCapability,
|
|
|
|
ActionCapability,
|
|
|
|
ViewCapability,
|
|
|
|
PersistenceCapability,
|
|
|
|
MetadataCapability,
|
|
|
|
MutationCapability,
|
|
|
|
DelegationCapability,
|
|
|
|
InstantiationCapability,
|
|
|
|
Now,
|
|
|
|
Throttle,
|
|
|
|
Topic,
|
|
|
|
Contextualize,
|
|
|
|
Instantiate,
|
|
|
|
legacyRegistry
|
|
|
|
) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
legacyRegistry.register("platform/core", {
|
|
|
|
"name": "Open MCT Web Core",
|
|
|
|
"description": "Defines core concepts of Open MCT Web.",
|
|
|
|
"sources": "src",
|
|
|
|
"configuration": {
|
|
|
|
"paths": {
|
|
|
|
"uuid": "uuid"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"extensions": {
|
|
|
|
"versions": [
|
|
|
|
{
|
|
|
|
"name": "Version",
|
2016-01-29 01:08:02 +00:00
|
|
|
"value": "@@version",
|
2016-01-15 01:08:19 +00:00
|
|
|
"priority": 999
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Built",
|
2016-01-29 01:08:02 +00:00
|
|
|
"value": "@@timestamp",
|
2016-01-15 01:08:19 +00:00
|
|
|
"description": "The date on which this version of the client was built.",
|
|
|
|
"priority": 990
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Revision",
|
2016-01-29 01:08:02 +00:00
|
|
|
"value": "@@revision",
|
2016-01-15 01:08:19 +00:00
|
|
|
"description": "A unique revision identifier for the client sources.",
|
|
|
|
"priority": 995
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Branch",
|
2016-01-29 01:08:02 +00:00
|
|
|
"value": "@@branch",
|
|
|
|
"description": "The name of the branch that was used during the build.",
|
2016-01-15 01:08:19 +00:00
|
|
|
"priority": 994
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"provides": "objectService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": DomainObjectProvider,
|
|
|
|
"depends": [
|
|
|
|
"modelService",
|
|
|
|
"instantiate"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "capabilityService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": CoreCapabilityProvider,
|
|
|
|
"depends": [
|
|
|
|
"capabilities[]",
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": StaticModelProvider,
|
|
|
|
"depends": [
|
|
|
|
"models[]",
|
|
|
|
"$q",
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": RootModelProvider,
|
|
|
|
"depends": [
|
|
|
|
"roots[]",
|
|
|
|
"$q",
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "aggregator",
|
|
|
|
"implementation": ModelAggregator,
|
|
|
|
"depends": [
|
|
|
|
"$q"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": PersistedModelProvider,
|
|
|
|
"depends": [
|
|
|
|
"persistenceService",
|
|
|
|
"$q",
|
|
|
|
"now",
|
|
|
|
"PERSISTENCE_SPACE"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "decorator",
|
2016-03-21 17:18:06 +00:00
|
|
|
"implementation": CachingModelDecorator,
|
|
|
|
"depends": [
|
|
|
|
"cacheService"
|
|
|
|
]
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "modelService",
|
|
|
|
"type": "decorator",
|
|
|
|
"priority": "fallback",
|
|
|
|
"implementation": MissingModelDecorator
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "typeService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": TypeProvider,
|
|
|
|
"depends": [
|
|
|
|
"types[]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "actionService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": ActionProvider,
|
|
|
|
"depends": [
|
|
|
|
"actions[]",
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "actionService",
|
|
|
|
"type": "aggregator",
|
|
|
|
"implementation": ActionAggregator
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "actionService",
|
|
|
|
"type": "decorator",
|
|
|
|
"implementation": LoggingActionDecorator,
|
|
|
|
"depends": [
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "viewService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": ViewProvider,
|
|
|
|
"depends": [
|
|
|
|
"views[]",
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"provides": "identifierService",
|
|
|
|
"type": "provider",
|
|
|
|
"implementation": IdentifierProvider,
|
|
|
|
"depends": [
|
|
|
|
"PERSISTENCE_SPACE"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"control": "textfield",
|
|
|
|
"name": "Title",
|
|
|
|
"key": "name",
|
|
|
|
"property": "name",
|
|
|
|
"pattern": "\\S+",
|
|
|
|
"required": true,
|
2016-03-16 21:33:23 +00:00
|
|
|
"cssclass": "l-input-lg"
|
2016-01-15 01:08:19 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "root",
|
|
|
|
"name": "Root",
|
2016-03-24 02:04:32 +00:00
|
|
|
"glyph": "\u0046"
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "folder",
|
|
|
|
"name": "Folder",
|
2016-03-24 02:04:32 +00:00
|
|
|
"glyph": "\u0046",
|
2016-01-15 01:08:19 +00:00
|
|
|
"features": "creation",
|
2016-03-24 02:04:32 +00:00
|
|
|
"description": "Create folders to organize other objects or links to objects.",
|
2016-03-24 19:05:10 +00:00
|
|
|
"priority": 1000,
|
2016-01-15 01:08:19 +00:00
|
|
|
"model": {
|
|
|
|
"composition": []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "unknown",
|
|
|
|
"name": "Unknown Type",
|
2016-03-24 02:04:32 +00:00
|
|
|
"glyph": "\u003f"
|
2016-01-15 01:08:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Unknown Type",
|
2016-03-24 02:04:32 +00:00
|
|
|
"glyph": "\u003f"
|
2016-01-15 01:08:19 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"capabilities": [
|
|
|
|
{
|
|
|
|
"key": "composition",
|
|
|
|
"implementation": CompositionCapability,
|
|
|
|
"depends": [
|
|
|
|
"$injector",
|
|
|
|
"contextualize"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "relationship",
|
|
|
|
"implementation": RelationshipCapability,
|
|
|
|
"depends": [
|
|
|
|
"$injector"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "type",
|
|
|
|
"implementation": TypeCapability,
|
|
|
|
"depends": [
|
|
|
|
"typeService"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "action",
|
|
|
|
"implementation": ActionCapability,
|
|
|
|
"depends": [
|
|
|
|
"$q",
|
|
|
|
"actionService"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "view",
|
|
|
|
"implementation": ViewCapability,
|
|
|
|
"depends": [
|
|
|
|
"viewService"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "persistence",
|
|
|
|
"implementation": PersistenceCapability,
|
|
|
|
"depends": [
|
2016-03-21 17:18:06 +00:00
|
|
|
"cacheService",
|
2016-01-15 01:08:19 +00:00
|
|
|
"persistenceService",
|
|
|
|
"identifierService",
|
|
|
|
"notificationService",
|
|
|
|
"$q"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "metadata",
|
|
|
|
"implementation": MetadataCapability
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "mutation",
|
|
|
|
"implementation": MutationCapability,
|
|
|
|
"depends": [
|
|
|
|
"topic",
|
|
|
|
"now"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "delegation",
|
|
|
|
"implementation": DelegationCapability,
|
|
|
|
"depends": [
|
|
|
|
"$q"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "instantiation",
|
|
|
|
"implementation": InstantiationCapability,
|
|
|
|
"depends": [
|
|
|
|
"$injector",
|
2016-04-01 21:27:26 +00:00
|
|
|
"identifierService",
|
|
|
|
"now"
|
2016-01-15 01:08:19 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"services": [
|
|
|
|
{
|
2016-03-21 17:18:06 +00:00
|
|
|
"key": "cacheService",
|
|
|
|
"implementation": ModelCacheService
|
|
|
|
},
|
|
|
|
{
|
2016-01-15 01:08:19 +00:00
|
|
|
"key": "now",
|
|
|
|
"implementation": Now
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "throttle",
|
|
|
|
"implementation": Throttle,
|
|
|
|
"depends": [
|
|
|
|
"$timeout"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "topic",
|
|
|
|
"implementation": Topic,
|
|
|
|
"depends": [
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "contextualize",
|
|
|
|
"implementation": Contextualize,
|
|
|
|
"depends": [
|
|
|
|
"$log"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "instantiate",
|
|
|
|
"implementation": Instantiate,
|
|
|
|
"depends": [
|
2016-01-15 02:51:53 +00:00
|
|
|
"capabilityService",
|
2016-03-21 17:31:09 +00:00
|
|
|
"identifierService",
|
|
|
|
"cacheService"
|
2016-01-15 01:08:19 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"roots": [
|
|
|
|
{
|
|
|
|
"id": "mine",
|
|
|
|
"model": {
|
|
|
|
"name": "My Items",
|
|
|
|
"type": "folder",
|
|
|
|
"composition": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"constants": [
|
|
|
|
{
|
|
|
|
"key": "PERSISTENCE_SPACE",
|
|
|
|
"value": "mct"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"licenses": [
|
|
|
|
{
|
|
|
|
"name": "Math.uuid.js",
|
2016-02-04 01:32:16 +00:00
|
|
|
"version": "1.4.7",
|
2016-01-15 01:08:19 +00:00
|
|
|
"description": "Unique identifer generation (code adapted.)",
|
|
|
|
"author": "Robert Kieffer",
|
|
|
|
"website": "https://github.com/broofa/node-uuid",
|
2016-02-04 01:32:16 +00:00
|
|
|
"copyright": "Copyright (c) 2010-2012 Robert Kieffer",
|
2016-01-15 01:08:19 +00:00
|
|
|
"license": "license-mit",
|
|
|
|
"link": "http://opensource.org/licenses/MIT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|