first classes of file_upload_module. nothing implemented yet

This commit is contained in:
fmurer
2015-12-29 23:37:29 +01:00
parent 85dfc45f8b
commit f439a791a9
3 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
note
description: "cms_file_upload application root class"
date: "$Date$"
revision: "$Revision$"
class
CMS_FILE_UPLOAD
inherit
CMS_NODE
redefine
make_empty
end
create
make_empty,
make
feature {NONE} -- Initialisation
make_empty
do
Precursor
end
feature -- Access
content_type: READABLE_STRING_8
feature -- Access: node
summary: detachable READABLE_STRING_32
-- A short summary of the node.
content: detachable READABLE_STRING_32
-- Content of the node.
format: detachable READABLE_STRING_8
-- Format associated with `content' and `summary'.
-- For example: text, mediawiki, html, etc
feature -- Element change: node
set_content (a_content: like content; a_summary: like summary; a_format: like format)
do
content := a_content
summary := a_summary
format := a_format
end
end

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-15-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-15-0 http://www.eiffel.com/developers/xml/configuration-1-15-0.xsd" name="cms_file_upload" uuid="1059EB41-2A5D-4B40-8452-EFE313DA18AD">
<target name="cms_file_upload">
<root class="CMS_FILE_UPLOAD" feature="make"/>
<option warning="true">
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
</option>
<setting name="console_application" value="true"/>
<precompile name="base_pre" location="$ISE_PRECOMP\base-safe.ecf"/>
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
<library name="base_extension" location="$ISE_LIBRARY\library\base_extension\base_extension-safe.ecf"/>
<library name="cms" location="\home\fmurer\Documents\EWF_ROC\ROC\cms-safe.ecf"/>
<library name="cms_model" location="\home\fmurer\Documents\EWF_ROC\ROC\library\model\cms_model-safe.ecf"/>
<library name="error" location="$ISE_LIBRARY\contrib\library\utility\general\error\error-safe.ecf"/>
<library name="http" location="$ISE_LIBRARY\contrib\library\network\protocol\http\http-safe.ecf"/>
<library name="json" location="$ISE_LIBRARY\contrib\library\text\parser\json\library\json-safe.ecf"/>
<library name="node" location="\home\fmurer\Documents\EWF_ROC\ROC\modules\node\node-safe.ecf"/>
<library name="text_filter" location="$ISE_LIBRARY\unstable\library\text\text_filter\text_filter-safe.ecf"/>
<library name="time" location="$ISE_LIBRARY\library\time\time-safe.ecf"/>
<library name="wsf" location="$ISE_LIBRARY\contrib\library\web\framework\ewf\wsf\wsf-safe.ecf"/>
<library name="wsf_encoder" location="\home\fmurer\Documents\EWF_ROC\eiffelstudio-src\contrib\library\web\framework\ewf\text\encoder\encoder-safe.ecf"/>
<library name="wsf_extension" location="$ISE_LIBRARY\contrib\library\web\framework\ewf\wsf\wsf_extension-safe.ecf"/>
<library name="wsf_html" location="$ISE_LIBRARY\contrib\library\web\framework\ewf\wsf_html\wsf_html-safe.ecf"/>
<cluster name="cms_file_upload" location=".\" recursive="true">
<file_rule>
<exclude>/.svn$</exclude>
<exclude>/CVS$</exclude>
<exclude>/EIFGENs$</exclude>
</file_rule>
</cluster>
</target>
</system>

View File

@@ -0,0 +1,40 @@
note
description: "Summary description for {CMS_FILE_UPLOAD_MODULE}."
author: "fmurer"
date: "$Date$"
revision: "$Revision$"
class
CMS_FILE_UPLOAD_MODULE
inherit
CMS_MODULE
rename
module_api as file_upload_api
end
create
make
feature {NONE} -- Initialisation
make
do
version := "1.0"
description := "Service to upload a file"
package := "demo"
add_dependency({CMS_NODE_MODULE})
end
feature -- Access
name: STRING = "file_uploader"
feature -- Access: router
setup_router(a_router: WSF_ROUTER; a_api: CMS_API)
-- <Precurser>
do
end
end