diff options
author | 2017-08-08 03:16:59 -0700 | |
---|---|---|
committer | 2017-08-08 12:36:31 +0000 | |
commit | bb03393b823bc2b1ec43be654e13b83a5a74a566 (patch) | |
tree | de84eda2d333e6a9a52e342a534f14cd658a6ec9 /src/main/resources/META-INF/resources/designer/scripts/ExtraUserInfoService.js | |
parent | 50d34dacd85c7fdaf73ab9e970587243d6e79ebf (diff) |
Rework of the DCAE client
Rework of the DCAE client and javascripts/html pages of the designer
(part5)
Change-Id: I3e7b889e2112dc2745632a328a02c6c603ecc195
Issue-Id: CLAMP-1
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/main/resources/META-INF/resources/designer/scripts/ExtraUserInfoService.js')
-rw-r--r-- | src/main/resources/META-INF/resources/designer/scripts/ExtraUserInfoService.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/resources/designer/scripts/ExtraUserInfoService.js b/src/main/resources/META-INF/resources/designer/scripts/ExtraUserInfoService.js new file mode 100644 index 00000000..25dc37bd --- /dev/null +++ b/src/main/resources/META-INF/resources/designer/scripts/ExtraUserInfoService.js @@ -0,0 +1,41 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP CLAMP + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights + * reserved. + * ================================================================================ + * 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. + * ============LICENSE_END============================================ + * =================================================================== + * ECOMP is a trademark and service mark of AT&T Intellectual Property. + */ +app.service('extraUserInfoService', ['$http', '$q', function($http, $q){ + //console.log("///////////extraUserInfoService"); + + this.getUserInfo = function(){ + var def = $q.defer(); + + var svcUrl = "/restservices/clds/v1/clds/cldsInfo"; + + $http.get(svcUrl) + .success(function(data){ + def.resolve(data); + }) + .error(function(data){ + def.reject("Retrieving User Info unsuccessful"); + }); + + return def.promise; + }; +}]);
\ No newline at end of file |