new FileHandler(callback, ajax, serviceTranslator, xmlToJson, prompt, loader, fileUploader)
Example
new App.file.FileHandler({})
Parameters:
Name | Type | Description |
---|---|---|
callback |
||
ajax |
||
serviceTranslator |
||
xmlToJson |
||
prompt |
||
loader |
||
fileUploader |
Methods
(static) addObjectIdToCheckinRequest(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
(static) defaultFileUploader(data) → {Promise.<any>}
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
- Type
- Promise.<any>
(static) defaultGetPrompt(message, defaultValue) → {string}
Parameters:
Name | Type | Description |
---|---|---|
message |
||
defaultValue |
Returns:
- Type
- string
(static) handleError(error, originalCheckinObject, status) → {Promise.<never>}
Parameters:
Name | Type | Description |
---|---|---|
error |
||
originalCheckinObject |
||
status |
Returns:
- Type
- Promise.<never>
(static) isHandled(error) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
error |
Returns:
- Type
- boolean
baseCheckinDone(checkinObject, serviceMethod) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
||
serviceMethod |
Returns:
- Type
- *
baseCheckinStart(checkinObject, serviceMethod) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
||
serviceMethod |
Returns:
- Type
- *
checkinCancel(checkinObject)
Fire and forget this request. It's just for releasing of some server side resources allocated with this drop operation. Catches all errors
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
checkinDone(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
checkinStart(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
doCheckin(data, oid, fmt, fn, newFn) → {*}
Parameters:
Name | Type | Description |
---|---|---|
data |
||
oid |
||
fmt |
||
fn |
||
newFn |
Returns:
- Type
- *
oneStepCheckinDone(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
oneStepCheckinStart(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
promptUser(userInput, uiInput, fileName) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
userInput |
||
uiInput |
||
fileName |
Returns:
- Type
- boolean
resolveCheckinStart(checkinObject, resp, serviceMethod) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
||
resp |
||
serviceMethod |
Returns:
- Type
- *
startLoader()
stopLoader()
uploadFile(checkinObject) → {Promise.<(any|never|never)>}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- Promise.<(any|never|never)>