function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
+ };
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
+ };
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
+ };
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
function APIEndPoint($resource) {
this.$resource = $resource;
}
- APIEndPoint.prototype.resource = function () {
- var getOption = {
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
method: 'GET',
isArray: false
};
- var apiUrl = '/api/optionControlFile/dcdFilePrint';
- return this.$resource(apiUrl, {}, { getOption: getOption });
+ return this.$resource(endPoint, {}, { customAction: customAction });
+ };
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
};
- APIEndPoint.prototype.getOptionControlFile = function () {
- return this.resource().query();
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ console.log(endPoint);
+ return this.resource(endPoint).get();
};
return APIEndPoint;
})();
this.$scope = $scope;
var controller = this;
this.APIEndPoint
- .getOptionControlFile()
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.options = result;
+ console.log(result);
+ controller.options = result.info;
});
this.files = ['a.file', 'b.file', 'c.file'];
this.heading = "[" + this.index + "]: dcdFilePring";
(function (app) {
var controllers;
(function (controllers) {
- var Files = (function () {
- function Files($scope) {
- this.page = "ManageFiles";
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ var controller = this;
+ this.page = 'workspace';
+ this.APIEndPoint
+ .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .$promise
+ .then(function (result) {
+ controller.fileInfo = result.info;
+ console.log(result);
+ });
}
- Files.$inject = ['$scope'];
- return Files;
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
})();
- controllers.Files = Files;
+ controllers.Workspace = Workspace;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
var app;
controller: 'executionController',
controllerAs: 'c'
})
- .state('files', {
- url: '/files',
- templateUrl: 'templates/files.html',
- controller: 'filesController',
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
controllerAs: 'c'
})
.state('history', {
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
- app.zephyr.controller('filesController', app.controllers.Files);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);