Github user jmuehlner commented on a diff in the pull request:

    
https://github.com/apache/incubator-guacamole-client/pull/52#discussion_r74366237
  
    --- Diff: 
guacamole/src/main/webapp/app/manage/controllers/manageSharingProfileController.js
 ---
    @@ -0,0 +1,406 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you 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.
    + */
    +
    +/**
    + * The controller for editing or creating sharing profiles.
    + */
    +angular.module('manage').controller('manageSharingProfileController', 
['$scope', '$injector',
    +        function manageSharingProfileController($scope, $injector) {
    +
    +    // Required types
    +    var SharingProfile = $injector.get('SharingProfile');
    +    var PermissionSet  = $injector.get('PermissionSet');
    +
    +    // Required services
    +    var $location                = $injector.get('$location');
    +    var $routeParams             = $injector.get('$routeParams');
    +    var authenticationService    = $injector.get('authenticationService');
    +    var connectionService        = $injector.get('connectionService');
    +    var guacNotification         = $injector.get('guacNotification');
    +    var permissionService        = $injector.get('permissionService');
    +    var schemaService            = $injector.get('schemaService');
    +    var sharingProfileService    = $injector.get('sharingProfileService');
    +    var translationStringService = 
$injector.get('translationStringService');
    +
    +    /**
    +     * An action which can be provided along with the object sent to 
showStatus
    +     * to allow the user to acknowledge (and close) the currently-shown 
status
    +     * dialog.
    +     */
    +    var ACKNOWLEDGE_ACTION = {
    +        name        : "MANAGE_SHARING_PROFILE.ACTION_ACKNOWLEDGE",
    +        // Handle action
    +        callback    : function acknowledgeCallback() {
    +            guacNotification.showStatus(false);
    +        }
    +    };
    +
    +    /**
    +     * An action to be provided along with the object sent to showStatus 
which
    +     * closes the currently-shown status dialog, effectively canceling the
    +     * operation which was pending user confirmation.
    +     */
    +    var CANCEL_ACTION = {
    +        name        : "MANAGE_SHARING_PROFILE.ACTION_CANCEL",
    +        // Handle action
    +        callback    : function cancelCallback() {
    +            guacNotification.showStatus(false);
    +        }
    +    };
    +
    +    /**
    +     * The unique identifier of the data source containing the sharing 
profile
    +     * being edited.
    +     *
    +     * @type String
    +     */
    +    $scope.selectedDataSource = $routeParams.dataSource;
    +
    +    /**
    +     * The identifier of the original sharing profile from which this 
sharing
    +     * profile is being cloned. Only valid if this is a new sharing 
profile.
    +     *
    +     * @type String
    +     */
    +    var cloneSourceIdentifier = $location.search().clone;
    +
    +    /**
    +     * The identifier of the sharing profile being edited. If a new sharing
    +     * profile is being created, this will not be defined.
    +     *
    +     * @type String
    +     */
    +    var identifier = $routeParams.id;
    +
    +    /**
    +     * All known protocols.
    --- End diff --
    
    Map of name to protocol object?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to