Primeiro commit fluig
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Disponibiliza diversas funções para consulta de informações da entidade Aprovador.
|
||||
* @super Object
|
||||
* @memberOf approverDto
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Retorna o número do aprovador
|
||||
*<pre>
|
||||
* @memberOf approverDto
|
||||
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.getapproverId = function(){return "";};
|
||||
/**
|
||||
* Retorna a versão do aprovador
|
||||
*<pre>
|
||||
* @memberOf approverDto
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.getVersion = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o código da empresa em que o aprovador foi publicado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf approverDto
|
||||
* @returns Integer Retorna o código da empresa em que o aprovador foi publicado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.getCompanyId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a matricula do colaborador que criou o aprovador
|
||||
*<pre>
|
||||
* @memberOf approverDto
|
||||
* @returns String Retorna a matricula do colaborador que criou o aprovador
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.getColleagueId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o tipo da aprovação, onde: <br>
|
||||
* 0 - Colaborador <br>
|
||||
* 1 - Grupo <br>
|
||||
*<pre>
|
||||
* @memberOf approverDto
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.getApproverType = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o nível de aprovação, no caso de aprovação em níveis.
|
||||
*<pre>
|
||||
* @memberOf approverDto
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
approverDto.getLevelId = function(){return "";};
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,618 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2008, 2013 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
*******************************************************************************/
|
||||
function BarProp(){};
|
||||
BarProp.prototype = new Array();
|
||||
|
||||
/**
|
||||
* Object Window()
|
||||
* @super Global
|
||||
* @constructor
|
||||
* @since Common Usage, no standard
|
||||
*/
|
||||
function Window(){};
|
||||
Window.prototype = new EventTarget();
|
||||
Window.prototype.self = new Window();
|
||||
Window.prototype.window = new Window();
|
||||
Window.prototype.frames = new Array();
|
||||
/**
|
||||
* Property closed
|
||||
* @type Boolean
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.closed = new Boolean();
|
||||
/**
|
||||
* Property defaultStatus
|
||||
* @type String
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.defaultStatus = "";
|
||||
/**
|
||||
* Property document
|
||||
* @type Document
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.document= new HTMLDocument();
|
||||
/**
|
||||
* Property history
|
||||
* @type History
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.history= new History();
|
||||
/**
|
||||
* Property location
|
||||
* @type Location
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.location=new Location();
|
||||
/**
|
||||
* Property name
|
||||
* @type String
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.name = "";
|
||||
/**
|
||||
* Property navigator
|
||||
* @type Navigator
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.navigator = new Navigator();
|
||||
/**
|
||||
* Property opener
|
||||
* @type Window
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.opener = new Window();
|
||||
/**
|
||||
* Property outerWidth
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.outerWidth = 0;
|
||||
/**
|
||||
* Property outerHeight
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.outerHeight = 0;
|
||||
/**
|
||||
* Property pageXOffset
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.pageXOffset = 0;
|
||||
/**
|
||||
* Property pageYOffset
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.pageYOffset = 0;
|
||||
/**
|
||||
* Property parent
|
||||
* @type Window
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.parent = new Window();
|
||||
/**
|
||||
* Property screen
|
||||
* @type Screen
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.screen = new Screen();
|
||||
/**
|
||||
* Property status
|
||||
* @type String
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.status = "";
|
||||
/**
|
||||
* Property top
|
||||
* @type Window
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.top = new Window();
|
||||
|
||||
|
||||
/*
|
||||
* These properties may need to be moved into a browswer specific library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Property innerWidth
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.innerWidth = 0;
|
||||
/**
|
||||
* Property innerHeight
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.innerHeight = 0;
|
||||
/**
|
||||
* Property screenX
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.screenX = 0;
|
||||
/**
|
||||
* Property screenY
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.screenY = 0;
|
||||
/**
|
||||
* Property screenLeft
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.screenLeft = 0;
|
||||
/**
|
||||
* Property screenTop
|
||||
* @type Number
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.screenTop = 0;
|
||||
//Window.prototype.event = new Event();
|
||||
Window.prototype.length = 0;
|
||||
Window.prototype.scrollbars= new BarProp();
|
||||
Window.prototype.scrollX=0;
|
||||
Window.prototype.scrollY=0;
|
||||
Window.prototype.content= new Window();
|
||||
Window.prototype.menubar= new BarProp();
|
||||
Window.prototype.toolbar= new BarProp();
|
||||
Window.prototype.locationbar= new BarProp();
|
||||
Window.prototype.personalbar= new BarProp();
|
||||
Window.prototype.statusbar= new BarProp();
|
||||
Window.prototype.directories= new BarProp();
|
||||
Window.prototype.scrollMaxX=0;
|
||||
Window.prototype.scrollMaxY=0;
|
||||
Window.prototype.fullScreen="";
|
||||
Window.prototype.frameElement="";
|
||||
/* End properites */
|
||||
|
||||
/**
|
||||
* function alert()
|
||||
* @param {String} message
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.alert = function(message){};
|
||||
/**
|
||||
* function blur()
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.blur = function(){};
|
||||
/**
|
||||
* function clearInterval(intervalID)
|
||||
* @param intervalID
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.clearInterval = function(intervalID){};
|
||||
/**
|
||||
* function clearTimeout(intervalID)
|
||||
* @param intervalID
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.clearTimeout = function(intervalID){};
|
||||
/**
|
||||
* function close()
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.close = function(){};
|
||||
/**
|
||||
* function confirm()
|
||||
* @param {String} arg
|
||||
* @memberOf Window
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
Window.prototype.confirm = function(arg){return false;};
|
||||
/**
|
||||
* function focus()
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.focus = function(){};
|
||||
/**
|
||||
* function getComputedStyle(element, pseudoElt )
|
||||
* @param {Element} element
|
||||
* @param {String} pseudoElt
|
||||
* @memberOf Window
|
||||
* @returns {Object}
|
||||
*/
|
||||
Window.prototype.getComputedStyle = function(element,pseudoElt ){return new Object();};
|
||||
/**
|
||||
* function moveTo(x, y)
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.moveTo = function(x,y){};
|
||||
/**
|
||||
* function moveBy(deltaX, deltaY)
|
||||
* @param {Number} deltaX
|
||||
* @param {Number} deltaY
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.moveBy = function(deltaX,deltaY){};
|
||||
/**
|
||||
* function open(optionalArg1, optionalArg2, optionalArg3, optionalArg4)
|
||||
* @param {String} url
|
||||
* @param {String} windowName
|
||||
* @param {String} windowFeatures
|
||||
* @param {Boolean} optionalArg4
|
||||
* @memberOf Window
|
||||
* @returns {Window}
|
||||
*/
|
||||
Window.prototype.open = function(url, windowName, windowFeatures, optionalArg4){return new Window();};
|
||||
/**
|
||||
* function print()
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.print = function(){};
|
||||
/**
|
||||
* function prompt(text, value)
|
||||
* @param {String} text
|
||||
* @param {String} value
|
||||
* @memberOf Window
|
||||
* @returns {String}
|
||||
*/
|
||||
Window.prototype.prompt = function(text, value){return "";};
|
||||
/**
|
||||
* function resizeTo(newOuterWidth,newOuterHeight)
|
||||
* @param {Number} newOuterWidth
|
||||
* @param {Number} newOuterHeighr
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.resizeTo=function(newOuterWidth,newOuterHeight){};
|
||||
/**
|
||||
* function resizeBy(deltaX, deltaY)
|
||||
* @param {Number} deltaX
|
||||
* @param {Number} deltaY
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.resizeBy=function(deltaX,deltaY){};
|
||||
/**
|
||||
* function scrollTo(x,y)
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.scrollTo=function(x,y){};
|
||||
/**
|
||||
* function scrollBy(pixelX,pixelY)
|
||||
* @param {Number} pixelX
|
||||
* @param {Number} pixelY
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.scrollBy=function(pixelX,pixelY){};
|
||||
/**
|
||||
* function setInterval(arg1, arg2)
|
||||
* @param {Function} callback
|
||||
* @param {Number} delay
|
||||
* @memberOf Window
|
||||
* @returns {Number}
|
||||
*/
|
||||
Window.prototype.setInterval=function(callback, delay){return 0;};
|
||||
/**
|
||||
* function setTimeout(callback, delay)
|
||||
* @param {Function} callback
|
||||
* @param {Number} delay
|
||||
* @memberOf Window
|
||||
* @returns {Number}
|
||||
*/
|
||||
Window.prototype.setTimeout=function(callback, delay){ return 0;};
|
||||
/**
|
||||
* function atob(encodedData)
|
||||
* @param {String} encodedData
|
||||
* @memberOf Window
|
||||
* @returns {String}
|
||||
*/
|
||||
Window.prototype.atob=function(encodedData){return "";};
|
||||
/**
|
||||
* function btoa(arg)
|
||||
* @param {String} stringToEncode
|
||||
* @memberOf Window
|
||||
* @returns {String}
|
||||
*/
|
||||
Window.prototype.btoa=function(stringToEncode){return "";};
|
||||
/**
|
||||
* function setResizable(resizable)
|
||||
* @param {Boolean} resizable
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.setResizable=function(resizable){};
|
||||
|
||||
Window.prototype.captureEvents=function(eventType){};
|
||||
Window.prototype.releaseEvents=function(eventType){};
|
||||
Window.prototype.routeEvent=function(eventType){};
|
||||
Window.prototype.enableExternalCapture=function(){};
|
||||
Window.prototype.disableExternalCapture=function(){};
|
||||
Window.prototype.find=function(){};
|
||||
Window.prototype.back=function(){};
|
||||
Window.prototype.forward=function(){};
|
||||
Window.prototype.home=function(){};
|
||||
Window.prototype.stop=function(){};
|
||||
/**
|
||||
* @param {Number} pixelX
|
||||
* @param {Number} pixelY
|
||||
*/
|
||||
Window.prototype.scroll=function(pixelX,pixelY){};
|
||||
/* End functions */
|
||||
|
||||
/**
|
||||
* Object History()
|
||||
* @super Object
|
||||
* @constructor
|
||||
* @since Common Usage, no standard
|
||||
*/
|
||||
function History(){};
|
||||
History.prototype=new Object();
|
||||
History.prototype.history = new History();
|
||||
/**
|
||||
* Property length
|
||||
* @type Number
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.length = 0;
|
||||
/**
|
||||
* function back()
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.back = function(){};
|
||||
/**
|
||||
* function forward()
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.forward = function(){};
|
||||
/**
|
||||
* function back()
|
||||
* @param arg
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.go = function(arg){};
|
||||
|
||||
/**
|
||||
* Object Location()
|
||||
* @super Object
|
||||
* @constructor
|
||||
* @since Common Usage, no standard
|
||||
*/
|
||||
function Location(){};
|
||||
Location.prototype = new Object();
|
||||
Location.prototype.location = new Location();
|
||||
/**
|
||||
* Property hash
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.hash = "";
|
||||
/**
|
||||
* Property host
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.host = "";
|
||||
/**
|
||||
* Property hostname
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.hostname = "";
|
||||
/**
|
||||
* Property href
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.href = "";
|
||||
/**
|
||||
* Property pathname
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.pathname = "";
|
||||
/**
|
||||
* Property port
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.port = "";
|
||||
/**
|
||||
* Property protocol
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.protocol = "";
|
||||
/**
|
||||
* Property search
|
||||
* @type String
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.search = "";
|
||||
/**
|
||||
* function assign(arg)
|
||||
* @param {String} arg
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.assign = function(arg){};
|
||||
/**
|
||||
* function reload(optionalArg)
|
||||
* @param {Boolean} optionalArg
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.reload = function(optionalArg){};
|
||||
/**
|
||||
* function replace(arg)
|
||||
* @param {String} arg
|
||||
* @memberOf Location
|
||||
*/
|
||||
Location.prototype.replace = function(arg){};
|
||||
|
||||
/**
|
||||
* Object Navigator()
|
||||
* @super Object
|
||||
* @constructor
|
||||
* @since Common Usage, no standard
|
||||
*/
|
||||
function Navigator(){};
|
||||
Navigator.prototype = new Object();
|
||||
Navigator.prototype.navigator = new Navigator();
|
||||
/**
|
||||
* Property appCodeName
|
||||
* @type String
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.appCodeName = "";
|
||||
/**
|
||||
* Property appName
|
||||
* @type String
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.appName = "";
|
||||
/**
|
||||
* Property appVersion
|
||||
* @type String
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.appVersion = "";
|
||||
/**
|
||||
* Property cookieEnabled
|
||||
* @type Boolean
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.cookieEnabled = new Boolean();
|
||||
/**
|
||||
* Property mimeTypes
|
||||
* @type Array
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.mimeTypes = new Array();
|
||||
/**
|
||||
* Property platform
|
||||
* @type String
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.platform = "";
|
||||
/**
|
||||
* Property plugins
|
||||
* @type Array
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.plugins = new Array();
|
||||
/**
|
||||
* Property userAgent
|
||||
* @type String
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.userAgent = "";
|
||||
/**
|
||||
* function javaEnabled()
|
||||
* @returns {Boolean}
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.javaEnabled = function(){return false;};
|
||||
|
||||
/**
|
||||
* Object Screen()
|
||||
* @super Object
|
||||
* @constructor
|
||||
* @since Common Usage, no standard
|
||||
*/
|
||||
function Screen(){};
|
||||
Screen.prototype = new Object();
|
||||
Screen.prototype.screen = new Screen();
|
||||
/**
|
||||
* Property availHeight
|
||||
* @type Number
|
||||
* @memberOf Screen
|
||||
*/
|
||||
Navigator.prototype.availHeight = 0;
|
||||
/**
|
||||
* Property availWidth
|
||||
* @type Number
|
||||
* @memberOf Screen
|
||||
*/
|
||||
Navigator.prototype.availWidth = 0;
|
||||
/**
|
||||
* Property colorDepth
|
||||
* @type Number
|
||||
* @memberOf Screen
|
||||
*/
|
||||
Navigator.prototype.colorDepth = 0;
|
||||
/**
|
||||
* Property height
|
||||
* @type Number
|
||||
* @memberOf Screen
|
||||
*/
|
||||
Navigator.prototype.height = 0;
|
||||
/**
|
||||
* Property width
|
||||
* @type Number
|
||||
* @memberOf Screen
|
||||
*/
|
||||
Navigator.prototype.width = 0;
|
||||
|
||||
Event.prototype=new Object();
|
||||
// PhaseType
|
||||
Event.prototype.CAPTURING_PHASE = 1;
|
||||
Event.prototype.AT_TARGET = 2;
|
||||
Event.prototype.BUBBLING_PHASE = 3;
|
||||
|
||||
Event.prototype.type="";
|
||||
Event.prototype.target=new EventTarget();
|
||||
Event.prototype.currentTarget=new EventTarget();
|
||||
Event.prototype.eventPhase=0;
|
||||
Event.prototype.bubbles=false;
|
||||
Event.prototype.cancelable=false;
|
||||
Event.prototype.timeStamp=0;
|
||||
Event.prototype.stopPropagation=function(){};
|
||||
Event.prototype.preventDefault=function(){};
|
||||
/**
|
||||
* @param {String} eventTypeArg
|
||||
* @param {Boolean} canBubbleArg
|
||||
* @param {Boolean} cancelableArg
|
||||
*/
|
||||
Event.prototype.initEvent=function(eventTypeArg,
|
||||
canBubbleArg,
|
||||
cancelableArg){};
|
||||
function EventListener(){};
|
||||
EventListener.prototype=new Object();
|
||||
/**
|
||||
* @param {Event} event
|
||||
* @memberOf EventListener
|
||||
*/
|
||||
EventListener.prototype.handleEvent=function(event){};
|
||||
|
||||
function EventTarget(){};
|
||||
EventTarget.prototype=new Object();
|
||||
/*
|
||||
* These functions may need to be moved into a browser specific library.
|
||||
*/
|
||||
/**
|
||||
* @memberOf Window
|
||||
* @param event {Event}
|
||||
* @throws {EventException}
|
||||
*/
|
||||
EventTarget.prototype.dispatchEvent=function(event){};
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/DOM/element.addEventListener
|
||||
/**
|
||||
* @memberOf Window
|
||||
* @param {String} type
|
||||
* @param {EventListener} listener
|
||||
* @param {Boolean} useCapture
|
||||
*/
|
||||
EventTarget.prototype.addEventListener=function(type, listener, useCapture){};
|
||||
// https://developer.mozilla.org/en-US/docs/DOM/element.removeEventListener
|
||||
/**
|
||||
* @memberOf Window
|
||||
* @param {String} type
|
||||
* @param {EventListener} listener
|
||||
* @param {Boolean} useCapture
|
||||
*/
|
||||
EventTarget.prototype.removeEventListener=function(type, listener, useCapture){};
|
||||
@@ -0,0 +1,170 @@
|
||||
/**
|
||||
* Permite a passagem de parametros entre eventos do Workflow.
|
||||
* <b><u>Usar em eventos de processos</u></b>.
|
||||
* @super Object
|
||||
* @memberOf globalvars
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
globalvars.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Inclui um novo valor nos parametros gerais.
|
||||
* <b><u>Usar em eventos de processos</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* globalvars.put("nome", "valor");
|
||||
*</pre>
|
||||
* @memberOf globalvars
|
||||
* @param {String} nome Nome do parametro
|
||||
* @param {Object} valor Valor do parametro
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
globalvars.put = function(nome, valor){};
|
||||
|
||||
/**
|
||||
* Recupera um valor da tabela de parametros gerais.
|
||||
* <b><u>Usar em eventos de processos</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var valor = globalvars.get("nome");
|
||||
*</pre>
|
||||
* @memberOf globalvars
|
||||
* @param {String} nome Nome do parametro
|
||||
* @returns {Object} Valor do parametro
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
globalvars.get = function(nome){return new Object();};
|
||||
|
||||
/**
|
||||
* A variável log permite ao usuário enviar mensagens que ficarão expostas no log do ECM server durante a execução
|
||||
* de um processo.
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
* @super Object
|
||||
* @memberOf log
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
log.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Efetua log de uma String com a 'criticidade' INFO.
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* log.info('Teste logger');
|
||||
*</pre>
|
||||
* @memberOf log
|
||||
* @param {String} str Mensagem
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
log.info = function(msg){};
|
||||
|
||||
|
||||
/**
|
||||
* Efetua log de uma String com a 'criticidade' WARNING.
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* log.warn('Possível erro');
|
||||
*</pre>
|
||||
* @memberOf log
|
||||
* @param {String} str Mensagem
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
log.warn = function(msg){};
|
||||
|
||||
/**
|
||||
* Efetua log de uma String com a 'criticidade' ERROR.
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* log.error('Erro: ');
|
||||
*</pre>
|
||||
* @memberOf log
|
||||
* @param {String} str Mensagem
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
log.error = function(msg){};
|
||||
|
||||
/**
|
||||
* Efetua log de uma String com a 'criticidade' FATAL.
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* log.fatal('erro fatal: ');
|
||||
*</pre>
|
||||
* @memberOf log
|
||||
* @param {String} str Mensagem
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
log.fatal = function(msg){};
|
||||
|
||||
|
||||
/**
|
||||
* Disponibiliza diversas funções para o envio de e-mail.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
* @super Object
|
||||
* @memberOf notifier
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
notifier.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Envia um e-mail customizado.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var parametros = new java.util.HashMap();
|
||||
* parametros.put("NOME_USUARIO", "JOAO");
|
||||
* parametros.put("CODIGO_USUARIO", "01");
|
||||
* //Este parametro e obrigatorio e representa o assunto do e-mail
|
||||
* parametros.put("subject", "ASSUNTO");
|
||||
*
|
||||
* var usuarios = new java.util.ArrayList();
|
||||
* usuarios.add('adm');
|
||||
*
|
||||
* notifier.notify('adm', 'mail1', parametros, usuarios, 'text/html');
|
||||
*</pre>
|
||||
* @memberOf notifier
|
||||
* @param {String} from Matrícula do usuario que esta enviando o e-mail
|
||||
* @param {String} template código do template (tela de customizacao de e-mail)
|
||||
* @param {Object} parametros Map com os parametros do e-mail
|
||||
* @param {Object} to List com os destinatários do e-mail
|
||||
* @param {String} mimeType Tipo do conteúdo do email 'text/html' ou 'text/plain'
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
notifier.notify = function(from, template, parametros, to, mimeType){};
|
||||
|
||||
/**
|
||||
* Disponibiliza diversas funções para o uso de serviços (Progress).
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
* @super Object
|
||||
* @memberOf ServiceManager
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
ServiceManager.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Obtem a classe ServiceHelper do servico especificado.
|
||||
* <b><u>Usar em qualquer evento</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var servico = ServiceManager.getService("ems2_v10");
|
||||
* var serviceHelper = servico.getBean();
|
||||
* </pre>
|
||||
* @memberOf ServiceManager
|
||||
* @param {String} idServico Id do servico (cadastro de servicos)
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
ServiceManager.getService = function(idServico){return new Object()};
|
||||
@@ -0,0 +1,592 @@
|
||||
/**
|
||||
* Disponibiliza diversas funções para consulta de informações da entidade documento.
|
||||
|
||||
* @super Object
|
||||
* @memberOf documentDto
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Retorna o número do documento
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Retorna o número do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDocumentId = function(){return "";};
|
||||
/**
|
||||
* Retorna a versão do documento
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Retorna a versão do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getVersion = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o código da empresa em que o
|
||||
documento foi publicado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Retorna o código da empresa em que o documento foi publicado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getCompanyId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o UUID (identificador Único Global) do documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna o UUID (identificador Único Global) do documento.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getUUID() = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o tipo do arquivo físico, se retornar branco ou nulo é porque esse tipo não é
|
||||
conhecido pelo Fluig.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna o tipo do arquivo físico, se retornar branco ou nulo é porque esse tipo não é conhecido pelo Fluig.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDocumentTypeId = function(){return "";};
|
||||
|
||||
/**
|
||||
*Retorna o código do Idioma do documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna o código do Idioma do documento.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getLanguageId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o código do Ícone do documento
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Retorna o código do Ícone do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getIconId = function(){return "";};
|
||||
|
||||
/**
|
||||
*Retorna o código do assunto do documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Retorna o código do assunto do documento.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getTopicId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a matricula do colaborador que criou o documento
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna a matricula do colaborador que criou o documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getColleagueId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a descrição do documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna a descrição do documento.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDocumentDescription = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna os comentários adicionais do documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna os comentários adicionais do documento.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getAdditionalComments = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o caminho físico onde o documento está armazenado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna o código da empresa em que o documento foi publicado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getPhisicalFile = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a data de criação.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Date Retorna a data de criação.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getCreateDate = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a data de Aprovação.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Date Retorna a data de Aprovação.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getApprovedDate = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a Data da última modificação.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Date Retorna a Data da última modificação.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getLastModifiedDate = function(){return "";};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Retorna o tipo do documento, onde: <br>
|
||||
0 - Pasta raiz <br>
|
||||
1 - Pasta <br>
|
||||
2 - Documento normal <br>
|
||||
3 - Documento externo <br>
|
||||
4 - Fichário <br>
|
||||
5 - Ficha <br>
|
||||
7 - Anexo Workflow <br>
|
||||
8 - Novo Conteúdo <br>
|
||||
9 - A plicativo <br>
|
||||
10 - Relatório <br>
|
||||
15 - Pasta Social <br>
|
||||
portal -Site <br>
|
||||
portalPage - Página de Site <br> <br>
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
* @returns String Tipo do Documento
|
||||
*
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDocumentType = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a data de expiração.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Date Data de expiração.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getExpirationDate = function(){return "";};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Retorna o número da Pasta/Fichário pai
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Número da Pasta/Fichário pai
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getParentDocumentId = function(){return "";};
|
||||
|
||||
/**
|
||||
* String com o nome do arquivo físico principal e anexos.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String String com o nome do arquivo físico principal e anexos.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getRelatedFiles = function(){return "";};
|
||||
|
||||
/**
|
||||
* Verifica se o documento está ativo
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean Retorna se a versão é ativa.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getActiveVersion = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a descrição da versão.
|
||||
* <b><u>Usar em eventos do Fluig</u></b>.
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Retorna a descrição da versão.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getVersionDescription = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento permite Download
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean Retorna se o documento permite Download
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDownloadEnabled = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento está em aprovação.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean Retorna se o documento está em aprovação.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getApproved = function(){return "";};
|
||||
|
||||
|
||||
/**
|
||||
* Retorna a partir de que data em que o documento poderá ser visualizado
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Date Retorna a partir de que data em que o documento poderá ser visualizado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getValidationStartDate = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a matricula do colaborador que publicou o documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String A matricula do colaborador que publicou o documento.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getPublisherId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a descrição da ficha, para
|
||||
documento do tipo 5.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Descrição da ficha, para documento do tipo 5.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getCardDescription = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o fichário que foi usado como base
|
||||
para criação da ficha, por isso só tem um
|
||||
valor quando o documento é do tipo 5
|
||||
(ficha).
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Numero do Fichário
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDocumentPropertyNumber = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a versão do fichário em que a ficha foi criada.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Versão do fichário em que a ficha foi criada.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDocumentPropertyVersion = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o código da empresa em que o
|
||||
documento foi publicado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer Retorna o código da empresa em que o documento foi publicado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getCompanyId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento/pasta está abaixo
|
||||
da pasta particular.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getPrivateDocument = function(){return "";};
|
||||
|
||||
/**
|
||||
* Se é um documento particular retorna a matricula do colaborador onde este documento está alocado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getPrivateColleagueId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento já foi indexado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getIndexed = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a prioridade do documento.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getPriority = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se notifica os usuários que tenham esse assunto de interesse.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getUserNotify = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento está expirado.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getExpires = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o volume onde o documento foi
|
||||
publicado, se estiver em branco ele utiliza o
|
||||
volume do pai.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String Código do Volume
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getVolumeId = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se herda segurança do pai
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getInheritSecurity = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se atualiza as propriedades da cópia controlada.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getUpdateIsoProperties = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna a hora da última modificação em milissegundos
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getLastModifiedTime = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento está na lixeira.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDeleted = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o documento do dataset , se o documento é um fichário.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDatasetName = function(){return "";};
|
||||
|
||||
|
||||
/**
|
||||
* Retorna as palavras chaves do documento.
|
||||
Cada palavra é separada por vírgula.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns String
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getKeyWord = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se a versão/revisão inalterável.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getImutable = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se o documento está em edição, para documento do tipo "Novo Conteúdo" <br>.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getDraft = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna se utiliza visualizador interno
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getInternalVisualizer = function(){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o tamanho físico do documento principal e anexos.
|
||||
|
||||
*<pre>
|
||||
* @memberOf documentDto
|
||||
|
||||
* @returns Float
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentDto.getPhisicalFileSize = function(){return "";};
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/**
|
||||
* Disponibiliza diversas funções para consulta de informações da entidade documento.
|
||||
* @super Object
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.prototype=new Object();
|
||||
/**
|
||||
* Retorna o número do documento. <br><br>
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Retorna o número do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getDocumentId = function(){return "";};
|
||||
/**
|
||||
* Retorna a versão do documento. <br><br>
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Retorna a versão do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getVersion = function(){return "";};
|
||||
/**
|
||||
* Retorna o código da empresa em que o <br>
|
||||
* documento foi publicado. <br><br>
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Retorna o código da empresa em que o documento foi publicado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getCompanyId = function(){return "";};
|
||||
/**
|
||||
* Retorna a matricula de um colaborador ou o código do
|
||||
* grupo que está na segurança deste documento. É
|
||||
* possível saber se vai retornar um colaborador ou um
|
||||
* grupo pelo tipo da segurança.
|
||||
* Obs.: Retorna em branco quando o tipo é todos os
|
||||
* usuários.
|
||||
*<pre>
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @returns String
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getAttributionValue = function(){return "";};
|
||||
/**
|
||||
* Retorna se é uma permissão.
|
||||
* Obs.: Se não é uma permissão é uma restrição.
|
||||
*<pre>
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getPermission = function(){return "";};
|
||||
/**
|
||||
* Retorna se lista o conteúdo.
|
||||
*<pre>
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getShowContent = function(){return "";};
|
||||
/**
|
||||
* Retorna no nível de permissão/restrição, onde: <br>
|
||||
-1 - sem permissão/restrição (nega acesso); <br>
|
||||
0 - Leitura; <br>
|
||||
1 - Gravação; <br>
|
||||
2 - Modificação; <br>
|
||||
3 - Total.
|
||||
*<pre>
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getAttributionType = function(){return "";};
|
||||
/**
|
||||
* Retorna a sequência da permissão/restrição.
|
||||
*<pre>
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @returns Integer
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getSequence = function(){return "";};
|
||||
/**
|
||||
* Retorna se ele utiliza a segurança deste versão nas demais.
|
||||
*<pre>
|
||||
* @memberOf documentSecurityConfigDto
|
||||
* @returns Boolean
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
documentSecurityConfigDto.getSecurityVersion = function(){return "";};
|
||||
@@ -0,0 +1,922 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2013 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
******************************************************************************/
|
||||
|
||||
/**
|
||||
* function querySelector(selectors)
|
||||
* http://www.w3.org/TR/2012/PR-selectors-api-20121213
|
||||
* @param {String} selectors
|
||||
* @memberOf Document
|
||||
* @returns {Element}
|
||||
*/
|
||||
Document.prototype.querySelector=function(selectors){return new Element();};
|
||||
|
||||
/**
|
||||
* function querySelectorAll(selectors)
|
||||
* http://www.w3.org/TR/2012/PR-selectors-api-20121213
|
||||
* @param {String} selectors
|
||||
* @memberOf Document
|
||||
* @returns {NodeList}
|
||||
*/
|
||||
Document.prototype.querySelectorAll=function(selectors){return new NodeList();};
|
||||
|
||||
/**
|
||||
* function querySelector(selectors)
|
||||
* http://www.w3.org/TR/2012/PR-selectors-api-20121213
|
||||
* @param {String} selectors
|
||||
* @memberOf DocumentFragment
|
||||
* @returns {Element}
|
||||
*/
|
||||
DocumentFragment.prototype.querySelector=function(selectors){return new Element();};
|
||||
|
||||
/**
|
||||
* function querySelectorAll(selectors)
|
||||
* http://www.w3.org/TR/2012/PR-selectors-api-20121213
|
||||
* @param {String} selectors
|
||||
* @memberOf DocumentFragment
|
||||
* @returns {NodeList}
|
||||
*/
|
||||
DocumentFragment.prototype.querySelectorAll=function(selectors){return new NodeList();};
|
||||
|
||||
/**
|
||||
* function querySelector(selectors)
|
||||
* http://www.w3.org/TR/2012/PR-selectors-api-20121213
|
||||
* @param {String} selectors
|
||||
* @memberOf Element
|
||||
* @returns {Element}
|
||||
*/
|
||||
Element.prototype.querySelector=function(selectors){return new Element();};
|
||||
|
||||
/**
|
||||
* function querySelectorAll(selectors)
|
||||
* http://www.w3.org/TR/2012/PR-selectors-api-20121213
|
||||
* @param {String} selectors
|
||||
* @memberOf Element
|
||||
* @returns {NodeList}
|
||||
*/
|
||||
Element.prototype.querySelectorAll=function(selectors){return new NodeList();};
|
||||
|
||||
/**
|
||||
* Property state
|
||||
* @type Object
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.state=new Object();
|
||||
|
||||
/**
|
||||
* function pushState(data,title,url)
|
||||
* http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#history
|
||||
* @param {Object} data
|
||||
* @param {String} title
|
||||
* @param {String} url - optional
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.pushState=function(data,title,url){};
|
||||
|
||||
/**
|
||||
* function replaceState(data,title,url)
|
||||
* http://www.w3.org/TR/2012/CR-html5-20121217/browsers.html#history
|
||||
* @param {Object} data
|
||||
* @param {String} title
|
||||
* @param {String} url - optional
|
||||
* @memberOf History
|
||||
*/
|
||||
History.prototype.replaceState=function(data,title,url){};
|
||||
|
||||
/**
|
||||
* Property sessionStorage
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @type Storage
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.sessionStorage=new Storage();
|
||||
|
||||
/**
|
||||
* Property localStorage
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @type Storage
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.localStorage=new Storage();
|
||||
|
||||
/**
|
||||
* Object Storage
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
*/
|
||||
function Storage(){};
|
||||
Storage.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Property length
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @type Number
|
||||
* @memberOf Storage
|
||||
*/
|
||||
Storage.prototype.length=new Number();
|
||||
|
||||
/**
|
||||
* function key(index)
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @param {Number} index
|
||||
* @memberOf Storage
|
||||
* @returns String
|
||||
*/
|
||||
Storage.prototype.key=function(index){return new String();};
|
||||
|
||||
/**
|
||||
* function getItem(key)
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @param {String} key
|
||||
* @memberOf Storage
|
||||
* @returns String
|
||||
*/
|
||||
Storage.prototype.getItem=function(key){return new String();};
|
||||
|
||||
/**
|
||||
* function setItem(key,value)
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @param {String} key
|
||||
* @param {String} value
|
||||
* @memberOf Storage
|
||||
*/
|
||||
Storage.prototype.setItem=function(key,value){};
|
||||
|
||||
/**
|
||||
* function removeItem(key)
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @param {String} key
|
||||
* @memberOf Storage
|
||||
*/
|
||||
Storage.prototype.removeItem=function(key){};
|
||||
|
||||
/**
|
||||
* function clear()
|
||||
* http://www.w3.org/TR/2011/CR-webstorage-20111208
|
||||
* @memberOf Storage
|
||||
*/
|
||||
Storage.prototype.clear=function(){};
|
||||
|
||||
/**
|
||||
* Object WebSocket
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @constructor
|
||||
* @param {String} url
|
||||
*/
|
||||
function WebSocket(url){};
|
||||
WebSocket.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Constant WebSocket.CONNECTING=0
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
WebSocket.prototype.CONNECTING=0;
|
||||
|
||||
/**
|
||||
* Constant WebSocket.OPEN=1
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
WebSocket.prototype.OPEN=1;
|
||||
|
||||
/**
|
||||
* Constant WebSocket.CLOSING=2
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
WebSocket.prototype.CLOSING=2;
|
||||
|
||||
/**
|
||||
* Constant WebSocket.CLOSED=3
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
WebSocket.prototype.CLOSED=3;
|
||||
|
||||
/**
|
||||
* Property url
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @type String
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.url=new String();
|
||||
|
||||
/**
|
||||
* Property readyState
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @type Number
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.readyState=new Number();
|
||||
|
||||
/**
|
||||
* Property bufferedAmount
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @type Number
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.bufferedAmount=new Number();
|
||||
|
||||
/**
|
||||
* Property extensions
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @type String
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.extensions=new String();
|
||||
|
||||
/**
|
||||
* Property protocol
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @type String
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.protocol=new String();
|
||||
|
||||
/**
|
||||
* Property binaryType
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @type String
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.binaryType=new String();
|
||||
|
||||
/**
|
||||
* function close(code,reason)
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @param {Number} code - optional
|
||||
* @param {String} reason - optional
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.close=function(code,reason){};
|
||||
|
||||
/**
|
||||
* function send(data)
|
||||
* http://www.w3.org/TR/2012/CR-websockets-20120920
|
||||
* @param {Object} data - may be a String, Blob, ArrayBuffer, or ArrayBufferView
|
||||
* @memberOf WebSocket
|
||||
*/
|
||||
WebSocket.prototype.send=function(data){};
|
||||
|
||||
/**
|
||||
* Property geolocation
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Geolocation
|
||||
* @memberOf Navigator
|
||||
*/
|
||||
Navigator.prototype.geolocation=new Geolocation();
|
||||
|
||||
/**
|
||||
* Object Geolocation
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
*/
|
||||
function Geolocation(){};
|
||||
Geolocation.prototype=new Object();
|
||||
|
||||
/**
|
||||
* function getCurrentPosition(successCallback,errorCallback,options)
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510/
|
||||
* @param {Function} successCallback (Position pos)
|
||||
* @param {Function} errorCallback (PositionError error) - optional
|
||||
* @param {PositionOptions} options - optional
|
||||
* @memberOf Geolocation
|
||||
*/
|
||||
Geolocation.prototype.getCurrentPosition=function(successCallback,errorCallback,options){};
|
||||
|
||||
/**
|
||||
* function watchPosition(successCallback,errorCallback,options)
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510/
|
||||
* @param {Function} successCallback (Position pos)
|
||||
* @param {Function} errorCallback (PositionError error) - optional
|
||||
* @param {PositionOptions} options - optional
|
||||
* @memberOf Geolocation
|
||||
* @returns {Number}
|
||||
*/
|
||||
Geolocation.prototype.watchPosition=function(successCallback,errorCallback,options){return new Number();};
|
||||
|
||||
/**
|
||||
* function clearWatch(watchId)
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @param {Number} watchId
|
||||
* @memberOf Geolocation
|
||||
*/
|
||||
Geolocation.prototype.clearWatch=function(watchId){};
|
||||
|
||||
/**
|
||||
* Object Coordinates
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
*/
|
||||
function Coordinates(){};
|
||||
Coordinates.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Property latitude
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.latitude=new Number();;
|
||||
|
||||
/**
|
||||
* Property longitude
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.longitude=new Number();;
|
||||
|
||||
/**
|
||||
* Property altitude
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.altitude=new Number();;
|
||||
|
||||
/**
|
||||
* Property accuracy
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.accuracy=new Number();;
|
||||
|
||||
/**
|
||||
* Property altitudeAccuracy
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.altitudeAccuracy=new Number();;
|
||||
|
||||
/**
|
||||
* Property heading
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.heading=new Number();;
|
||||
|
||||
/**
|
||||
* Property speed
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Coordinates
|
||||
*/
|
||||
Coordinates.prototype.speed=new Number();
|
||||
|
||||
/**
|
||||
* Object Position
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
*/
|
||||
function Position(){};
|
||||
Position.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Property coords
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Coordinates
|
||||
* @memberOf Position
|
||||
*/
|
||||
Position.prototype.coords=new Coordinates();
|
||||
|
||||
/**
|
||||
* Property timestamp
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf Position
|
||||
*/
|
||||
Position.prototype.timestamp=new Number;
|
||||
|
||||
/**
|
||||
* Object PositionError
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
*/
|
||||
function PositionError(){};
|
||||
PositionError.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Constant PositionError.PERMISSION_DENIED=1
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
PositionError.prototype.PERMISSION_DENIED=1;
|
||||
|
||||
/**
|
||||
* Constant PositionError.POSITION_UNAVAILABLE=2
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
PositionError.prototype.POSITION_UNAVAILABLE=2;
|
||||
|
||||
/**
|
||||
* Constant PositionError.TIMEOUT=3
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
PositionError.prototype.TIMEOUT=3;
|
||||
|
||||
/**
|
||||
* Property code
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf PositionError
|
||||
*/
|
||||
PositionError.prototype.code=new Number();
|
||||
|
||||
/**
|
||||
* Property message
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type String
|
||||
* @memberOf PositionError
|
||||
*/
|
||||
PositionError.prototype.message=new String();
|
||||
|
||||
/**
|
||||
* Object PositionOptions
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
*/
|
||||
function PositionOptions(){};
|
||||
PositionOptions.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Property enableHighAccuracy
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Boolean
|
||||
* @memberOf PositionOptions
|
||||
*/
|
||||
PositionOptions.prototype.enableHighAccuracy=new Boolean();
|
||||
|
||||
/**
|
||||
* Property timeout
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf PositionOptions
|
||||
*/
|
||||
PositionOptions.prototype.timeout=new Number();
|
||||
|
||||
/**
|
||||
* Property maximumAge
|
||||
* http://www.w3.org/TR/2012/PR-geolocation-API-20120510
|
||||
* @type Number
|
||||
* @memberOf PositionOptions
|
||||
*/
|
||||
PositionOptions.prototype.maximumAge=new Number();
|
||||
|
||||
/**
|
||||
* Object TimeRanges
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
*/
|
||||
function TimeRanges(){};
|
||||
TimeRanges.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Property length
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf TimeRanges
|
||||
*/
|
||||
TimeRanges.prototype.length=new Number();
|
||||
|
||||
/**
|
||||
* function start(index)
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @param {Number} index
|
||||
* @memberOf TimeRanges
|
||||
* @returns {Number}
|
||||
*/
|
||||
function start(index) {return new Number();};
|
||||
|
||||
/**
|
||||
* function end(index)
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @param {Number} index
|
||||
* @memberOf TimeRanges
|
||||
* @returns {Number}
|
||||
*/
|
||||
function end(index) {return new Number();};
|
||||
|
||||
/**
|
||||
* Object MediaError
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
*/
|
||||
function MediaError(){};
|
||||
MediaError.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Constant MediaError.MEDIA_ERR_ABORTED=1
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
MediaError.prototype.MEDIA_ERR_ABORTED=1;
|
||||
|
||||
/**
|
||||
* Constant MediaError.MEDIA_ERR_NETWORK=2
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
MediaError.prototype.MEDIA_ERR_NETWORK=2;
|
||||
|
||||
/**
|
||||
* Constant MediaError.MEDIA_ERR_DECODED=3
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
MediaError.prototype.MEDIA_ERR_DECODE=3;
|
||||
|
||||
/**
|
||||
* Constant MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED=4
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
MediaError.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4;
|
||||
|
||||
/**
|
||||
* Property code
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf MediaError
|
||||
*/
|
||||
MediaError.prototype.code=new Number();
|
||||
|
||||
/**
|
||||
* Object HTMLMediaElement
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @augments HTMLElement
|
||||
* @see HTMLElement
|
||||
*/
|
||||
function HTMLMediaElement(){};
|
||||
HTMLMediaElement.prototype = new HTMLElement();
|
||||
|
||||
/**
|
||||
* Property src
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type String
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.src=new String();
|
||||
|
||||
/**
|
||||
* Property currentSrc
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type String
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.currentSrc=new String();
|
||||
|
||||
/**
|
||||
* Property crossOrigin
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type String
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.crossOrigin=new String();
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.NETWORK_EMPTY=0
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.NETWORK_EMPTY=0;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.NETWORK_IDLE=1
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.NETWORK_IDLE=1;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.NETWORK_LOADING=2
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.NETWORK_LOADING=2;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.NETWORK_NO_SOURCE=3
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.NETWORK_NO_SOURCE=3;
|
||||
|
||||
/**
|
||||
* Property networkState
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.networkState=new Number();
|
||||
|
||||
/**
|
||||
* Property preload
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type String
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.preload=new String();
|
||||
|
||||
/**
|
||||
* Property buffered
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type TimeRanges
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.buffered=new TimeRanges();
|
||||
|
||||
/**
|
||||
* function load()
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.load=function(){};
|
||||
|
||||
/**
|
||||
* function canPlayType(type)
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @param {String} type
|
||||
* @memberOf HTMLMediaElement
|
||||
* @returns {String}
|
||||
*/
|
||||
HTMLMediaElement.prototype.canPlayType=function(type){new String();};
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.HAVE_NOTHING=0
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.HAVE_NOTHING=0;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.HAVE_METADATA=1
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.HAVE_METADATA=1;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.HAVE_CURRENT_DATA=2
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.HAVE_CURRENT_DATA=2;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.HAVE_FUTURE_DATA=3
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.HAVE_FUTURE_DATA=3;
|
||||
|
||||
/**
|
||||
* Constant HTMLMediaElement.HAVE_ENOUGH_DATA=4
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @constant
|
||||
* @type Number
|
||||
*/
|
||||
HTMLMediaElement.prototype.HAVE_ENOUGH_DATA=4;
|
||||
|
||||
/**
|
||||
* Property readyState
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.readyState=new Number();
|
||||
|
||||
/**
|
||||
* Property seeking
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.seeking=new Boolean();
|
||||
|
||||
/**
|
||||
* Property currentTime
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.currentTime=new Number();
|
||||
|
||||
/**
|
||||
* Property initialTime
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.initialTime=new Number();
|
||||
|
||||
/**
|
||||
* Property duration
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.duration=new Number();
|
||||
|
||||
/**
|
||||
* Property startOffsetTime
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Date
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.startOffsetTime=new Date();
|
||||
|
||||
/**
|
||||
* Property paused
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.paused=new Boolean();
|
||||
|
||||
/**
|
||||
* Property defaultPlaybackRate
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.defaultPlaybackRate=new Number();
|
||||
|
||||
/**
|
||||
* Property playbackRate
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.playbackRate=new Number();
|
||||
|
||||
/**
|
||||
* Property played
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type TimeRanges
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.played=new TimeRanges();
|
||||
|
||||
/**
|
||||
* Property seekable
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type TimeRanges
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.seekable=new TimeRanges();
|
||||
|
||||
/**
|
||||
* Property ended
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.ended=new Boolean();
|
||||
|
||||
/**
|
||||
* Property autoplay
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.autoplay=new Boolean();
|
||||
|
||||
/**
|
||||
* Property loop
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.loop=new Boolean();
|
||||
|
||||
/**
|
||||
* function play()
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.play=function(){};
|
||||
|
||||
/**
|
||||
* function pause()
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.pause=function(){};
|
||||
|
||||
/**
|
||||
* Property controls
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.controls=new Boolean();
|
||||
|
||||
/**
|
||||
* Property volume
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.volume=new Number();
|
||||
|
||||
/**
|
||||
* Property muted
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.muted=new Boolean();
|
||||
|
||||
/**
|
||||
* Property defaultMuted
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Boolean
|
||||
* @memberOf HTMLMediaElement
|
||||
*/
|
||||
HTMLMediaElement.prototype.defaultMuted=new Boolean();
|
||||
|
||||
/**
|
||||
* Object HTMLAudioElement
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/the-audio-element.html
|
||||
* @augments HTMLMediaElement
|
||||
* @constructor
|
||||
* @param {String} src
|
||||
* @see HTMLMediaElement
|
||||
*/
|
||||
function HTMLAudioElement(src){};
|
||||
HTMLAudioElement.prototype = new HTMLMediaElement();
|
||||
|
||||
/**
|
||||
* Object HTMLVideoElement
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/the-audio-element.html
|
||||
* @augments HTMLMediaElement
|
||||
* @see HTMLMediaElement
|
||||
*/
|
||||
function HTMLVideoElement(){};
|
||||
HTMLVideoElement.prototype = new HTMLMediaElement();
|
||||
|
||||
/**
|
||||
* Property width
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLVideoElement
|
||||
*/
|
||||
HTMLVideoElement.prototype.width=new Number();
|
||||
|
||||
/**
|
||||
* Property height
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLVideoElement
|
||||
*/
|
||||
HTMLVideoElement.prototype.height=new Number();
|
||||
|
||||
/**
|
||||
* Property videoWidth
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLVideoElement
|
||||
*/
|
||||
HTMLVideoElement.prototype.videoWidth=new Number();
|
||||
|
||||
/**
|
||||
* Property videoHeight
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type Number
|
||||
* @memberOf HTMLVideoElement
|
||||
*/
|
||||
HTMLVideoElement.prototype.videoHeight=new Number();
|
||||
|
||||
/**
|
||||
* Property poster
|
||||
* http://www.w3.org/TR/2012/WD-html5-20120329/media-elements.html
|
||||
* @type String
|
||||
* @memberOf HTMLVideoElement
|
||||
*/
|
||||
HTMLVideoElement.prototype.poster=new String();
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
/**
|
||||
* Retorna o valor das propriedades do processo. <b><u>Usar em eventos do processo e eventos de ficharios de processo</u></b>.<br>
|
||||
* <pre>
|
||||
*Exemplo:
|
||||
* var numProcesso = getValue("WKNumProces");
|
||||
* </pre>
|
||||
* Valores
|
||||
* <ul>
|
||||
* <li>WKDef Código do processo
|
||||
* <li>WKVersDef Versão do processo
|
||||
* <li>WKNumProces Número do processo
|
||||
* <li>WKNumState Número da atividade
|
||||
* <li>WKCompany Número da Empresa
|
||||
* <li>WKUser Usuário Corrente
|
||||
* </ul>
|
||||
* @memberOf Global
|
||||
* @param {String} nome Nome da propriedade do processo
|
||||
* @returns {String} valor da propriedade <code>nome</code>
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
getValue = function(nome){return "";};
|
||||
|
||||
/**
|
||||
* Disponibiliza diversas funções para manipulação do fichário.
|
||||
* <b><u>Usar em eventos do Fichário(que recebem form como parâmetro)</u></b>.
|
||||
* @super Object
|
||||
* @memberOf Form
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Habilita/Desabilita a edição de um campo do formulário.
|
||||
* <b><u>Usar em eventos do Fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* form.setEnabled("campo1", false);
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {String} nomeCampo nome do Campo do fichário
|
||||
* @param {Boolean} habilita flag informando se o campo será habilitado ou não
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.setEnabled = function(nomeCampo, habilita){};
|
||||
|
||||
/**
|
||||
* Verifica se um campo do formulário esta Habilitado/Desabilitado.
|
||||
* <b><u>Usar em eventos do Fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var habilitado = form.getEnabled("campo1");
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {String} nomeCampo nome do Campo do fichário
|
||||
* @returns {Boolean} flag indicando se o campo esta habilitado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.getEnabled = function(nomeCampo){ return false;};
|
||||
|
||||
|
||||
/**
|
||||
* Atribui valor a um campo do formulário.
|
||||
* <b><u>Usar em eventos do Fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* form.setValue("campo1", "valor1");
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {String} nomeCampo nome do Campo do fichário
|
||||
* @param {String} valor novo valor do campo
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.setValue = function(nomeCampo, valor){};
|
||||
|
||||
/**
|
||||
* Retorna o valor de um campo do formulário.
|
||||
* <b><u>Usar em eventos do Fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var valor = form.getValue("campo1");
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {String} nomeCampo nome do Campo do fichário
|
||||
* @returns {String} valor retorna o valor atual do campo
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.getValue = function(nomeCampo, valor){};
|
||||
|
||||
/**
|
||||
* Indica se o campo desabilitado é exibido como input (readonly) ou como label.
|
||||
* <b><u>Usar em eventos do fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* form.setShowDisabledFields(true);
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {Boolean} condicao true para a ficha ser visualizada em formato HTML com os campos desabilitados (padrão false)
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.setShowDisabledFields = function(condicao){};
|
||||
|
||||
/**
|
||||
* Indica se o link "imprimir" é exibido.
|
||||
* <b><u>Usar em eventos do fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* setHidePrintLink(true);
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {Boolean} condicao true para esconder o link "imprimir" e false para o link ser exibido (padrão false).
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.setHidePrintLink = function(condicao){};
|
||||
|
||||
/**
|
||||
* Indica se o botão "excluir" é exibido.
|
||||
* <b><u>Usar em eventos do Fichário(que recebem form como parâmetro)</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* setHideDeleteButton(true);
|
||||
*</pre>
|
||||
* @memberOf Form
|
||||
* @param {Boolean} condicao true para esconder o botão "excluir" e false para o link ser exibido (padrão false).
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Form.setHideDeleteButton = function(condicao){};
|
||||
|
||||
|
||||
|
||||
var form = new Form();
|
||||
|
||||
/**
|
||||
* Possibilita incluir conteúdo no html.
|
||||
* <b><u>Usar no evento displayFields do fichário</u></b>.
|
||||
* @super Object
|
||||
* @memberOf customHTML
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
customHTML.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Adiciona conteúdo no final do HTML do fichário.
|
||||
* <b><u>Usar no evento displayFields do fichário</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* customHTML.append("<script>var teste = '1';</script>");
|
||||
* customHTML.append("<script>var usuario ='").append( getValue("WKUser") ).append("'</script>");
|
||||
*</pre>
|
||||
* @memberOf customHTML
|
||||
* @param {String} conteudo String com o conteúdo a ser incluido no HTML
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
customHTML.append = function(conteudo){};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,251 @@
|
||||
|
||||
hAPI.prototype = new Object();
|
||||
|
||||
/**
|
||||
* Idem função entry do Progress. Retorna a ocorrência <b>numEntrada</b> após o split da string.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* //O valor retornado é "v2"
|
||||
* var valor = hAPI.entry(2, "v1;v2;v3", ";");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Number} numEntrada
|
||||
* @param {String} str
|
||||
* @param {String} delimitador
|
||||
* @returns {String} Retorna a ocorrencia <b>numEntrada</b>
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.entry = function(numEntrada, str, delimitador){return "";};
|
||||
|
||||
/**
|
||||
* Retorna o valor de um campo do fichário.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var valor = hAPI.getCardValue("campo1");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {String} nomeCampo nome do Campo
|
||||
* @returns {String} Valor do campo informado
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.getCardValue = function(nomeCampo){return "";};
|
||||
|
||||
/**
|
||||
* Atribui novo valor a um campo do fichário.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* hAPI.setCardValue("campo1", "valorX");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {String} nomeCampo nome do Campo
|
||||
* @param {String} valor novo valor para o Campo
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.setCardValue = function(nomeCampo, valor){};
|
||||
|
||||
/**
|
||||
* Encaminha o processo para uma determinada Atividade. Deve ser usado para tomar decisões em atividades automáticas de listener (AutomaticTasks)<br>
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var colaboradores = new java.util.ArrayList();
|
||||
* colaboradores.add("adm");
|
||||
* hAPI.setAutomaticDecision(2, colaboradores, "Decisão Automática");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Number} numAtividade Número da Atividade de destino.
|
||||
* @param {Array} responsaveis Lista com o ID dos colaboradores que receberão a atividade.
|
||||
* @param {String} comentario Comentario da atividad no processo.
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.setAutomaticDecision = function(numAtividade, responsaveis, comentario){};
|
||||
|
||||
/**
|
||||
* Lista todas as threads em execução de um processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var threads = hAPI.getActiveStates();
|
||||
* log.info(threads.get(0));
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @returns {List} Lista com todas as threads em execução
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.getActiveStates = function(){return [];};
|
||||
|
||||
/**
|
||||
* Atribui um novo prazo a uma atividade do processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var processo = new java.lang.Integer( getValue("WKNumProces") );
|
||||
* var data = new java.text.SimpleDateFormat("dd/MM/yyyy").parse( "10/10/2010" );
|
||||
* hAPI.setDueDate(processo, 0, "adm", data, 0);
|
||||
* //Define o prazo para Hoje ao meio dia
|
||||
* hAPI.setDueDate(1, 0, "adm", new java.util.Date(), (12 * 60 * 60) );
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Number} numProcesso Id do processo
|
||||
* @param {Number} numThread Id da thread (geralmente 0). Usado para processos que possuem FORK.
|
||||
* @param {String} colaborador Id do responsavel pela atividade
|
||||
* @param {Number} segundos Usado para calcular a hora do prazo. Deve ser informado a quantidade de segundos para atingir uma determida hora.
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.setDueDate = function(numProcesso, numThread, colaborador, novaData, segundos){};
|
||||
|
||||
|
||||
/**
|
||||
* Transfere o processo atual para outro(s) colaborador(es).
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var colaboradores = new java.util.ArrayList();
|
||||
* colaboradores.add("adm");
|
||||
* hAPI.transferTask(colaboradores, "Tarefa Transferida", 0);
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Array} colaboradores Lista com os colaboradores que receberão a atividade.
|
||||
* @param {String} comentario Comentário do processo para transferência
|
||||
* @param {Number} numThread Id da thread (geralmente 0). Usado para processos que possuem FORK.
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.transferTask = function(colaboradores, comentario, numThread){};
|
||||
|
||||
/**
|
||||
* Transfere o processo atual para outro(s) colaborador(es).
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var colaboradores = new java.util.ArrayList();
|
||||
* colaboradores.add("adm");
|
||||
* hAPI.transferTask(colaboradores, "Tarefa Transferida");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Array} colaboradores Lista com os colaboradores que receberão a atividade.
|
||||
* @param {String} comentario Comentário do processo para a transferência
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.transferTask = function(colaboradores, comentario){};
|
||||
|
||||
/**
|
||||
* Define uma observação para a atividade atual do processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var processo = new java.lang.Integer( getValue("WKNumProces") );
|
||||
* hAPI.setTaskComments(getValue("WKUser"), processo, 0, "Comentario Atividade");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {String} colaboradore Id do colaborador.
|
||||
* @param {Number} numProcesso Id do processo
|
||||
* @param {Number} numThread Id da thread (geralmente 0). Usado para processos que possuem FORK.
|
||||
* @param {String} comentario Comentário do processo para a atividade corrente
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.setTaskComments = function(colaborador, numProcesso, numThread, comentario){};
|
||||
|
||||
/**
|
||||
* Retorna o valor de uma propriedade avançada do Processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var valor = hAPI.getAdvancedProperty("Propriedade1");
|
||||
* log.info(valor);
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {String} nomePropriedade Id da propriedade cadastrada.
|
||||
* @returns {String} valor da propriedade
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.getAdvancedProperty = function(nomePropriedade){return "";};
|
||||
|
||||
|
||||
/**
|
||||
* Retorna os valores do fichário do processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var card = hAPI.getCardData(186);
|
||||
* log.info(card.get("campo1"));
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Number} numProcesso Id do processo.
|
||||
* @returns {Object} HashMap com os valores do fiha do processo
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.getCardData = function(numProcesso){return new Object();};
|
||||
|
||||
/**
|
||||
* Inicia uma nova instância de um processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var lista = new java.util.ArrayList();
|
||||
* lista.add("adm");
|
||||
* var resposta = hAPI.startProcess("ProcessoXPTO",
|
||||
* 0,
|
||||
* lista ,
|
||||
* "Iniciado automaticamente",
|
||||
* false,
|
||||
* null,
|
||||
* false);
|
||||
* var numProcessoCriado = resposta.get("iProcess");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {String} idProcesso Código do processo cadastrado no Fluig.
|
||||
* @param {Number} numAtividade Número da atividade de inicio do processo. Pode ser informado 0.
|
||||
* @param {Array} colaboradores Id dos usuários que receberão a atividade.
|
||||
* @param {String} comentario Comentário para a atividade do processo.
|
||||
* @param {Boolean} completaTarefa indica se a tarefa sera finalizada após a criação do processo.
|
||||
* @param {Object} valoresFicha HashMap representando propriedade/valor dos campos do fichario do processo.
|
||||
* @param {Boolean} modoGestor indica se a tarefa sera inicializada com o modo gestor do Fluig ativo.
|
||||
* @returns {Object} HashMap com informações referentes ao processo criado
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.startProcess = function(idProcesso, numAtividade, colaboradores, comentario, completaTarefa, valoresFicha, modoGestor){return new Object();};
|
||||
|
||||
/**
|
||||
* Atribui um usuario substituto para a atividade atual do processo.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* hAPI.setColleagueReplacement("adm");
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {String} novoResponsavel Id do colaborador substituto.
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.setColleagueReplacement = function(novoResponsavel){};
|
||||
|
||||
/**
|
||||
* Retorna o link para movimentação da solicitação.
|
||||
* <b><u>Usar em eventos do Processo</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var valor = getUserTaskLink(2);
|
||||
* log.info(valor);
|
||||
*</pre>
|
||||
* @memberOf hAPI
|
||||
* @param {Number} numAtividade Número da Atividade de destino.
|
||||
* @returns {String} Link para movimentação da solicitação.
|
||||
* @since Fluig 1.1.4
|
||||
* @see http://www.totvs.com.br
|
||||
*/
|
||||
hAPI.getUserTaskLink = function(numAtividade){return "";};
|
||||
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Disponibiliza diversas funções para consulta de informações da entidade documento.
|
||||
* <b><u>Usar em eventos do Fluig</u></b>.
|
||||
* @super Object
|
||||
* @memberOf relatedDocumentDto
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
relatedDocumentDto.prototype=new Object();
|
||||
/**
|
||||
* Retorna o número do documento. <br><br>
|
||||
* <b><u>Usar em eventos do Fluig</u></b>.
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Retorna o número do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
relatedDocumentDto.getDocumentId = function(){return "";};
|
||||
/**
|
||||
* Retorna o número do documento relacionado. <br><br>
|
||||
* <b><u>Usar em eventos do Fluig</u></b>.
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Número do documento relacionado
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
relatedDocumentDto.getRelatedDocumentId = function(){return "";};
|
||||
/**
|
||||
* Retorna a versão do documento. <br><br>
|
||||
* <b><u>Usar em eventos do Fluig</u></b>.
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Retorna a versão do documento
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
relatedDocumentDto.getVersion = function(){return "";};
|
||||
/**
|
||||
* Retorna o código da empresa em que o <br>
|
||||
* documento foi publicado. <br><br>
|
||||
* <b><u>Usar em eventos do Fluig</u></b>.
|
||||
*<pre>
|
||||
* @memberOf relatedDocumentDto
|
||||
* @returns int Retorna o código da empresa em que o documento foi publicado.
|
||||
* @since Fluig 1.0
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
relatedDocumentDto.getCompanyId = function(){return "";};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,438 @@
|
||||
/**
|
||||
* Retorna o dados de um determinado dataset/fichário. <b><u>Usar no HTML de qualquer fichário</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
* <pre>
|
||||
*Exemplo:
|
||||
*
|
||||
* var filtro = new Object();
|
||||
* filtro["colleaguePK.colleagueId"] = "adm";
|
||||
* var colaboradores = getDatasetValues("colleague", filtro);
|
||||
*
|
||||
* if(colaboradores.length > 0) {
|
||||
* alert(colaboradores[0].colleagueName);
|
||||
* }
|
||||
* <pre>
|
||||
* @memberOf Global
|
||||
* @param {String} nome Nome do dataset (para datasets padrões do produto) ou código do fichário (para datasets de fichários)
|
||||
* @param {Object} filtro Filtro
|
||||
* @returns {Array} Array de Objetos representando os valores do dataset <code>nome</code>
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
getDatasetValues = function(nome, filtro){return [];};
|
||||
|
||||
/**
|
||||
* Propriedade que contém a versão do Workflow.<b><u>Usar somente em HTML de Processos</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
* @type {String}
|
||||
* @memberOf Global
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Global.prototype.WKVersDef="";
|
||||
/**
|
||||
* Propriedade que contém o ID (código) do Workflow corrente.<b><u>Usar somente em HTML de Processos</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
* @type {String}
|
||||
* @memberOf Global
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Global.prototype.WKNumProces="";
|
||||
|
||||
/**
|
||||
* Propriedade que contém o ID da atividade atual do Workflow.<b><u>Usar somente em HTML de Processos</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
* @type {String}
|
||||
* @memberOf Global
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Global.prototype.WKNumState="";
|
||||
|
||||
/**
|
||||
* Objeto que contém os valores dos tipos de Campo para um dataset. Usado na criação os campos da função <code>defineStructure</code>.
|
||||
*
|
||||
* @super Object
|
||||
* @memberOf DatasetFieldType
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFieldType.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Determina que a coluna criada será do tipo Number
|
||||
* @memberOf DatasetFieldType
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFieldType.NUMBER=0;
|
||||
|
||||
/**
|
||||
* Determina que a coluna criada será do tipo STRING (varchar2(255) no Oracle)
|
||||
* @memberOf DatasetFieldType
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFieldType.STRING=0;
|
||||
|
||||
/**
|
||||
* Determina que a coluna criada será do tipo TEXT (varchar2(4000) no Oracle)
|
||||
* @memberOf DatasetFieldType
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFieldType.TEXT=0;
|
||||
|
||||
/**
|
||||
* Determina que a coluna criada será do tipo Date
|
||||
* @memberOf DatasetFieldType
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFieldType.DATE=0;
|
||||
|
||||
/**
|
||||
* Determina que a coluna criada será do tipo Boolean
|
||||
* @memberOf DatasetFieldType
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFieldType.BOOLEAN=0;
|
||||
|
||||
/**
|
||||
* Objeto que contém os valores dos tipos de Constraint. Usado para criar constraints para a funçõo <code>getDataset</code>.
|
||||
* <b><u>Usar no HTML de qualquer fichário</u></b>.
|
||||
* @super Object
|
||||
* @memberOf ConstraintType
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
ConstraintType.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Valor indicando que a constraint deve ser igual ao valor informado.
|
||||
* @memberOf ConstraintType
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
ConstraintType.MUST=0;
|
||||
/**
|
||||
* Valor indicando que a constraint pode ser igual ao valor informado (OR).
|
||||
* @memberOf ConstraintType
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
ConstraintType.SHOULD=0;
|
||||
/**
|
||||
* Valor indicando que a constraint deve ser diferente ao valor informado.
|
||||
* @memberOf ConstraintType
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
ConstraintType.MUST_NOT=0;
|
||||
|
||||
|
||||
/**
|
||||
* Objeto retornado pelo metodo <code>getDataset</code> da objeto <code>DatasetFactory</code>.
|
||||
* <b><u>Usar no HTML de qualquer fichário, dataset e eventos de processo</u></b>.
|
||||
* @super Object
|
||||
* @memberOf Dataset
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Informa a quantidade de registros retornados pela consulta do Dataset. <b><u>Usar no HTML de qualquer fichário</u></b>.<br>
|
||||
* @memberOf Dataset
|
||||
* @returns Number quantidade de registros retornados pela consulta
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.rowsCount = 0;
|
||||
|
||||
/**
|
||||
* Retorna o valor de uma linha/coluna de um dataset.
|
||||
* @memberOf Dataset
|
||||
* @param {Number} linha linha
|
||||
* @param {String} coluna nome da coluna
|
||||
* @returns Object valor do objeto na linha/coluna especificado
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.getValue = function(linha, coluna){return new Object ();};
|
||||
|
||||
|
||||
/**
|
||||
* Cria uma coluna em um dataset criado.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.addRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* @memberOf Dataset
|
||||
* @param {String} coluna nome da coluna
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.addColumn = function(coluna){};
|
||||
|
||||
|
||||
/**
|
||||
* Adiciona uma linha em um dataset criado.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.addRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* @memberOf Dataset
|
||||
* @param {Array} valores Array contendo os valores de cada coluna
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.addRow = function(valores){};
|
||||
|
||||
/**
|
||||
* Adiciona uma linha a coleção que será persistido no cache de sincronização.
|
||||
* Através de dos campos da chave principal do dataset (setKey) os registros
|
||||
* serão localizados e alterados conforme dados enviados ao comando.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.updateRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* Atenção este método só possui efeito se implementado na função onSync
|
||||
* esta função não possui efeito em consultas online de datasets.
|
||||
* @memberOf Dataset
|
||||
* @param {Array} valores Array contendo os valores de cada coluna
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.updateRow = function(valores){};
|
||||
|
||||
/**
|
||||
* Adiciona registros para uma coleção aonde o fluig verifica se o registro existe na base.
|
||||
* Caso o registro exista ele fará um update no registro caso contrário o registro será inserido na base.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addOrUpdateRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* Atenção! Este método só possui efeito se implementado na função onSync
|
||||
* esta função não possui efeito em consultas online de datasets.
|
||||
* @memberOf Dataset
|
||||
* @param {Array} valores Array contendo os valores de cada coluna
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.addOrUpdateRow = function(valores){};
|
||||
|
||||
/**
|
||||
* Adiciona uma linha a coleção que eliminará esses registros no cache de sincronização.
|
||||
* Através de dos campos definidos na chave principal do dataset (setKey) os registros
|
||||
* serão localizados e removidos.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.deleteRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* Atenção este método só possui efeito se implementado na função onSync
|
||||
* esta função não possui efeito em consultas online de datasets.
|
||||
* @memberOf Dataset
|
||||
* @param {Array} valores Array contendo os valores das colunas chaves para eliminação.
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.deleteRow = function(valores){};
|
||||
|
||||
/**
|
||||
* Cria um indice para maior performance na consulta do dataset
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.addRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* Não tem efeito em consultas online do dataset
|
||||
* @memberOf Dataset
|
||||
* @param {Array} valores Lista de campos que farão parte da chave principal do dataset
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.setKey = function(valores){};
|
||||
|
||||
/**
|
||||
* Cria um ou mais indice para maior performance na consultas do dataset
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.addIndex(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* Não tem efeito em consultas online do dataset
|
||||
* @memberOf Dataset
|
||||
* @param {Array} valores Array contendo os nomes das colunas que irão fazer parte do indice.
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Dataset.addIndex = function(valores){};
|
||||
|
||||
|
||||
/**
|
||||
* Objeto que contém os valores dos tipos de Constraint. Usado para criar constraints para a função <code>getDataset</code>.
|
||||
* <b><u>Usar no HTML de qualquer fichário</u></b>.
|
||||
* @super Object
|
||||
* @memberOf DatasetFactory
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFactory.prototype=new Object();
|
||||
/**
|
||||
* Retorna um Array com os datasets disponíveis. <b><u>Usar no HTML de qualquer fichário</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
* @memberOf DatasetFactory
|
||||
* @returns {Array} Array o nome dos datasets disponíveis
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFactory.getAvailableDatasets = function(){return [];};
|
||||
|
||||
/**
|
||||
* Retorna um Objeto representando uma constraint. Usado para criar constraints para a função <code>getDataset</code>. <b><u>Usar no HTML de qualquer fichário</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var c1 = DatasetFactory.createConstraint("colleagueName", "Alberto", "Claudio", ConstraintType.MUST);
|
||||
* var c1 = DatasetFactory.createConstraint("colleaguePK.colleagueId", "adm", "adm", ConstraintType.MUST);
|
||||
* var c1 = DatasetFactory.createConstraint("valor", "100", "999", ConstraintType.MUST_NOT);
|
||||
*</pre>
|
||||
|
||||
* @memberOf DatasetFactory
|
||||
* @param {String} campo Nome do campo
|
||||
* @param {String} valorInicial Valor inicial
|
||||
* @param {String} valorFinal Valor Final
|
||||
* @param {ConstraintType} tipo Tipo da constraint. ConstraintType.MUST, ConstraintType.SHOULD ou ConstraintType.MUST_NOT.
|
||||
* @returns {Object} Objecto representando a constraint com os parametros informados
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFactory.createConstraint = function(campo, valorInicial, valorFinal, tipo){return new Object ();};
|
||||
|
||||
/**
|
||||
* Pesquisa os dados de um dataset.<code>getDataset</code>. <b><u>Usar no HTML de qualquer fichário</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var c1 = DatasetFactory.createConstraint("colleaguePK.colleagueId", "adm", "adm", ConstraintType.MUST);
|
||||
* var filtro = new Array();
|
||||
* filtro[0] = c1;
|
||||
* var dataset = DatasetFactory.getDataset("colleague", new Array("colleagueName"), filtro, null);
|
||||
*</pre>
|
||||
* @memberOf DatasetFactory
|
||||
* @param {String} nomeDataset Nomde do dataset para efetuar a pesquisa
|
||||
* @param {Array} campos Array com a lista de campos a serem retornados. Passar <code>null</code> para retornar todos os campos.
|
||||
* @param {Array} constraints Array contendo as constrains ou <code>null</code> para retornar todos os registros.
|
||||
* @param {Array} ordem Array com campos para ordenar o resultado da pesquisa.
|
||||
* @returns {Dataset} Array de objetos representando o dataset consultado.
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetFactory.getDataset = function(nomeDataset, campos, constraints, ordem){return new Dataset();};
|
||||
|
||||
|
||||
/**
|
||||
* Objeto que possibilita a criação de datasets customizados.
|
||||
* <b><u>Usar somente em datasets customizados</u></b>.
|
||||
* @super DatasetBuilder
|
||||
* @memberOf DatasetBuilder
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetBuilder.prototype=new Object();
|
||||
|
||||
/**
|
||||
* Cria um novo Dataset.
|
||||
* <b><u>Usar somente em datasets customizados</u></b>.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* var dataset = DatasetBuilder.newDataset();
|
||||
* dataset.addColumn("Coluna1");
|
||||
* dataset.addColumn("Coluna2");
|
||||
* dataset.addRow(new Array("Valor coluna 1", "Valor coluna 2"));
|
||||
*</pre>
|
||||
* @memberOf DatasetBuilder
|
||||
* @returns {Dataset} Novo dataset
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
DatasetBuilder.newDataset = function(){return new Dataset();};
|
||||
|
||||
/**
|
||||
* Cria um campo na estrutura do dataset.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* addColumn("Nome");
|
||||
*</pre>
|
||||
* @param {String} valor Nome da coluna.
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
addColumn = function(nome){};
|
||||
|
||||
/**
|
||||
* Cria um campo na estrutura do dataset definindo seu tipo.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* addColumn("Idade", DatasetFieldType.NUMBER );
|
||||
*</pre>
|
||||
* @param {String} valor Nome da coluna.
|
||||
* @param {DatasetFieldType} tipo Tipo da coluna
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
addColumn = function(nome, tipo){};
|
||||
|
||||
/**
|
||||
* Cria um ou mais indice para maior performance na consultas do dataset
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* addIndex(new Array("Coluna1", "Coluna2"));
|
||||
*</pre>
|
||||
* @param {Array} valores Array contendo os nomes das colunas que irão fazer parte do indice.
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
addIndex = function(valores){};
|
||||
|
||||
/**
|
||||
* Cria a chave principal do dataset para uso das funções updateRecord deleteRecord addOrUpdate
|
||||
* do dataset sincronizado.
|
||||
*<pre>
|
||||
*Exemplo:
|
||||
* setKey(new Array("Coluna1", "Coluna2"));
|
||||
*</pre>
|
||||
* @param {Array} valores Array contendo os nomes das colunas que irão fazer parte da chave princiopal.
|
||||
* @since fluig 1.5.5
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
setKey = function(valores){};
|
||||
|
||||
|
||||
@@ -0,0 +1,496 @@
|
||||
|
||||
TLib.prototype=new Object();
|
||||
/**
|
||||
* WCM Library
|
||||
*/
|
||||
var WCMAPI = new TLib();
|
||||
|
||||
/**
|
||||
* Changes a browser cookie value
|
||||
*/
|
||||
TLib.prototype.setCookie = function(cookieName, value, expireTimeInDays) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns a browser cookien by its name
|
||||
*/
|
||||
TLib.prototype.getCookie = function(cookieName) {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the default domain url
|
||||
*/
|
||||
TLib.prototype.getDefaultDomainURL = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Parse an error in order to make it human readable
|
||||
*/
|
||||
TLib.prototype.failHandler = function(args) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Verify is a object is an array
|
||||
*/
|
||||
TLib.prototype.isArray = function(obj) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Identify the browser and inserts its name and version into the message body
|
||||
*/
|
||||
TLib.prototype.identifyBrowser = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* Verify if there are errors in the response.
|
||||
*/
|
||||
TLib.prototype.returnOk = function(response) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Sends (GET) messages to the server. errorCallback is optional
|
||||
*/
|
||||
TLib.prototype.callCommand = function(command, data, oObj, callback,
|
||||
errorCallback, dataType) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if the version has expired and schedules to show the session
|
||||
* expiration alert to about one hour.
|
||||
*/
|
||||
TLib.prototype.extendSession = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* Shows a session expired message
|
||||
*/
|
||||
TLib.prototype.expireSession = function(tLibSelf) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if the user is logged, or not
|
||||
*/
|
||||
TLib.prototype.getUserIsLogged = function() {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns space alias character
|
||||
*/
|
||||
TLib.prototype.getSpaceAlias = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the server url
|
||||
*/
|
||||
TLib.prototype.getServerURL = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the context path
|
||||
*/
|
||||
TLib.prototype.getContextPath = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the server context URL
|
||||
*/
|
||||
TLib.prototype.getServerContextURL = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the Page Code (used for url)
|
||||
*/
|
||||
TLib.prototype.getPageCode = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the type of the page
|
||||
*/
|
||||
TLib.prototype.getPageType = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the page layout
|
||||
*/
|
||||
TLib.prototype.getPageLayout = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the parent page code of the current page
|
||||
*/
|
||||
TLib.prototype.getParentPageCode = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the frienldy (tiny) URL
|
||||
*/
|
||||
TLib.prototype.getFriendlyURL = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the theme ID
|
||||
*/
|
||||
TLib.prototype.getThemeId = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the menu color
|
||||
*/
|
||||
TLib.prototype.getColorMenu = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the background color
|
||||
*/
|
||||
TLib.prototype.getColorBackground = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the image background, when it exists. Otherwise returns null
|
||||
*/
|
||||
TLib.prototype.getImageBackground = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the image logo, when it exists. Otherwise returns null
|
||||
*/
|
||||
TLib.prototype.getImageLogo = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the space ID
|
||||
*/
|
||||
TLib.prototype.getSpaceId = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the locale. Default value is pt_BR
|
||||
*/
|
||||
TLib.prototype.getLocale = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the locale display name. Default is português (Brasil)
|
||||
*/
|
||||
TLib.prototype.getLocaleDisplayName = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Changes the session locale
|
||||
*/
|
||||
TLib.prototype.changeLocale = function(locale) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if the current user has administration role
|
||||
*/
|
||||
TLib.prototype.isAdmin = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns user name.
|
||||
*/
|
||||
TLib.prototype.getUser = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns user login
|
||||
*/
|
||||
TLib.prototype.getUserLogin = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns current user ID
|
||||
*/
|
||||
TLib.prototype.getUserId = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns organization ID
|
||||
*/
|
||||
TLib.prototype.getOrganizationId = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns current tenant ID
|
||||
*/
|
||||
TLib.prototype.getTenantId = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns current Tenant Code
|
||||
*/
|
||||
TLib.prototype.getTenantCode = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns current user code
|
||||
*/
|
||||
TLib.prototype.getUserCode = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns current user e-mail
|
||||
*/
|
||||
TLib.prototype.getUserEmail = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Register a new listener in the listeners buffer
|
||||
*/
|
||||
TLib.prototype.addListener = function(oObj, eventName, callback, listenerName) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Remove a listener from the listener buffer
|
||||
*/
|
||||
TLib.prototype.removeListener = function(eventName, listenerName) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Fire an event listener
|
||||
*/
|
||||
TLib.prototype.fireEvent = function(eventName, data) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Verify if an listener is already registered.
|
||||
*/
|
||||
TLib.prototype.containsListener = function(eventName, listener, varIdx) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Executes Login
|
||||
*/
|
||||
TLib.prototype.login = function(user, password) {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Executes Logoff
|
||||
*/
|
||||
TLib.prototype.logoff = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* Generic load CSS.
|
||||
*/
|
||||
TLib.prototype.loadCSS = function(path) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Generic load java script.
|
||||
*/
|
||||
TLib.prototype.loadJS = function(path) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the javascript base path
|
||||
*/
|
||||
TLib.prototype.jsBasePath = function() {
|
||||
return '';
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks and do authentication in OAuth
|
||||
*/
|
||||
TLib.prototype.validateAndAuthenticateOAuth = function(consumerKey) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Check OAuth
|
||||
*/
|
||||
TLib.prototype.validateOAuth = function(consumerKey) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if the current environment is mobile (Android or iOS only)
|
||||
*/
|
||||
TLib.prototype._isMobile = function() {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if the browser is Internet Explorer
|
||||
*/
|
||||
TLib.prototype.isIe = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if the browser is Internet Explorer 9
|
||||
*/
|
||||
TLib.prototype.isIe9 = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the greater z-index used on the page
|
||||
*/
|
||||
TLib.prototype.getZIndex = function() {
|
||||
return 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns an auto-incremental wcmid
|
||||
*/
|
||||
TLib.prototype.generateId = function() {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Updates an widget preferences and reopen it with edit mode on
|
||||
*
|
||||
* @param instanceId
|
||||
* Widget Instance ID.
|
||||
* @param prefs
|
||||
* Object with the properties to be saved.
|
||||
* @returns <b>true</b> if the operation was successfull or false otherwise.
|
||||
*/
|
||||
TLib.prototype.updateWidgetPreferences = function(instanceId, prefs) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Updates an widget preferences according to the logged user and reopen it with
|
||||
* edit mode on
|
||||
*
|
||||
* @param instanceId
|
||||
* Widget Instance ID.
|
||||
* @param prefs
|
||||
* Object with the properties to be saved.
|
||||
* @param targetID
|
||||
* Area ID <i>(Usually a "div")</i> where the content will be
|
||||
* renderized in case of success
|
||||
* @returns <b>true</b> if the operation was successfull or false otherwise.
|
||||
*/
|
||||
TLib.prototype.updateUserWidgetPreferences = function(instanceId, prefs) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns the value of a certain URL parameter name
|
||||
*/
|
||||
function getURLParameter(name) {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns value of a certain session attribute
|
||||
*/
|
||||
TLib.prototype.getSessionAttribute = function(name) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns value of a certain URL parameter
|
||||
*/
|
||||
TLib.prototype._get = function(name) {
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns value of a certain URL parameter based on its name and URL too
|
||||
*/
|
||||
TLib.prototype._getParam = function(url, name) {
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Alias for "String.replaceAll()"
|
||||
*/
|
||||
TLib.prototype.replaceAll = function(str, de, para) {
|
||||
return "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if the object is a JSON
|
||||
*/
|
||||
TLib.prototype.isJSON = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns <b>true</b> if object is undefined or <b>false</b> otherwise
|
||||
*/
|
||||
TLib.prototype.isUndefined = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns <b>true</b> if object is null or <b>false</b> otherwise
|
||||
*/
|
||||
TLib.prototype.isNull = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns <b>true</b> if object is a String or <b>false</b> otherwise
|
||||
*/
|
||||
TLib.prototype.isString = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns <b>true</b> if object is a Number or <b>false</b> otherwise
|
||||
*/
|
||||
TLib.prototype.isNumber = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/** similar to the YAHOO.lang.isObject */
|
||||
TLib.prototype.isObject = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns clone of a certain object
|
||||
*/
|
||||
TLib.prototype.cloneObject = function(source) {
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
@returns <b>true</b> if object is empty or <b>false</b> otherwise
|
||||
*/
|
||||
TLib.prototype.isEmpty = function(object) {
|
||||
return true;
|
||||
};
|
||||
|
||||
// TODO: existia no wcm-core.js.
|
||||
WCM = {};
|
||||
WCM.contextUrl = WCMAPI.getContextPath() + "/wcm";
|
||||
WCM.restUrl = "/wcm/api/rest/wcm/";
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Propriedade contentdo o último Id de um filho (cadastro pai/filho).<b><u>Disponível quando o fichário possui um pai/filho padrão</u></b>.<br>
|
||||
* <table tablename="nomeDoFilho"></table>
|
||||
* @type {Number}
|
||||
* @memberOf Global
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
Global.prototype.newId=0;
|
||||
|
||||
|
||||
/**
|
||||
* Retorna o dados de um determinado dataset/fichário. <b><u>Usar no HTML de qualquer fichário</u></b>.<br>
|
||||
*<u>O arquivo vcXMLRPC.js precisa ser declarado</u><br>
|
||||
*<script> type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
* <pre>
|
||||
*Exemplo:
|
||||
*
|
||||
* var filtro = new Object();
|
||||
* filtro["colleaguePK.colleagueId"] = "adm";
|
||||
* var colaboradores = getDatasetValues("colleague", filtro);
|
||||
*
|
||||
* if(colaboradores.length > 0) {
|
||||
* alert(colaboradores[0].colleagueName);
|
||||
* }
|
||||
* <pre>
|
||||
* @memberOf Global
|
||||
* @param {String} tablename nome da tabela filho. Atributo <code>tablename</code> de uma table.
|
||||
* @returns {Number} Id do filho criado
|
||||
* @since Fluig 1.3
|
||||
* @see http://www.fluig.com
|
||||
*/
|
||||
wdkAddChild = function(tablename){return 0;};
|
||||
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2011 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
******************************************************************************
|
||||
*
|
||||
* Based on information from https://developer.mozilla.org/En/XMLHttpRequest
|
||||
* and http://msdn2.microsoft.com/en-us/library/ms533062.aspx
|
||||
**/
|
||||
|
||||
/**
|
||||
* function createRequest
|
||||
* @type XMLHttpRequest
|
||||
* @memberOf Window
|
||||
*/
|
||||
Window.prototype.createRequest= function(){return new XMLHttpRequest();};
|
||||
/**
|
||||
* Object XMLHttpRequest
|
||||
* @type constructor
|
||||
*/
|
||||
XMLHttpRequest.prototype=new Object();
|
||||
function XMLHttpRequest(){};
|
||||
|
||||
/**
|
||||
* function onreadystatechange
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.onreadystatechange=function(){};
|
||||
/**
|
||||
* property readyState
|
||||
* @type Number
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.readyState=0;
|
||||
/**
|
||||
* property responseText
|
||||
* @type String
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.responseText="";
|
||||
/**
|
||||
* property responseXML
|
||||
* @type Document
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.responseXML=new Document();
|
||||
/**
|
||||
* property status
|
||||
* @type Number
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.status=0;
|
||||
/**
|
||||
* property statusText
|
||||
* @type String
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.statusText="";
|
||||
/**
|
||||
* function abort()
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.abort=function(){};
|
||||
/**
|
||||
* function getAllResponseHeaders()
|
||||
* @type String
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.getAllResponseHeaders=function(){return "";};
|
||||
/**
|
||||
* function open(method, url, async, username, password)
|
||||
* @param {String} method
|
||||
* @param {String} url
|
||||
* @param {Boolean} optional async
|
||||
* @param {String} optional username
|
||||
* @param {String} optional password
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.open=function(method, url, async, username, password){};
|
||||
/**
|
||||
* function send(body)
|
||||
* @param {Object} body
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.send=function(body){};
|
||||
/**
|
||||
* function setRequestHeader(header,value)
|
||||
* @param {String} header
|
||||
* @param {String} value
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.setRequestHeader=function(header,value){};
|
||||
/**
|
||||
* function getAllResponseHeaders()
|
||||
* @param {String} header
|
||||
* @type String
|
||||
* @memberOf XMLHttpRequest
|
||||
*/
|
||||
XMLHttpRequest.prototype.getResponseHeader=function(header){return "";};
|
||||
Reference in New Issue
Block a user