Index: lams_tool_eadventure/.classpath
===================================================================
diff -u
--- lams_tool_eadventure/.classpath (revision 0)
+++ lams_tool_eadventure/.classpath (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_eadventure/.cvsignore
===================================================================
diff -u
--- lams_tool_eadventure/.cvsignore (revision 0)
+++ lams_tool_eadventure/.cvsignore (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,3 @@
+.myeclipse
+.mymetadata
+build
Index: lams_tool_eadventure/.project
===================================================================
diff -u
--- lams_tool_eadventure/.project (revision 0)
+++ lams_tool_eadventure/.project (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,43 @@
+
+
+ lams_tool_larsrc
+
+
+
+
+
+ com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator
+
+
+
+
+ com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator
+
+
+
+
+ com.ibm.etools.validation.validationbuilder
+
+
+
+
+ com.ibm.sse.model.structuredbuilder
+
+
+
+
+
+ com.genuitec.eclipse.j2eedt.core.webnature
+ org.eclipse.jdt.core.javanature
+
+
Index: lams_tool_eadventure/axisclient.properties
===================================================================
diff -u
--- lams_tool_eadventure/axisclient.properties (revision 0)
+++ lams_tool_eadventure/axisclient.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,60 @@
+###############################################################################
+# Copyright (c) 2005, 2006 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+!--ScenarioType REQUIRED. Differentiates from "service" scenario. See axisservice.properties.
+ScenarioType=client
+
+!--InitialSelection REQUIRED. Workspace relative URI to the input WSDL or Java.
+InitialSelection=/dynamicWebProjectName/WebContent/wsdl/myService.wsdl
+
+!--Utility property values - use these to list values for the following properties:
+!-- Client.RuntimeId, Client.ServerId
+ListRuntimes=true
+ListServers=true
+!-- Verbose will list informational messages as well as errors if set to true
+Verbose=true
+
+
+!--Client.RuntimeId - ID of web service runtime
+Client.RuntimeId=org.eclipse.jst.ws.axis.creation.axisWebServiceRT
+!--Client.ServerId - ID of target server
+Client.ServerId=org.eclipse.jst.server.tomcat.50
+
+!--ClientProjectName - name of Client project - this property can be used to give the client project a
+!-- different name than the project containing the initial selection
+!--ClientProjectName=clientProjectName
+
+!--ClientEarProjectName- name of Client EAR project - set only if applicable for selected server type
+!--ClientEarProjectName=clientEARProjectName
+
+!--ClientComponentType - type of Client project - the following are valid Axis templates: template.jst.web and template.jst.utility
+!--ClientComponentType=template.jst.web
+
+!-- CustomizeClientMappings - set to true to supply package-namespace mappings type: boolean
+!--CustomizeClientMappings=false
+
+!-- Mappings
+!-- Workspace relative URI to property file containing mappings
+!-- Mappings are used to override the default package names of the generated Java classes.
+!-- Need not be set if CustomizeClientMappings is false
+!-- The content of the properties file must be of the format package = namespace.
+!--Mappings=/testProj/mappings/mappings.txt
+
+!--OverwriteFilesEnabled - set to true to overwrite files that already exist. type:boolean
+!-- note for non-interactive mode it is recommended that this be set to true
+!-- OverwriteFilesEnabled=true
+
+!--CreateFoldersEnabled - set to true create folders necessary during file generation type:boolean
+!-- note for non-interactive mode it is recommended that this be set to true
+!-- CreateFoldersEnabled=true
+
+!--CheckoutFilesEnabled - set to true to check out files with no warning to the user type:boolean
+!-- note for non-interactive mode it is recommended that this be set to true
+!-- CheckoutFilesEnabled=true
Index: lams_tool_eadventure/axisservice.properties
===================================================================
diff -u
--- lams_tool_eadventure/axisservice.properties (revision 0)
+++ lams_tool_eadventure/axisservice.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,71 @@
+###############################################################################
+# Copyright (c) 2005, 2006 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+!-- ScenarioType REQUIRED. Differentiates from "client" scenario. See axisclient.properties.
+ScenarioType=service
+
+!-- InitialSelection REQUIRED. Workspace relative URI to the input WSDL or Java
+InitialSelection=/dynamicWebProjectName/WebContent/myService.wsdl
+
+!--Utility property values - use these to list valid values for the following properties:
+!-- Service.RuntimeId, Service.ServerId
+ListRuntimes=true
+ListServers=true
+!-- Verbose will list informational messages as well as errors if set to true
+Verbose=true
+
+!-- Service.RuntimeId - ID of web service runtime
+Service.RuntimeId=org.eclipse.jst.ws.axis.creation.axisWebServiceRT
+!-- Service.ServerId - ID of target server
+Service.ServerId=org.eclipse.jst.server.tomcat.50
+!-- Service.TypeId - "Top Down EJB" or "Bottom Up EJB"
+!-- Java Bean is default for both Top Down and Bottom Up
+!-- Service.TypeId=Top Down EJB
+
+!-- ServiceProjectName - !--type:String - name of Service project - this property can be used to give the service project a different name than the project containing the initial selection. type: String
+!--ServiceProjectName=serviceProjectName
+!-- ServiceEarProjectName - !--type:String - name of Service project - this property can be used to give the service EAR project a different name than the project containing the initial selection. type: String
+!--ServiceEarProjectName=serviceEarProjectName
+
+!-- Mappings
+!-- Top down or bottom up scenario. Workspace relative URI to property file containing mappings.
+!-- Top Down: Mappings are used to override the default package names of the generated Java template classes.
+!-- The content of the properties file must be of the format namespace=package
+!-- Bottom Up: Mappings are used to override the default namespace names in the generated WSDL.
+!-- The content of the properties file must be of the format package = namespace
+!--Mappings=/testProj/mappings/mappings.txt
+
+!-- JavaOutput
+!-- Top down - String: the workspace relative URI for a Java source folder for the generated Java code - must be existing workspace source folder
+!--JavaOutput=/projectName/JavaSource
+
+!-- Methods
+!-- Bottom up - space delimited string of method signatures (i.e. method1(parmType1) method2(parmType2)) to be exposed in output WSDL. If no list is provided, all methods are exposed.
+!-- Methods=
+
+!-- Style
+!-- Bottom up - String: one of: RPC, DOCUMENT, WRAPPED
+!--Style=DOCUMENT
+
+!-- Use
+!-- Bottom up - String: one of: LITERAL, ENCODED
+!--Use=LITERAL
+
+!--OverwriteFilesEnabled - set to true to overwrite files that already exist. type:boolean
+!-- note for non-interactive mode it is recommended that this be set to true
+!--OverwriteFilesEnabled=true
+
+!--CreateFoldersEnabled - set to true create folders necessary during file generation type:boolean
+!-- note for non-interactive mode it is recommended that this be set to true
+!--CreateFoldersEnabled=true
+
+!--CheckoutFilesEnabled - set to true to check out files with no warning to the user type:boolean
+!-- note for non-interactive mode it is recommended that this be set to true
+!--CheckoutFilesEnabled=true
Index: lams_tool_eadventure/build.properties
===================================================================
diff -u
--- lams_tool_eadventure/build.properties (revision 0)
+++ lams_tool_eadventure/build.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,25 @@
+########################################################################################################################
+### BUILD PROPERTIES ###
+### 1) Do *NOT* use backslashes in paths unless you are sure the ANT task treats them properly. ###
+### 2) Use only ant variables (${foo}) that You declared above or make *SURE* You derive them from the right place. ###
+### 3) Comment out boolean style build settings instead of setting false. Set to false may fail. ###
+### 4) Uncommenting the forceClean attribute *WILL* delete your sourcecode to make place for vcs controlled builds. ###
+###
+########################################################################################################################
+
+### project properties ###
+signature=eueadv10
+project.displayname = lams eadventure tool
+weblib=lib
+
+#project version
+tool.version=20071100
+
+# hide tool option
+hideTool=false
+
+# Minimum compatible version
+min.server.version.number=2.0
+
+# Language files package
+language.files.package=org.eucm.lams.tool.eadventure
Index: lams_tool_eadventure/build.xml
===================================================================
diff -u
--- lams_tool_eadventure/build.xml (revision 0)
+++ lams_tool_eadventure/build.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,509 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | creating directory structure |
+ +------------------------------------------+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | clean |
+ +------------------------------------------+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | generating hibernate metadata |
+ +------------------------------------------+
+
+
+
+ Building hbm.xml files using XDoclet to ${conf.hibernate.mapping.dir} from ${src.java.dir}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | create jar file |
+ +------------------------------------------+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | build jar file |
+ +------------------------------------------+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | Generate the deployment package. |
+ +------------------------------------------+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Deploying the Eadventure tool
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +------------------------------------------+
+ | built war file |
+ +------------------------------------------+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_eadventure/conf/hibernate/mappings/.cvsignore
===================================================================
diff -u
--- lams_tool_eadventure/conf/hibernate/mappings/.cvsignore (revision 0)
+++ lams_tool_eadventure/conf/hibernate/mappings/.cvsignore (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1 @@
+org
Index: lams_tool_eadventure/conf/hibernate/mappings/hibernate.cfg.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/hibernate/mappings/hibernate.cfg.xml (revision 0)
+++ lams_tool_eadventure/conf/hibernate/mappings/hibernate.cfg.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,13 @@
+
+
+
+
+ lams
+ lamsdemo
+ jdbc:mysql://localhost/lams
+ com.mysql.jdbc.Driver
+ org.hibernate.dialect.MySQLDialect
+
+
+
Index: lams_tool_eadventure/conf/jar/META-INF/MANIFEST.MF
===================================================================
diff -u
--- lams_tool_eadventure/conf/jar/META-INF/MANIFEST.MF (revision 0)
+++ lams_tool_eadventure/conf/jar/META-INF/MANIFEST.MF (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,4 @@
+Implementation-Title: LAMS - Eadventure Tool
+Implementation-Version: 2.1
+Implementation-Vendor: LAMS Foundation (http://lamsfoundation.org)
+Class-Path:
\ No newline at end of file
Index: lams_tool_eadventure/conf/language/lams/ApplicationResources.properties
===================================================================
diff -u
--- lams_tool_eadventure/conf/language/lams/ApplicationResources.properties (revision 0)
+++ lams_tool_eadventure/conf/language/lams/ApplicationResources.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,198 @@
+appName = eadventure
+#language code: en
+#locale code: AU
+
+ # CVS ID: $Id$ Exported from the LAMS Community by Ernie Ghiglione on Sat Jul 04 01:38:10 CST 2009
+
+#=================== labels for ShareResources =================#
+
+activity.description =eAdventure Game.
+label.authoring.basic.resource.instructions =Instructions
+label.authoring.heading.instructions =Instructions
+label.authoring.heading.instructions.desc =Please input online and offline instructions
+label.authoring.basic.instruction =Instruction
+label.authoring.basic.resource.add.instruction =Add Instruction
+label.authoring.online.instruction =Online Instructions
+label.authoring.offline.instruction =Offline Instructions
+error.resource.item.desc.blank =Comment/Instruction can not be blank
+activity.helptext =Uploading your resources to share with others.
+tool.display.name =eAdventure Tool
+tool.description =Tool for use eAdventure videogames in the learning design.
+appName =eAdventure
+errorPage.title =Error page
+errorPage.heading =Some error occurs when handling your request
+label.authoring.heading =eAdventure
+label.author.title =eAdventure Authoring
+label.authoring.heading.basic =Basic
+label.next.instruction =Next Instruction
+label.authoring.heading.basic.desc =Basic input information for eAdventure games
+msg.no.instruction =No instruction available.
+label.authoring.heading.advance.desc =Please input advance options for eAdventure game
+label.authoring.basic.title =Title
+label.learning.comment.or.instruction =Comment/Instruction
+label.authoring.basic.add.url =Add URL
+label.authoring.basic.add.file =Add Single File
+label.authoring.basic.resource.list.title =Resource List
+label.authoring.basic.resource.url =URL
+label.authoring.basic.resource.file =File
+label.authoring.basic.resource.website =Website
+label.authoring.basic.resource.verify.url =Verify URL
+label.authoring.basic.resource.preview =Preview
+label.authoring.basic.resource.edit =Edit
+label.authoring.basic.resource.delete =Delete
+monitoring.tab.instructions =Instruction
+label.authoring.advanced.reflectOnActivity =Add Notebook at end of eAdventure game with the following instructions:
+label.authoring.basic.resource.title.input =Title
+label.authoring.basic.resource.url.input =URL
+label.authoring.basic.resource.file.input =File
+label.authoring.basic.resource.description.input =Description
+label.authoring.basic.resource.zip.file.input =Zip file:
+label.authoring.online.file =Upload online file
+label.authoring.offline.file =Upload offline file
+label.authoring.choosefile.button =Choose file
+label.authoring.upload.online.button =Upload Online
+label.authoring.upload.offline.button =Upload Offline
+label.authoring.online.filelist =Online file list
+label.authoring.offline.filelist =Offline file list
+label.authoring.online.delete =Delete
+label.authoring.offline.delete =Delete
+label.authoring.advance.mini.number.resources.view =Minimum number of resources to view
+label.authoring.advance.allow.learner.add.urls =Allow learners to add URLs
+label.authoring.advance.allow.learner.add.files =Allow learners to add Files
+label.authoring.cancel.button =Cancel
+label.description =Description:
+authoring.exception =There is a problem in eAdventure authoring page, the reason is {0}
+error.resource.item.title.blank =Title can not be blank.
+error.resource.item.url.blank =URL can not be blank.
+error.resource.item.file.blank =File can not be blank.
+error.resource.item.invalid.url =Invalid URL format.
+error.upload.failed =Upload file failed: {0}
+error.msg.upload.file.not.found =Could not find upload file {0}.
+error.msg.zip.file.exception =Could not handle zip file when uploading file.
+error.msg.file.not.found =File not found exception occurs when uploading file.
+error.msg.ims.application =ImscpApplicationException occurs when uploading resource item file.
+error.msg.website.no.initial.file =Website zip can not find out initial file (index.htm/html or default.htm/html).
+error.msg.io.exception =IOException occurs when uploading file.
+error.msg.invaid.param.upload =InvalidParameterException occured while trying to upload File.
+error.msg.default.content.not.find =Could not retrieve default content record for this tool.
+authoring.msg.cancel.save =Do you want to close this window without saving?
+label.learning.title =eAdventure Learning
+label.learning.heading =eAdventure
+label.resoruce.to.review =Resources to view
+label.learning.minimum.review =You must view at least {0} of the resources.
+label.check.for.new =Check for new
+label.suggest.new =Suggest a new
+label.learning.new.file =New file details:
+label.learning.new.url =New URL details:
+monitoring.tab.summary =Summary
+monitoring.tab.statistics =Statistic
+monitoring.tab.edit.activity =Edit Activity
+monitoring.label.group =Group
+monitoring.summary.note =Note: number of learners is the number of learners who have viewed the resource.
+monitoring.label.type =Type
+monitoring.label.title =Title
+monitoring.label.suggest =Suggested By
+monitoring.label.number.learners =Number of Learners
+monitoring.label.hide =Hide
+monitoring.label.show =Show
+monitoring.label.user.report = Assessment Report
+monitoring.label.user.loginname =Login name
+monitoring.label.user.name =Name
+monitoring.label.hidden =Hidden
+monitoring.no.report = Report not received
+label.monitoring.edit.activity.cancel =Cancel
+label.monitoring.edit.activity.update =Update
+label.monitoring.edit.activity.edit =Edit
+message.monitoring.edit.activity.not.editable =This Activity is no longer editable
+export.label.resource =Resource
+export.label.no.learning.object =No offline package available
+export.title =Export portfolio of eAdventure activity
+export.init.resource =Initial Resources
+errors.header =
+errors.footer =
+error.valueReqd =Value Required
+error.inputFileTooLarge =Input File size is too large!
+error.uploading =error uploading
+error.title.empty =Title can not be blank
+message.msg.maxFileSize =Max 250K
+label.open =Open
+label.delete =Delete
+label.download =Download
+label.view =View
+label.edit =Edit
+label.completed =Completed
+button.upload =Upload
+button.add =Add
+button.cancel =Cancel
+message.monitoring.summary.no.session =No Session Available
+label.show =Show
+label.hide =Hide
+label.save =Save
+label.cancel =Cancel
+define.later.message =Please wait for the teacher to complete the contents of this activity.
+run.offline.message =This activity is not being done on the computer. Please see your instructor for details.
+message.monitoring.summary.no.resource.for.group =No resource available for this group.
+button.try.again =Try again
+open.in.new.window =Open URL in pop-up
+page.title.monitoring.view.reflection =View Notebook Entries
+button.edit =Edit
+message.no.reflection.available =No notebook available
+error.reflection.emtpy =Please input Notebook Entry
+title.reflection =Notebook Entry
+monitoring.user.reflection =Notebook Entry
+activity.title =eadventure
+label.authoring.save.button =Save
+monitoring.label.access.time =Access time
+label.authoring.advance.lock.on.finished =Lock when finished
+label.authoring.advance.define.completed = Hide "finish button" until eAdventure "completed" var is set
+label.authoring.heading.advance =Advanced
+label.authoring.basic.add.learning.object =Add IMS Content Package
+label.authoring.basic.add.website =Add Zipped Website
+label.authoring.basic.resource.learning.object =IMS CP
+error.msg.ims.package =Invalid IMS CP format.
+message.step.of =Step {0} of {1}
+label.authoring.advance.run.content.auto =Run content automatically (only available if there is exactly one resource)
+label.up =Move Up
+label.down =Move down
+label.continue =Continue
+monitoring.user.fullname =Name
+button.close =Close
+label.monitoring.heading.access =Learners list
+errors.maxfilesize =The uploaded file has exceeded the maximum file size limit of {0} bytes
+error.attachment.executable =The uploaded file is executable, please zip it before uploading.
+lable.learning.minimum.view.number.less =You must view at least another {0} of the resources.
+label.finished =Next Activity
+label.finish =Finished
+error.msg.repository =A repository error occurred while trying to upload the file.
+monitoring.label.attachments =Attachments
+message.activityLocked =The instructor has set this activity not to allow you to view or share any more resources after you have finished it.
+label.export.reflection =Notebook Entries
+message.warnLockOnFinish =Note: After you click on \u201cNext Activity\u201d, if you come back to this Share Resource, you won\u2019t be able to share new resources.
+monitoring.label.instructions =Instructions
+label.on =On
+label.off =Off
+monitor.summary.th.advancedSettings =Advanced Settings
+monitor.summary.td.addNotebook =Add Notebook at end of eAdventure game
+monitor.summary.td.notebookInstructions =Notebook instructions
+label.authoring.advanced.notify.onassigmentsubmit =Notify monitoring teachers when a learner submits a resource
+event.assigment.submit.subject =LAMS: A learner submitted an assigment in a eAdventure tool
+event.assigment.submit.body =The learner {0} submitted an assigment in a eAdventure tool.\n\nThis message was send automatically, following tool''s advanced settings.
+message.alertContentEdit =Warning: One of more learners have accessed this activity. Changing this content will result in learners getting different information.
+error.planner.no.resource.save =There has to be at least one resource to save.
+error.planner.url.blank =In resource {0} URL can not be blank.
+error.planner.file.blank =In resource {0} file can not be blank.
+
+output.desc.learner.score =score
+output.desc.learner.time.taken = time taken
+output.desc.learner.number.of.attempts = attemps
+output.desc.learner.completed = completed
+
+output.desc.learner.user.defined = User defined:
+
+output.desc.shared.items.output.definition.rsrc =Share Resources: Uploaded URLs and paths to files
+
+heading.totalLearnersInGroup = Total Number of Learners in Group:
+
+heading.totalFinishedLearnersInGroup= Number of Finished Learners:
+
+#======= End labels: Exported 172 labels for en AU =====
Index: lams_tool_eadventure/conf/language/lams/ApplicationResources_en_AU.properties
===================================================================
diff -u
--- lams_tool_eadventure/conf/language/lams/ApplicationResources_en_AU.properties (revision 0)
+++ lams_tool_eadventure/conf/language/lams/ApplicationResources_en_AU.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,215 @@
+appName = eadventure
+#language code: en
+#locale code: AU
+
+ # CVS ID: $Id$ Exported from the LAMS Community by Ernie Ghiglione on Sat Jul 04 01:38:10 CST 2009
+
+#=================== labels for ShareResources =================#
+
+activity.description = eAdventure Game.
+label.authoring.basic.resource.instructions =Instructions
+label.authoring.heading.instructions =Instructions
+label.authoring.heading.instructions.desc =Please input online and offline instructions
+label.authoring.basic.instruction =Instruction
+label.authoring.basic.resource.add.instruction =Add Instruction
+label.authoring.online.instruction =Online Instructions
+label.authoring.offline.instruction =Offline Instructions
+error.resource.item.desc.blank =Comment/Instruction can not be blank
+tool.display.name =eAdventure Tool
+tool.description =Tool for use games in a sequence.
+errorPage.title =Error page
+errorPage.heading =Some error occurs when handling your request
+label.authoring.heading =eAdventure
+label.author.title =eAdventure Authoring
+label.authoring.heading.basic =Basic
+label.next.instruction =Next Instruction
+label.authoring.heading.basic.desc =Basic input information for eAdventure
+msg.no.instruction =No instruction available.
+label.authoring.heading.advance.desc =Please input advance options for eAdventure
+label.authoring.basic.title =Title
+label.learning.comment.or.instruction =Comment/Instruction
+label.authoring.basic.add.url =Add URL
+label.authoring.basic.add.file =Add Single File
+label.authoring.basic.resource.preview =Preview
+label.authoring.basic.resource.edit =Edit
+label.authoring.basic.resource.delete =Delete
+monitoring.tab.instructions =Instruction
+label.authoring.advanced.reflectOnActivity =Add Notebook at end of eAdventure with the following instructions:
+label.authoring.basic.resource.title.input =Title
+label.authoring.basic.resource.file.input =File
+label.authoring.basic.resource.description.input =Description
+label.authoring.online.file =Upload online file
+label.authoring.offline.file =Upload offline file
+label.authoring.choosefile.button =Choose file
+label.authoring.upload.online.button =Upload Online
+label.authoring.upload.offline.button =Upload Offline
+label.authoring.online.filelist =Online file list
+label.authoring.offline.filelist =Offline file list
+label.authoring.online.delete =Delete
+label.authoring.offline.delete =Delete
+label.authoring.advance.mini.number.resources.view =Minimum number of resources to view
+label.authoring.advance.allow.learner.add.urls =Allow learners to add URLs
+label.authoring.advance.allow.learner.add.files =Allow learners to add Files
+label.authoring.cancel.button =Cancel
+label.description =Description:
+authoring.exception =There is a problem in eAdventure authoring page, the reason is {0}
+error.resource.item.title.blank =Title can not be blank.
+error.resource.item.url.blank =URL can not be blank.
+error.resource.item.file.blank =File can not be blank.
+error.resource.item.invalid.url =Invalid URL format.
+error.upload.failed =Upload file failed: {0}
+error.msg.upload.file.not.found =Could not find upload file {0}.
+error.msg.zip.file.exception =Could not handle zip file when uploading file.
+error.msg.file.not.found =File not found exception occurs when uploading file.
+error.msg.ims.application =ImscpApplicationException occurs when uploading resource item file.
+error.msg.io.exception =IOException occurs when uploading file.
+error.msg.invaid.param.upload =InvalidParameterException occured while trying to upload File.
+error.msg.default.content.not.find =Could not retrieve default content record for this tool.
+authoring.msg.cancel.save =Do you want to close this window without saving?
+label.learning.title =eAdventure Learning
+label.learning.heading =eAdventure Resources
+label.learning.new.file =New file details:
+monitoring.tab.summary =Summary
+monitoring.tab.statistics =Statistic
+monitoring.tab.edit.activity =Edit Activity
+monitoring.label.group =Group
+monitoring.summary.note =Note: number of learners is the number of learners who have viewed the resource.
+monitoring.label.type =Type
+monitoring.label.title =Title
+monitoring.label.suggest =Suggested By
+monitoring.label.number.learners =Number of Learners
+monitoring.label.hide =Hide
+monitoring.label.show =Show
+monitoring.label.user.loginname =Login name
+monitoring.label.user.report = Assessment Report
+monitoring.label.user.name =Name
+monitoring.label.hidden =Hidden
+monitoring.no.report = Report not received
+label.monitoring.edit.activity.cancel =Cancel
+label.monitoring.edit.activity.update =Update
+label.monitoring.edit.activity.edit =Edit
+message.monitoring.edit.activity.not.editable =This Activity is no longer editable
+export.label.no.learning.object =No offline package available
+export.title =Export portfolio of eAdventure activity
+export.init.resource =Initial Resources
+errors.header =
+errors.footer =
+error.valueReqd =Value Required
+error.inputFileTooLarge =Input File size is too large!
+error.uploading =error uploading
+error.title.empty =Title can not be blank
+message.msg.maxFileSize =Max 250K
+label.delete =Delete
+label.download =Download
+label.view =View
+label.edit =Edit
+label.completed =Completed
+button.upload =Upload
+button.add =Add
+button.cancel =Cancel
+message.monitoring.summary.no.session =No Session Available
+label.show =Show
+label.hide =Hide
+label.save =Save
+label.cancel =Cancel
+define.later.message =Please wait for the teacher to complete the contents of this activity.
+run.offline.message =This activity is not being done on the computer. Please see your instructor for details.
+message.monitoring.summary.no.resource.for.group =No resource available for this group.
+button.try.again =Try again
+open.in.new.window =Open URL in pop-up
+page.title.monitoring.view.reflection =View Notebook Entries
+button.edit =Edit
+message.no.reflection.available =No notebook available
+error.reflection.emtpy =Please input Notebook Entry
+title.reflection =Notebook Entry
+monitoring.user.reflection =Notebook Entry
+activity.title =eAdventure
+label.authoring.save.button =Save
+monitoring.label.access.time =Access time
+label.authoring.advance.lock.on.finished =Lock when finished
+label.authoring.advance.define.completed = Hide "finish button" until eAdventure "completed" var is set
+label.authoring.heading.advance =Advanced
+error.msg.ims.package = Invalid game format
+label.up =Move Up
+label.down =Move down
+label.continue =Continue
+monitoring.user.fullname =Name
+button.close =Close
+label.monitoring.heading.access =Learners list
+errors.maxfilesize =The uploaded file has exceeded the maximum file size limit of {0} bytes
+error.attachment.executable =The uploaded file is executable, please zip it before uploading.
+label.finished =Next Activity
+label.finish =Finished
+error.msg.repository =A repository error occurred while trying to upload the file.
+monitoring.label.attachments =Attachments
+message.activityLocked =The instructor has set this activity not to allow you to play the game after you have finished it.
+label.export.reflection =Notebook Entries
+message.warnLockOnFinish =Note: After you click on \u201cNext Activity\u201d, if you come back to this eAdventure Activity, you won\u2019t be able to execute the game again.
+monitoring.label.instructions =Instructions
+label.on =On
+label.off =Off
+monitor.summary.th.advancedSettings =Advanced Settings
+monitor.summary.td.addNotebook =Add Notebook at end of eAdventure
+monitor.summary.td.notebookInstructions =Notebook instructions
+message.alertContentEdit =Warning: One of more learners have accessed this activity. Changing this content will result in learners getting different information.
+error.resource.game.title.blank = The activity name can not be empty.
+error.condition.name.blank = The condition's name can not be empty.
+error.condition.expression.name.blank = You have to select one variable or fill with a value the second op.
+error.condition.contains.wrong.symbol = The condition's name contains invalid symbols.
+error.condition.var.same.name.vars = You can choose the same variable at both sides of the expression.
+error.condition.not.ead.added = You have to choose a eAdventure game before create conditions.
+error.eadventure.not.ead.added = You have to select one valid eAdventure game (exported specifically for LAMS).
+error.condition.var.not.eq.type = The selected variables have not the same type.
+error.condition.no.expressions = There has to be at least one expression in the condition.
+error.condition.name.duplicated = The name already exists.
+error.condition.value.introduce.not.alpha = The string value introduced in the expression is not alphanumeric.
+error.expression.not.selected.operator = There is not an operator selected.
+error.expression.not.selected.second.var = You choose to introduce a variable and there is not a variable selected.
+error.expression.not.selected.first.var = There is not a first variable selected.
+output.desc.learner.user.defined = User defined:
+heading.totalLearnersInGroup = Total Number of Learners in Group:
+heading.totalFinishedLearnersInGroup= Number of Finished Learners:
+label.authoring.basic.edit.game = Change Game
+label.authoring.basic.add.game = Add Game
+label.authoring.conditions.list.title = Conditions
+label.authoring.conditions.condition.name = Condition Name
+label.authoring.conditions.empty.condition.list = There are no conditions
+label.authoring.conditions.add.condition = Add Condition
+label.authoring.conditions.expression.list.title = Expressions for selected condition
+label.authoring.conditions.condition.var1 = First variable
+label.authoring.conditions.condition.operator = Operator
+label.authoring.conditions.condition.var2 = Second variable or value
+label.authoring.conditions.add.expression = Add new expression
+label.authoring.conditions.empty.expression.list = There are no expressions
+label.authoring.conditions.select.var = -- VARIABLE --
+label.authoring.conditions.select.operator = -- OPERATOR --
+label.authoring.conditions.change.introduce.value = Add value
+label.authoring.conditions.change.introduce.var = Select a variable
+label.authoring.conditions.introduce.value = Introduce a value
+label.authoring.conditions.select.boolean.value.true = true
+label.authoring.conditions.select.boolean.value.false = false
+label.authoring.conditions.condition.nextOp = Next Operator
+label.authoring.conditions.change.expression.advance.edition = Change to advance expression edition
+label.authoring.conditions.change.expression.simple.edition = Change to simple expression edition
+label.authoring.conditions.select.boolean.value.and = and
+label.authoring.conditions.select.boolean.value.or = or
+label.authoring.conditions.condition.number = N�
+label.authoring.conditions.can.not.add = Conditions can not be added until you upload a eAdventure game
+label.condition.branching = Match Conditions to Game Adaptation Paths
+label.condition.branching.condition = Conditions
+label.condition.branching.adaptation = Adaptation Paths
+label.condition.branching.mappings = Mappings
+label.condition.branching.path = Game Path
+label.condition.helper.values = Assigning values to variables to check the condition
+label.condition.helper.init= The selected condition will be met
+label.condition.helper.expression = if {0} is {1} {2}
+label.condition.helper.expression.and = and
+label.condition.helper.expression.or = or
+label.condition.helper.integer.equals = equals to
+label.condition.helper.integer.gt = greater than
+label.condition.helper.integer.gte = greater than or equals to
+label.condition.helper.integer.lt = less than
+label.condition.helper.integer.lte = less than or equals to
+label.condition.helper.integer.ne = not equals to
+
+#======= End labels: Exported 172 labels for en AU =====
Index: lams_tool_eadventure/conf/language/rams/ApplicationResources.properties
===================================================================
diff -u
--- lams_tool_eadventure/conf/language/rams/ApplicationResources.properties (revision 0)
+++ lams_tool_eadventure/conf/language/rams/ApplicationResources.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,171 @@
+appName = shareresources
+#language code: en
+#locale code: AU
+
+ # CVS ID: $Id$ Exported from the RAMS Community by Ernie Ghiglione on Tue Aug 12 12:00:29 EST 2008
+
+#=================== labels for ShareResources =================#
+
+appName =Share Resources
+activity.title =eadventure
+activity.description =Sharing resource with others.
+activity.helptext =Uploading your resources to share with others.
+tool.display.name =Share Resources Tool
+tool.description =Tool for sharing resources.
+errorPage.title =Error page
+errorPage.heading =Some error occurs when handling your request
+label.authoring.heading =Share Resources
+label.author.title =Share Resources Authoring
+label.authoring.heading.basic =Basic
+label.authoring.heading.advance =Advanced
+label.authoring.heading.instructions =Instructions
+label.authoring.heading.basic.desc =Basic input information for shared resources
+label.authoring.heading.instructions.desc =Please input online and offline instructions
+label.authoring.heading.advance.desc =Please input advance options for shared resources
+label.authoring.basic.title =Title
+label.authoring.basic.instruction =Instruction
+label.authoring.basic.add.url =Add URL
+label.authoring.basic.add.file =Add Single File
+label.authoring.basic.add.website =Add Zipped Website
+label.authoring.basic.add.learning.object =Add IMS Content Package
+label.authoring.basic.resource.list.title =Resource List
+label.authoring.basic.resource.url =URL
+label.authoring.basic.resource.file =File
+label.authoring.basic.resource.website =Website
+label.authoring.basic.resource.learning.object =IMS CP
+label.authoring.basic.resource.verify.url =Verify URL
+label.authoring.basic.resource.preview =Preview
+label.authoring.basic.resource.edit =Edit
+label.authoring.basic.resource.delete =Delete
+label.authoring.basic.resource.add.instruction =Add Instruction
+label.authoring.basic.resource.instructions =Instructions
+label.authoring.basic.resource.title.input =Title
+label.authoring.basic.resource.url.input =URL
+label.authoring.basic.resource.file.input =File
+label.authoring.basic.resource.description.input =Description
+label.authoring.basic.resource.zip.file.input =Zip file:
+label.authoring.online.instruction =Online Instructions
+label.authoring.offline.instruction =Offline Instructions
+label.authoring.online.file =Upload online file
+label.authoring.offline.file =Upload offline file
+label.authoring.choosefile.button =Choose file
+label.authoring.upload.online.button =Upload Online
+label.authoring.upload.offline.button =Upload Offline
+label.authoring.online.filelist =Online file list
+label.authoring.offline.filelist =Offline file list
+label.authoring.online.delete =Delete
+label.authoring.offline.delete =Delete
+label.authoring.advance.lock.on.finished =Lock when finished
+label.authoring.advance.run.content.auto =Run content automatically (only available if there is exactly one resource)
+label.authoring.advance.mini.number.resources.view =Minimum number of resources to view
+label.authoring.advance.allow.learner.add.urls =Allow participants to add URLs
+label.authoring.advance.allow.learner.add.files =Allow participants to add Files
+label.next.instruction =Next Instruction
+label.authoring.save.button =Save
+label.authoring.cancel.button =Cancel
+label.description =Description:
+authoring.exception =There is a problem in shared resources authoring page, the reason is {0}
+error.resource.item.title.blank =Title can not be blank.
+error.resource.item.url.blank =URL can not be blank.
+error.resource.item.file.blank =File can not be blank.
+error.resource.item.desc.blank =Comment/Instruction can not be blank
+error.resource.item.invalid.url =Invalid URL format.
+error.upload.failed =Upload file failed: {0}
+error.msg.upload.file.not.found =Could not find upload file {0}.
+error.msg.zip.file.exception =Could not handle zip file when uploading file.
+error.msg.file.not.found =File not found exception occurs when uploading file.
+error.msg.ims.package =Invalid IMS CP format.
+error.msg.ims.application =ImscpApplicationException occurs when uploading resource item file.
+error.msg.website.no.initial.file =Website zip can not find out initial file (index.htm/html or default.htm/html).
+error.msg.io.exception =IOException occurs when uploading file.
+error.msg.invaid.param.upload =InvalidParameterException occured while trying to upload File.
+error.msg.repository =Repository occurs exception while trying to upload file.
+error.msg.default.content.not.find =Could not retrieve default content record for this tool.
+msg.no.instruction =No instruction available.
+authoring.msg.cancel.save =Do you want to close this window without saving?
+label.learning.title =Share Resource
+label.learning.heading =Share Resources
+label.resoruce.to.review =Resources to view
+label.learning.minimum.review =You must view at least {0} of the resources.
+lable.learning.minimum.view.number.less =You at least view another {0} of the resources.
+label.check.for.new =Check for new
+label.suggest.new =Suggest a new
+label.learning.new.file =New file details:
+label.learning.new.url =New URL details:
+label.learning.comment.or.instruction =Comment/Instruction
+monitoring.tab.summary =Summary
+monitoring.tab.statistics =Statistic
+monitoring.tab.instructions =Instruction
+monitoring.tab.edit.activity =Edit Activity
+monitoring.label.group =Group
+monitoring.summary.note =Note: number of participants is the number of participants who have viewed the resource.
+monitoring.label.type =Type
+monitoring.label.title =Title
+monitoring.label.suggest =Suggested By
+monitoring.label.number.learners =Number of Participants
+monitoring.label.hide =Hide
+monitoring.label.show =Show
+monitoring.label.user.loginname =Login name
+monitoring.label.user.name =Name
+monitoring.label.hidden =Hidden
+label.monitoring.edit.activity.cancel =Cancel
+label.monitoring.edit.activity.update =Update
+label.monitoring.edit.activity.edit =Edit
+message.monitoring.edit.activity.not.editable =This Activity is no longer editable
+export.label.resource =Resource
+export.label.no.learning.object =No offline package available
+export.title =Export portfolio of Share Resource
+export.init.resource =Initial Resources
+errors.header =
+errors.footer =
+error.valueReqd =Value Required
+error.inputFileTooLarge =Input File size is too large!
+error.uploading =error uploading
+error.title.empty =Title can not be blank
+message.msg.maxFileSize =Max 250K
+label.open =Open
+label.delete =Delete
+label.download =Download
+label.view =View
+label.edit =Edit
+label.finished =Finished
+label.completed =Completed
+label.finish =Finish
+button.upload =Upload
+button.add =Add
+button.cancel =Cancel
+message.monitoring.summary.no.session =No Session Available
+label.show =Show
+label.hide =Hide
+label.save =Save
+label.cancel =Cancel
+monitoring.label.access.time =Access time
+define.later.message =Please wait for the researcher to complete the contents of this activity.
+run.offline.message =This activity is not being done on the computer. Please see your instructor for details.
+message.monitoring.summary.no.resource.for.group =No resource available for this group.
+button.try.again =Try again
+open.in.new.window =Open URL in pop-up
+label.up =Move Up
+label.down =Move down
+label.authoring.advanced.reflectOnActivity =Add Notebook at end of Shared Resources with the following instructions:
+error.reflection.emtpy =Please input reflection
+title.reflection =Reflection
+label.continue =Continue
+monitoring.user.fullname =Name
+monitoring.user.reflection =Reflection
+page.title.monitoring.view.reflection =View Reflection
+button.close =Close
+message.step.of =Step {0} of {1}
+message.no.reflection.available =No notebook available
+button.edit =Edit
+errors.maxfilesize =The uploaded file has exceeded the maximum file size limit of {0} bytes
+error.attachment.executable =The uploaded file is executable, please zip it before uploading.
+label.monitoring.heading.access =Participants list
+message.alertContentEdit =Warning: One of more participants have accessed this activity. Changing this content will result in students getting different information.
+label.export.reflection =Notebook Entries
+monitoring.label.attachments =Attachments
+message.activityLocked =Note: After you click on "Next Activity" and you come back to this Share Resources, you won't be able to continue.
+message.warnLockOnFinish =This activitiy has been setup not to allow sharing and viewing of resources after it has been finished.
+
+
+#======= End labels: Exported 160 labels for en AU =====
Index: lams_tool_eadventure/conf/language/rams/ApplicationResources_en_AU.properties
===================================================================
diff -u
--- lams_tool_eadventure/conf/language/rams/ApplicationResources_en_AU.properties (revision 0)
+++ lams_tool_eadventure/conf/language/rams/ApplicationResources_en_AU.properties (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,171 @@
+appName = eAdventure
+#language code: en
+#locale code: AU
+
+ # CVS ID: $Id$ Exported from the RAMS Community by Ernie Ghiglione on Tue Aug 12 12:00:29 EST 2008
+
+#=================== labels for ShareResources =================#
+
+appName = eAdventure
+activity.title =eadventure
+activity.description =Add eAdventure games in your sequence
+activity.helptext =Add a white-box game to increase the educational experience and to obtain detailed feedback.
+tool.display.name =eAdventure Tool
+tool.description =eAdventure game.
+errorPage.title =Error page
+errorPage.heading =Some error occurs when handling your request
+label.authoring.heading =eAdventure
+label.author.title =eAdventure Authoring
+label.authoring.heading.basic =Basic
+label.authoring.heading.advance =Advanced
+label.authoring.heading.instructions =Instructions
+label.authoring.heading.basic.desc =Basic input information for eAdventure games
+label.authoring.heading.instructions.desc =Please input online and offline instructions
+label.authoring.heading.advance.desc =Please input advance options for eAdventure
+label.authoring.basic.title =Title
+label.authoring.basic.instruction =Instruction
+label.authoring.basic.add.url =Add URL
+label.authoring.basic.add.file =Add Single File
+label.authoring.basic.add.website =Add Zipped Website
+label.authoring.basic.add.learning.object =Add IMS Content Package
+label.authoring.basic.resource.list.title =Resource List
+label.authoring.basic.resource.url =URL
+label.authoring.basic.resource.file =File
+label.authoring.basic.resource.website =Website
+label.authoring.basic.resource.learning.object =IMS CP
+label.authoring.basic.resource.verify.url =Verify URL
+label.authoring.basic.resource.preview =Preview
+label.authoring.basic.resource.edit =Edit
+label.authoring.basic.resource.delete =Delete
+label.authoring.basic.resource.add.instruction =Add Instruction
+label.authoring.basic.resource.instructions =Instructions
+label.authoring.basic.resource.title.input =Title
+label.authoring.basic.resource.url.input =URL
+label.authoring.basic.resource.file.input =File
+label.authoring.basic.resource.description.input =Description
+label.authoring.basic.resource.zip.file.input =Zip file:
+label.authoring.online.instruction =Online Instructions
+label.authoring.offline.instruction =Offline Instructions
+label.authoring.online.file =Upload online file
+label.authoring.offline.file =Upload offline file
+label.authoring.choosefile.button =Choose file
+label.authoring.upload.online.button =Upload Online
+label.authoring.upload.offline.button =Upload Offline
+label.authoring.online.filelist =Online file list
+label.authoring.offline.filelist =Offline file list
+label.authoring.online.delete =Delete
+label.authoring.offline.delete =Delete
+label.authoring.advance.lock.on.finished =Lock when finished
+label.authoring.advance.run.content.auto =Run content automatically (only available if there is exactly one resource)
+label.authoring.advance.mini.number.resources.view =Minimum number of resources to view
+label.authoring.advance.allow.learner.add.urls =Allow participants to add URLs
+label.authoring.advance.allow.learner.add.files =Allow participants to add Files
+label.next.instruction =Next Instruction
+label.authoring.save.button =Save
+label.authoring.cancel.button =Cancel
+label.description =Description:
+authoring.exception =There is a problem in eAdventure authoring page, the reason is {0}
+error.resource.item.title.blank =Title can not be blank.
+error.resource.item.url.blank =URL can not be blank.
+error.resource.item.file.blank =File can not be blank.
+error.resource.item.desc.blank =Comment/Instruction can not be blank
+error.resource.item.invalid.url =Invalid URL format.
+error.upload.failed =Upload file failed: {0}
+error.msg.upload.file.not.found =Could not find upload file {0}.
+error.msg.zip.file.exception =Could not handle zip file when uploading file.
+error.msg.file.not.found =File not found exception occurs when uploading file.
+error.msg.ims.package =Invalid IMS CP format.
+error.msg.ims.application =ImscpApplicationException occurs when uploading resource item file.
+error.msg.website.no.initial.file =Website zip can not find out initial file (index.htm/html or default.htm/html).
+error.msg.io.exception =IOException occurs when uploading file.
+error.msg.invaid.param.upload =InvalidParameterException occured while trying to upload File.
+error.msg.repository =Repository occurs exception while trying to upload file.
+error.msg.default.content.not.find =Could not retrieve default content record for this tool.
+msg.no.instruction =No instruction available.
+authoring.msg.cancel.save =Do you want to close this window without saving?
+label.learning.title =eAdventure game
+label.learning.heading =eAQdventure
+label.resoruce.to.review =Resources to view
+label.learning.minimum.review =You must view at least {0} of the resources.
+lable.learning.minimum.view.number.less =You at least view another {0} of the resources.
+label.check.for.new =Check for new
+label.suggest.new =Suggest a new
+label.learning.new.file =New file details:
+label.learning.new.url =New URL details:
+label.learning.comment.or.instruction =Comment/Instruction
+monitoring.tab.summary =Summary
+monitoring.tab.statistics =Statistic
+monitoring.tab.instructions =Instruction
+monitoring.tab.edit.activity =Edit Activity
+monitoring.label.group =Group
+monitoring.summary.note =Note: number of participants is the number of participants who have viewed the resource.
+monitoring.label.type =Type
+monitoring.label.title =Title
+monitoring.label.suggest =Suggested By
+monitoring.label.number.learners =Number of Participants
+monitoring.label.hide =Hide
+monitoring.label.show =Show
+monitoring.label.user.loginname =Login name
+monitoring.label.user.name =Name
+monitoring.label.hidden =Hidden
+label.monitoring.edit.activity.cancel =Cancel
+label.monitoring.edit.activity.update =Update
+label.monitoring.edit.activity.edit =Edit
+message.monitoring.edit.activity.not.editable =This Activity is no longer editable
+export.label.resource =Resource
+export.label.no.learning.object =No offline package available
+export.title =Export portfolio of eAdventure game
+export.init.resource =Initial Resources
+errors.header =
+errors.footer =
+error.valueReqd =Value Required
+error.inputFileTooLarge =Input File size is too large!
+error.uploading =error uploading
+error.title.empty =Title can not be blank
+message.msg.maxFileSize =Max 250K
+label.open =Open
+label.delete =Delete
+label.download =Download
+label.view =View
+label.edit =Edit
+label.finished =Finished
+label.completed =Completed
+label.finish =Finish
+button.upload =Upload
+button.add =Add
+button.cancel =Cancel
+message.monitoring.summary.no.session =No Session Available
+label.show =Show
+label.hide =Hide
+label.save =Save
+label.cancel =Cancel
+monitoring.label.access.time =Access time
+define.later.message =Please wait for the researcher to complete the contents of this activity.
+run.offline.message =This activity is not being done on the computer. Please see your instructor for details.
+message.monitoring.summary.no.resource.for.group =No resource available for this group.
+button.try.again =Try again
+open.in.new.window =Open URL in pop-up
+label.up =Move Up
+label.down =Move down
+label.authoring.advanced.reflectOnActivity =Add Notebook at end of eAdventure game with the following instructions:
+error.reflection.emtpy =Please input reflection
+title.reflection =Reflection
+label.continue =Continue
+monitoring.user.fullname =Name
+monitoring.user.reflection =Reflection
+page.title.monitoring.view.reflection =View Reflection
+button.close =Close
+message.step.of =Step {0} of {1}
+message.no.reflection.available =No notebook available
+button.edit =Edit
+errors.maxfilesize =The uploaded file has exceeded the maximum file size limit of {0} bytes
+error.attachment.executable =The uploaded file is executable, please zip it before uploading.
+label.monitoring.heading.access =Participants list
+message.alertContentEdit =Warning: One of more participants have accessed this activity. Changing this content will result in students getting different information.
+label.export.reflection =Notebook Entries
+monitoring.label.attachments =Attachments
+message.activityLocked =Note: After you click on "Next Activity" and you come back to this Share Resources, you won't be able to continue.
+message.warnLockOnFinish =This activitiy has been setup not to allow sharing and viewing of resources after it has been finished.
+
+
+#======= End labels: Exported 160 labels for en AU =====
Index: lams_tool_eadventure/conf/war/META-INF/MANIFEST.MF
===================================================================
diff -u
--- lams_tool_eadventure/conf/war/META-INF/MANIFEST.MF (revision 0)
+++ lams_tool_eadventure/conf/war/META-INF/MANIFEST.MF (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,4 @@
+Implementation-Title: LAMS - Eadventure Tool
+Implementation-Version: 2.1
+Implementation-Vendor: LAMS Foundation (http://lamsfoundation.org)
+Class-Path: ./lams.jar ./lams-tool-eueadv10.jar ./lams-contentrepository.jar
Index: lams_tool_eadventure/conf/xdoclet/global-exceptions.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/global-exceptions.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/global-exceptions.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,8 @@
+
+
+
Index: lams_tool_eadventure/conf/xdoclet/global-forwards.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/global-forwards.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/global-forwards.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,6 @@
+
+
+
+
+
+
Index: lams_tool_eadventure/conf/xdoclet/struts-actions.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/struts-actions.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/struts-actions.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,339 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_eadventure/conf/xdoclet/struts-forms.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/struts-forms.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/struts-forms.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1 @@
+
Index: lams_tool_eadventure/conf/xdoclet/struts-message-resources.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/struts-message-resources.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/struts-message-resources.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1 @@
+
Index: lams_tool_eadventure/conf/xdoclet/struts-plugins.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/struts-plugins.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/struts-plugins.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,15 @@
+
+
+
+
+
+
Index: lams_tool_eadventure/conf/xdoclet/validation-forms.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/validation-forms.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/validation-forms.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,29 @@
+
Index: lams_tool_eadventure/conf/xdoclet/validation-global.xml
===================================================================
diff -u
--- lams_tool_eadventure/conf/xdoclet/validation-global.xml (revision 0)
+++ lams_tool_eadventure/conf/xdoclet/validation-global.xml (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,6 @@
+
+
+ datePattern
+ yyyy-MM-dd
+
+
Index: lams_tool_eadventure/db/model/eadventure.clay
===================================================================
diff -u
--- lams_tool_eadventure/db/model/eadventure.clay (revision 0)
+++ lams_tool_eadventure/db/model/eadventure.clay (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,873 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_eadventure/db/sql/activity_insert.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/activity_insert.sql (revision 0)
+++ lams_tool_eadventure/db/sql/activity_insert.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,82 @@
+# Connection: ROOT LOCAL
+# Host: localhost
+# Saved: 2005-04-07 11:08:32
+#
+INSERT INTO lams_learning_activity
+(
+activity_ui_id
+, description
+, title
+, help_text
+, xcoord
+, ycoord
+, parent_activity_id
+, parent_ui_id
+, learning_activity_type_id
+, grouping_support_type_id
+, apply_grouping_flag
+, grouping_id
+, grouping_ui_id
+, order_id
+, define_later_flag
+, learning_design_id
+, learning_library_id
+, create_date_time
+, run_offline_flag
+, max_number_of_options
+, min_number_of_options
+, options_instructions
+, tool_id
+, tool_content_id
+, activity_category_id
+, gate_activity_level_id
+, gate_open_flag
+, gate_start_time_offset
+, gate_end_time_offset
+, gate_start_date_time
+, gate_end_date_time
+, library_activity_ui_image
+, create_grouping_id
+, create_grouping_ui_id
+, library_activity_id
+, language_file
+)
+VALUES
+(
+NULL
+, 'Eadventure'
+, 'Eadventure'
+, 'Put some help text here.'
+, NULL
+, NULL
+, NULL
+, NULL
+, 1
+, 2
+, 0
+, NULL
+, NULL
+, NULL
+, 0
+, NULL
+, ${learning_library_id}
+, NOW()
+, 0
+, NULL
+, NULL
+, NULL
+, ${tool_id}
+, NULL
+, 3
+, NULL
+, NULL
+, NULL
+, NULL
+, NULL
+, NULL
+, 'tool/eueadv10/images/icon_eAdventure2.swf'
+, NULL
+, NULL
+, NULL
+, 'org.eucm.lams.tool.eadventure.ApplicationResources'
+)
Index: lams_tool_eadventure/db/sql/create_lams_tool_eadventure.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/create_lams_tool_eadventure.sql (revision 0)
+++ lams_tool_eadventure/db/sql/create_lams_tool_eadventure.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,130 @@
+SET FOREIGN_KEY_CHECKS=0;
+drop table if exists tl_eueadv10_attachment;
+drop table if exists tl_eueadv10_eadventure;
+drop table if exists tl_eueadv10_eadventure_item_visit_log;
+drop table if exists tl_eueadv10_session;
+drop table if exists tl_eueadv10_user;
+drop table if exists tl_eueadv10_var;
+drop table if exists tl_eueadv10_param;
+drop table if exists tl_eueadv10_condition;
+drop table if exists tl_eueadv10_condition_expression;
+create table tl_eueadv10_attachment (
+ uid bigint not null auto_increment,
+ file_version_id bigint,
+ file_type varchar(255),
+ file_name varchar(255),
+ file_uuid bigint,
+ create_date datetime,
+ eadventure_uid bigint,
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_eadventure (
+ uid bigint not null auto_increment,
+ create_date datetime,
+ update_date datetime,
+ create_by bigint,
+ title varchar(255),
+ run_offline tinyint,
+ lock_on_finished tinyint,
+ instructions text,
+ online_instructions text,
+ offline_instructions text,
+ content_in_use tinyint,
+ define_later tinyint,
+ content_id bigint unique,
+ reflect_instructions varchar(255),
+ reflect_on_activity smallint,
+ ims_schema varchar(255),
+ organization_xml text,
+ init_item varchar(255),
+ file_uuid bigint,
+ file_version_id bigint,
+ file_name varchar(255),
+ file_type varchar(255),
+ complete tinyint,
+ define_complete tinyint,
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_session (
+ uid bigint not null auto_increment,
+ session_end_date datetime,
+ session_start_date datetime,
+ status integer,
+ eadventure_uid bigint,
+ session_id bigint,
+ session_name varchar(250),
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_user (
+ uid bigint not null auto_increment,
+ user_id bigint,
+ last_name varchar(255),
+ first_name varchar(255),
+ login_name varchar(255),
+ session_finished smallint,
+ session_uid bigint,
+ eadventure_uid bigint,
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_item_log (
+ uid bigint not null auto_increment,
+ access_date datetime,
+ eadventure_item_uid bigint,
+ user_uid bigint,
+ complete tinyint,
+ session_id bigint,
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_var (
+ uid bigint not null auto_increment,
+ name varchar(255),
+ type varchar(255),
+ value text,
+ visit_log_uid bigint,
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_param (
+ uid bigint not null auto_increment,
+ name varchar(255),
+ type varchar(255),
+ input tinyint,
+ eadventure_uid bigint,
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_condition (
+ uid bigint not null auto_increment,
+ sequence_id integer,
+ eadventure_uid bigint,
+ name varchar(255),
+ primary key (uid)
+)type=innodb;
+create table tl_eueadv10_condition_expression (
+ uid bigint not null auto_increment,
+ condition_uid bigint,
+ first_op bigint,
+ value_introduced varchar(255),
+ var_introduced bigint,
+ expresion_op varchar(255),
+ sequence_id integer,
+ next_op varchar(255),
+ primary key (uid)
+)type=innodb;
+alter table tl_eueadv10_attachment add index FK_NEW_1226715514_1E7009430E79035 (eadventure_uid), add constraint FK_NEW_1226715514_1E7009430E79035 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_eadventure add index FK_NEW_1226715514_89093BF758092FB (create_by), add constraint FK_NEW_1226715514_89093BF758092FB foreign key (create_by) references tl_eueadv10_user (uid);
+alter table tl_eueadv10_item_log add index FK_NEW_1226715514_693580A438BF8DFE (eadventure_item_uid), add constraint FK_NEW_1226715514_693580A438BF8DFE foreign key (eadventure_item_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_item_log add index FK_NEW_1226715514_693580A441F9365D (user_uid), add constraint FK_NEW_1226715514_693580A441F9365D foreign key (user_uid) references tl_eueadv10_user (uid);
+alter table tl_eueadv10_session add index FK_NEW_1226715514_24AA78C530E79035 (eadventure_uid), add constraint FK_NEW_1226715514_24AA78C530E79035 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_user add index FK_NEW_1226715514_30113BFCEC0D3147 (session_uid), add constraint FK_NEW_1226715514_30113BFCEC0D3147 foreign key (session_uid) references tl_eueadv10_session (uid);
+alter table tl_eueadv10_user add index FK_NEW_1226715514_30113BFC309ED320 (eadventure_uid), add constraint FK_NEW_1226715514_30113BFC309ED320 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_var add index FK_NEW_1226715514_42637763767637E6(visit_log_uid), add constraint FK_NEW_1226715514_42637763767637E6 foreign key (visit_log_uid) references tl_eueadv10_item_log (uid);
+alter table tl_eueadv10_param add index FK_NEW_1226715514_56566830263527E3(eadventure_uid), add constraint FK_NEW_1226715514_56566830263527E3 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_condition add index FK_NEW_1226715514_5656683026352999 (eadventure_uid), add constraint FK_NEW_1226715514_5656683026352999 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_condition_expression add index FK_NEW_1226715514_5656683026352390 (condition_uid), add constraint FK_NEW_1226715514_5656683026352390 foreign key (condition_uid) references tl_eueadv10_condition (uid);
+alter table tl_eueadv10_condition_expression add index FK_NEW_1226715514_5656683026352EEE (first_op), add constraint FK_NEW_1226715514_5656683026352EEE foreign key (first_op) references tl_eueadv10_param (uid);
+alter table tl_eueadv10_condition_expression add index FK_NEW_1226715514_5656683026352FFF (var_introduced), add constraint FK_NEW_1226715514_5656683026352FFF foreign key (var_introduced) references tl_eueadv10_param (uid);
+
+INSERT INTO `tl_eueadv10_eadventure` (`uid`, `create_date`, `update_date`, `create_by`, `title`, `run_offline`, `lock_on_finished`,
+ `instructions`, `online_instructions`, `offline_instructions`, `content_in_use`, `define_later`, `content_id`,`reflect_on_activity`, `file_uuid`, `file_version_id` , `file_name`,`file_type`,`complete`,`define_complete`) VALUES
+ (1,NULL,NULL,NULL,'eAdventure','0',0,'Instructions ',null,null,0,0,${default_content_id},0, NULL, NULL, NULL,NULL ,0,0);
+
+SET FOREIGN_KEY_CHECKS=1;
Index: lams_tool_eadventure/db/sql/db_version_insert.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/db_version_insert.sql (revision 0)
+++ lams_tool_eadventure/db/sql/db_version_insert.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,2 @@
+-- $Id$
+INSERT INTO patches VALUES ('@signature@', '@tool_version@', NOW(), 'F');
Index: lams_tool_eadventure/db/sql/drop_lams_tool_eadventure.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/drop_lams_tool_eadventure.sql (revision 0)
+++ lams_tool_eadventure/db/sql/drop_lams_tool_eadventure.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,16 @@
+SET FOREIGN_KEY_CHECKS=0;
+drop table if exists tl_eueadv10_attachment;
+drop table if exists tl_eueadv10_item_instruction;
+drop table if exists tl_eueadv10_eadventure;
+drop table if exists tl_eueadv10_eadventure_item;
+drop table if exists tl_eueadv10_item_log;
+drop table if exists tl_eueadv10_session;
+drop table if exists tl_eueadv10_user;
+drop table if exists tl_eueadv10_condition;
+drop table if exists tl_eueadv10_condition_expression;
+SET FOREIGN_KEY_CHECKS=1;
+
+
+
+
+
Index: lams_tool_eadventure/db/sql/library_insert.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/library_insert.sql (revision 0)
+++ lams_tool_eadventure/db/sql/library_insert.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,18 @@
+# Connection: ROOT LOCAL
+# Host: localhost
+# Saved: 2005-04-07 10:50:55
+#
+INSERT INTO lams_learning_library
+(
+description,
+title,
+valid_flag,
+create_date_time
+)
+VALUES
+(
+'eAdventure',
+'eAdventure',
+0,
+NOW()
+)
Index: lams_tool_eadventure/db/sql/table-schema.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/table-schema.sql (revision 0)
+++ lams_tool_eadventure/db/sql/table-schema.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,85 @@
+alter table tl_eueadv10_attachment drop foreign key FK_NEW_1226715514_1E7009430E79035;
+alter table tl_eueadv10_item_instruction drop foreign key FK_NEW_1226715514_A5665013980570ED;
+alter table tl_eueadv10_item_log drop foreign key FK_NEW_1226715514_63195BC938BF8DFE;
+alter table tl_eueadv10_item_log drop foreign key FK_NEW_1226715514_63195BC941F9365D;
+alter table tl_eueadv10_eadventure drop foreign key FK_NEW_1226715514_89093BF758092FB;
+alter table tl_eueadv10_eadventure_item drop foreign key FK_NEW_1226715514_F52D1F9330E79035;
+alter table tl_eueadv10_eadventure_item drop foreign key FK_NEW_1226715514_F52D1F93EC0D3147;
+alter table tl_eueadv10_eadventure_item drop foreign key FK_NEW_1226715514_F52D1F93758092FB;
+alter table tl_eueadv10_session drop foreign key FK_NEW_1226715514_24AA78C530E79035;
+alter table tl_eueadv10_user drop foreign key FK_NEW_1226715514_30113BFC30E79035;
+alter table tl_eueadv10_user drop foreign key FK_NEW_1226715514_30113BFCEC0D3147;
+drop table if exists tl_eueadv10_attachment;
+drop table if exists tl_eueadv10_item_instruction;
+drop table if exists tl_eueadv10_item_log;
+drop table if exists tl_eueadv10_eadventure;
+drop table if exists tl_eueadv10_eadventure_item;
+drop table if exists tl_eueadv10_session;
+drop table if exists tl_eueadv10_user;
+create table tl_eueadv10_attachment (
+ uid bigint not null auto_increment,
+ file_version_id bigint,
+ file_type varchar(255),
+ file_name varchar(255),
+ file_uuid bigint,
+ create_date datetime,
+ eadventure_uid bigint,
+ primary key (uid)
+);
+create table tl_eueadv10_eadventure (
+ uid bigint not null auto_increment,
+ create_date datetime,
+ update_date datetime,
+ create_by bigint,
+ title varchar(255),
+ run_offline tinyint,
+ lock_on_finished tinyint,
+ instructions text,
+ online_instructions text,
+ offline_instructions text,
+ content_in_use tinyint,
+ define_later tinyint,
+ content_id bigint unique,
+ allow_add_files tinyint,
+ allow_add_urls tinyint,
+ mini_view_eadventure_number integer,
+ allow_auto_run tinyint,
+ reflect_instructions varchar(255),
+ reflect_on_activity smallint,
+ assigment_submit_notify tinyint DEFAULT 0,
+ ims_schema varchar(255),
+ organization_xml text,
+ file_uuid bigint,
+ file_version_id bigint,
+ file_name varchar(255),
+ complete tinyint,
+ session_uid bigint,
+ primary key (uid)
+);
+create table tl_eueadv10_session (
+ uid bigint not null auto_increment,
+ session_end_date datetime,
+ session_start_date datetime,
+ status integer,
+ eadventure_uid bigint,
+ session_id bigint,
+ session_name varchar(250),
+ primary key (uid)
+);
+create table tl_eueadv10_user (
+ uid bigint not null auto_increment,
+ user_id bigint,
+ last_name varchar(255),
+ first_name varchar(255),
+ login_name varchar(255),
+ session_finished smallint,
+ session_uid bigint,
+ eadventure_uid bigint,
+ primary key (uid)
+);
+alter table tl_eueadv10_attachment add index FK_NEW_1226715514_1E7009430E79035 (eadventure_uid), add constraint FK_NEW_1226715514_1E7009430E79035 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_eadventure add index FK_NEW_1226715514_89093BF758092FB (create_by), add constraint FK_NEW_1226715514_89093BF758092FB foreign key (create_by) references tl_eueadv10_user (uid);
+alter table tl_eueadv10_eadventure add index FK_NEW_1226715514_F52D1F93EC0D3147 (session_uid), add constraint FK_NEW_1226715514_F52D1F93EC0D3147 foreign key (session_uid) references tl_eueadv10_session (uid);
+alter table tl_eueadv10_session add index FK_NEW_1226715514_24AA78C530E79035 (eadventure_uid), add constraint FK_NEW_1226715514_24AA78C530E79035 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
+alter table tl_eueadv10_user add index FK_NEW_1226715514_30113BFCEC0D3147 (session_uid), add constraint FK_NEW_1226715514_30113BFCEC0D3147 foreign key (session_uid) references tl_eueadv10_session (uid);
+alter table tl_eueadv10_user add index FK_NEW_1226715514_30113BFC309ED320 (eadventure_uid), add constraint FK_NEW_1226715514_30113BFC309ED320 foreign key (eadventure_uid) references tl_eueadv10_eadventure (uid);
Index: lams_tool_eadventure/db/sql/tool_insert.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/tool_insert.sql (revision 0)
+++ lams_tool_eadventure/db/sql/tool_insert.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,64 @@
+# Connection: ROOT LOCAL
+# Host: localhost
+# Saved: 2005-04-07 10:42:43
+#
+INSERT INTO lams_tool
+(
+tool_signature,
+service_name,
+tool_display_name,
+description,
+tool_identifier,
+tool_version,
+learning_library_id,
+default_tool_content_id,
+valid_flag,
+grouping_support_type_id,
+supports_run_offline_flag,
+learner_url,
+learner_preview_url,
+learner_progress_url,
+author_url,
+monitor_url,
+define_later_url,
+export_pfolio_learner_url,
+export_pfolio_class_url,
+contribute_url,
+moderation_url,
+pedagogical_planner_url,
+help_url,
+language_file,
+create_date_time,
+modified_date_time,
+supports_outputs
+)
+VALUES
+(
+'eueadv10',
+'eadventureService',
+'eAdventure',
+'eAdventure',
+'eAdventure game',
+'@tool_version@',
+NULL,
+NULL,
+0,
+2,
+1,
+'tool/eueadv10/learning/start.do?mode=learner',
+'tool/eueadv10/learning/start.do?mode=author',
+'tool/eueadv10/learning/start.do?mode=teacher',
+'tool/eueadv10/authoring/start.do',
+'tool/eueadv10/monitoring/summary.do',
+'tool/eueadv10/definelater.do',
+'tool/eueadv10/exportPortfolio?mode=learner',
+'tool/eueadv10/exportPortfolio?mode=teacher',
+'tool/eueadv10/contribute.do',
+'tool/eueadv10/moderate.do',
+'tool/eueadv10/authoring/initPedagogicalPlannerForm.do',
+'http://wiki.lamsfoundation.org/display/lamsdocs/eueadv10',
+'org.eucm.lams.tool.eadventure.ApplicationResources',
+NOW(),
+NOW(),
+1
+)
Index: lams_tool_eadventure/db/sql/updatescripts/updateTo20070227.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/updatescripts/updateTo20070227.sql (revision 0)
+++ lams_tool_eadventure/db/sql/updatescripts/updateTo20070227.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,4 @@
+-- Update the Eadventure tables to 20070227
+-- This is for the LAMS 2.0.1 release.
+
+UPDATE lams_tool set modified_date_time = now(), classpath_addition = 'lams-tool-eueadv10.jar', context_file = '/org/eucm/lams/tool/eadventure/eadventureApplicationContext.xml' where tool_signature = 'eueadv10';
Index: lams_tool_eadventure/db/sql/updatescripts/updateTo20080229.sql
===================================================================
diff -u
--- lams_tool_eadventure/db/sql/updatescripts/updateTo20080229.sql (revision 0)
+++ lams_tool_eadventure/db/sql/updatescripts/updateTo20080229.sql (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,2 @@
+UPDATE lams_tool SET modified_date_time = NOW() WHERE tool_signature = "eueadv10";
+UPDATE lams_tool SET tool_version = "20080229" WHERE tool_signature = "eueadv10";
Index: lams_tool_eadventure/lib/jaxen/sax.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/jaxen/saxpath.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/castor-0.9.5.3-xml.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/jdom.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/moonunitsrc.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/reload-diva.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/reload-editor.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/reload-jdom.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/reload-moonunit.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/lib/reload_2_0_1/xml-apis.jar
===================================================================
diff -u
Binary files differ
Index: lams_tool_eadventure/licenses/Jaxen LICENSE.txt
===================================================================
diff -u
--- lams_tool_eadventure/licenses/Jaxen LICENSE.txt (revision 0)
+++ lams_tool_eadventure/licenses/Jaxen LICENSE.txt (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,33 @@
+/*
+ $Id$
+
+ Copyright 2003-2006 The Werken Company. All Rights Reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the Jaxen Project nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ */
Index: lams_tool_eadventure/licenses/castor license.txt
===================================================================
diff -u
--- lams_tool_eadventure/licenses/castor license.txt (revision 0)
+++ lams_tool_eadventure/licenses/castor license.txt (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,38 @@
+Copyright 2000-2002 (C) Intalio Inc. All Rights Reserved.
+
+Redistribution and use of this software and associated documentation
+("Software"), with or without modification, are permitted provided
+that the following conditions are met:
+
+1. Redistributions of source code must retain copyright statements
+ and notices. Redistributions must also contain a copy of this
+ document.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+3. The name "ExoLab" must not be used to endorse or promote products
+ derived from this Software without prior written permission of
+ Intalio Inc. For written permission, please contact info@exolab.org.
+
+4. Products derived from this Software may not be called "Castor"
+ nor may "Castor" appear in their names without prior written
+ permission of Intalio Inc. Exolab, Castor and Intalio are
+ trademarks of Intalio Inc.
+
+5. Due credit should be given to the ExoLab Project
+ (http://www.exolab.org/).
+
+THIS SOFTWARE IS PROVIDED BY INTALIO AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTALIO OR ITS
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
Index: lams_tool_eadventure/licenses/jdom licence.txt
===================================================================
diff -u
--- lams_tool_eadventure/licenses/jdom licence.txt (revision 0)
+++ lams_tool_eadventure/licenses/jdom licence.txt (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,54 @@
+/*--
+
+ Copyright (C) 2000-2002 Brett McLaughlin & Jason Hunter.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions, and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions, and the disclaimer that follows
+ these conditions in the documentation and/or other materials
+ provided with the distribution.
+
+ 3. The name "JDOM" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact license@jdom.org.
+
+ 4. Products derived from this software may not be called "JDOM", nor
+ may "JDOM" appear in their name, without prior written permission
+ from the JDOM Project Management (pm@jdom.org).
+
+ In addition, we request (but do not require) that you include in the
+ end-user documentation provided with the redistribution and/or in the
+ software itself an acknowledgement equivalent to the following:
+ "This product includes software developed by the
+ JDOM Project (http://www.jdom.org/)."
+ Alternatively, the acknowledgment may be graphical using the logos
+ available at http://www.jdom.org/images/logos.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many
+ individuals on behalf of the JDOM Project and was originally
+ created by Brett McLaughlin and
+ Jason Hunter . For more information on the
+ JDOM Project, please see .
+
+ */
+
Index: lams_tool_eadventure/licenses/library_licenses.txt
===================================================================
diff -u
--- lams_tool_eadventure/licenses/library_licenses.txt (revision 0)
+++ lams_tool_eadventure/licenses/library_licenses.txt (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,28 @@
+Tigra Tree Javascript license description:
+There is no license fee or royalty fee to be paid at any time for using the Tigra Tree Menu v1.x
+You may include the source code or modified source code within your own projects for either personal or commercial use but excluding the restrictions outlined below. The following restrictions apply to all parts of the component, including all source code, samples and documentation.
+
+ * Header block of script file (tree.js) CAN NOT be modified or removed.
+ * The above items CAN NOT be sold as are, either individually or together.
+ * The above items CAN NOT be modified and then sold as a library component, either individually or together.
+
+
+For more detail, http://www.softcomplex.com/products/tigra_tree_menu/docs/
+
+Library/Package License
+
+Used for the IMSCP functionality (Reload Project)
+castor-0.9.5.3-xml.jar Castor License
+jdom.jar Jdom Jar License
+moonunitsrc.jar Reload License
+reload-diva.jar Reload License
+reload-editor.jar Reload License
+reload-jdom.jar Reload License
+reload-moonunit.jar Reload License
+xercesImpl.jar Apache Software License 1.1
+xml-apis.jar Apache Software License 1.1
+
+Other libraries
+jaxen-full.jar Jaxen Jar License (The Werken Company)
+sax.jar Public Domain
+saxpath.jar Jaxen Jar License (The Werken Company)
Index: lams_tool_eadventure/licenses/reload licence.txt
===================================================================
diff -u
--- lams_tool_eadventure/licenses/reload licence.txt (revision 0)
+++ lams_tool_eadventure/licenses/reload licence.txt (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,45 @@
+RELOAD Tools and Libraries
+
+Copyright (c) 2002-2004 Oleg Liber, Bill Olivier, Phillip Beauvoir
+
+This licence covers:
+
+The Reload "jdom" library
+The Reload "diva" library
+The Reload "dweezil" library
+The Reload "jdom" library
+The Reload "moonunit" library
+The Reload "xindice" library
+The Reload Editor
+The Reload SCORM Player
+The Reload Schema Viewer Eclipse Plugin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Project Management Contact:
+
+Oleg Liber
+Bolton Institute of Higher Education
+Deane Road
+Bolton BL3 5AB
+UK
+
+e-mail: o.liber@bolton.ac.uk
+
+
+Technical Contact:
+
+Phillip Beauvoir
+Bolton Institute of Higher Education
+Deane Road
+Bolton BL3 5AB
+UK
+
+e-mail: p.beauvoir@bolton.ac.uk
+
+
+Web: http://www.reload.ac.uk
Index: lams_tool_eadventure/licenses/xerces licence.txt
===================================================================
diff -u
--- lams_tool_eadventure/licenses/xerces licence.txt (revision 0)
+++ lams_tool_eadventure/licenses/xerces licence.txt (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,56 @@
+/*
+ * The Apache Software License, Version 1.1
+ *
+ *
+ * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ * if any, must include the following acknowledgment:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "Xerces" and "Apache Software Foundation" must
+ * not be used to endorse or promote products derived from this
+ * software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ * nor may "Apache" appear in their name, without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation and was
+ * originally based on software copyright (c) 1999, International
+ * Business Machines, Inc., http://www.ibm.com. For more
+ * information on the Apache Software Foundation, please see
+ * .
+ */
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/EadventureConstants.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/EadventureConstants.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/EadventureConstants.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,274 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $Id$ */
+package org.eucm.lams.tool.eadventure;
+
+public class EadventureConstants {
+
+ public enum ExpresionOp {
+ AND, OR, EMPTY
+ }
+
+ public enum ParamType {
+ BOOLEAN, STRING, INTEGER
+ }
+
+ public static final String[] IntergerOp = {
+ "==", "!=","<", "<=", ">", ">="
+ };
+
+ public static final String[] StringOp = {
+ "==", "!="
+ };
+
+ public static final String[] BooleanOp = {
+ "==", "!="
+ };
+
+ public static final String TOOL_SIGNATURE = "eueadv10";
+
+ public static final String RESOURCE_SERVICE = "eadventureService";
+
+ public static final String TOOL_CONTENT_HANDLER_NAME = "eadventureToolContentHandler";
+
+ public static final int COMPLETED = 1;
+
+ // eadventure type;
+ public static final short RESOURCE_TYPE_URL = 1;
+
+ public static final short RESOURCE_TYPE_FILE = 2;
+
+ public static final short RESOURCE_TYPE_WEBSITE = 3;
+
+ public static final short RESOURCE_TYPE_LEARNING_OBJECT = 4;
+
+ // for action forward name
+ public static final String SUCCESS = "success";
+
+ public static final String ERROR = "error";
+
+ public static final String DEFINE_LATER = "definelater";
+
+ // for parameters' name
+
+ public static final String PARAM_TOOL_CONTENT_ID = "toolContentID";
+
+ public static final String PARAM_TOOL_SESSION_ID = "toolSessionID";
+
+ public static final String PARAM_FILE_VERSION_ID = "fileVersionId";
+
+ public static final String PARAM_FILE_UUID = "fileUuid";
+
+ public static final String PARAM_ITEM_INDEX = "itemIndex";
+
+ public static final String PARAM_RESOURCE_ITEM_UID = "itemUid";
+
+ public static final String PARAM_CURRENT_INSTRUCTION_INDEX = "insIdx";
+
+ public static final String PARAM_RUN_OFFLINE = "runOffline";
+
+ public static final String PARAM_OPEN_URL_POPUP = "popupUrl";
+
+ public static final String PARAM_TITLE = "title";
+
+ public static final String PARAM_CONDITION_POSITION = "position";
+
+ public static final String PARAM_EXPRESSION_POSITION = "positionExpression";
+
+ public static final String PARAM_VAR_NAME = "paramName";
+
+ // for request attribute name
+ public static final String ATTR_EXPRS_INFO = "exprsInfo";
+
+ public static final String ATTR_ERROR_IN_CONDITION = "notallowDefineCondition";
+
+ public static final String ATTR_EXPR_SELECTED_TYPE = "type";
+
+ public static final String ATTR_GAME_DELETE = "gameDelete";
+
+ public static final String ATTR_OPEN_SAVED_GAME = "savedGame";
+
+ public static final String ATTR_EDIT_CONDITION = "editCondition";
+
+ public static final String ATTR_CONDITION_LIST = "conditionsList";
+
+ public static final String ATTR_EXPRESSION_LIST = "expressionList";
+
+ public static final String ATTR_PARAMS_LIST = "paramsList";
+
+ public static final String ATTR_DELETED_CONDITION_LIST = "deletedConditionsList";
+
+ public static final String ATTR_DELETED_EXPRESSION_LIST = "deletedExpressionList";
+
+ public static final String ATTR_DELETED_PARAMS_LIST = "deletedParamsList";
+
+ public static final String ATTR_CHANGE_FILE = "newFile";
+
+ public static final String ATTR_HAS_FILE = "hasFile";
+
+ public static final String ATTR_LOCAL_URL = "localURL";
+
+ public static final String ATTR_TOOL_CONTENT_ID = "toolContentID";
+
+ public static final String ATTR_TOOL_SESSION_ID = "toolSessionID";
+
+ public static final String ATTR_INSTRUCTION_LIST = "instructionList";
+
+ public static final String ATTR_RESOURCE_ITEM_LIST = "eadventureList";
+
+ public static final String ATTR_RESOURCE_PARAM_LIST = "eadventureParamList";
+
+ public static final String ATT_ATTACHMENT_LIST = "instructionAttachmentList";
+
+ public static final String ATTR_DELETED_RESOURCE_ITEM_LIST = "deleteEadventureList";
+
+ public static final String ATTR_DELETED_ATTACHMENT_LIST = "deletedAttachmmentList";
+
+ public static final String ATTR_DELETED_RESOURCE_ITEM_ATTACHMENT_LIST = "deletedItemAttachmmentList";;
+
+ public static final String ATT_LEARNING_OBJECT = "cpPackage";
+
+ public static final String ATTR_RESOURCE_REVIEW_URL = "eadventureItemReviewUrl";
+
+ public static final String ATTR_EADVENTURE = "eadventure";
+
+ public static final String ATTR_RUN_AUTO = "runAuto";
+
+ public static final String ATTR_RESOURCE_ITEM_UID = "itemUid";
+
+ public static final String ATTR_NEXT_ACTIVITY_URL = "nextActivityUrl";
+
+ public static final String ATTR_SUMMARY_LIST = "summaryList";
+
+ public static final String ATTR_USER_LIST = "userList";
+
+ public static final String ATTR_RESOURCE_INSTRUCTION = "instructions";
+
+ public static final String ATTR_FINISH_LOCK = "finishedLock";
+
+ public static final String ATTR_LOCK_ON_FINISH = "lockOnFinish";
+
+ public static final String ATTR_DEFINE_COMPLETED = "defineCompleted";
+
+ public static final String ATTR_COMPLETED = "completed";
+
+ public static final String ATTR_SESSION_MAP_ID = "sessionMapID";
+
+ public static final String ATTR_RESOURCE_FORM = "eadventureForm";
+
+ public static final String ATTR_GAME_FORM = "eadventureGameForm";
+
+ public static final String ATTR_ADD_RESOURCE_TYPE = "addType";
+
+ public static final String ATTR_FILE_TYPE_FLAG = "fileTypeFlag";
+
+ public static final String ATTR_TITLE = "title";
+
+ public static final String ATTR_INSTRUCTIONS = "instructions";
+
+ public static final String ATTR_USER_FINISHED = "userFinished";
+
+ public static final String ATTR_USER_ID = "userID";
+
+ public static final String ATTR_USER_FNAME = "userFName";
+
+ public static final String ATTR_USER_LNAME = "userLName";
+
+ // error message keys
+ public static final String ERROR__EXPRESSION_NO_FIRST_VAR = "error.expression.not.selected.first.var";
+
+ public static final String ERROR__EXPRESSION_NO_SECOND_VAR = "error.expression.not.selected.second.var";
+
+ public static final String ERROR__EXPRESSION_NO_OPERATOR = "error.expression.not.selected.operator";
+
+ public static final String ERROR_MSG_TITLE_BLANK = "error.resource.game.title.blank";
+
+ public static final String ERROR_NAME_CONDITION_BLANK = "error.condition.name.blank";
+
+ public static final String ERROR_NAME_VALUE_BLANK = "error.condition.expression.name.blank";
+
+ public static final String ERROR_MSG_NAME_CONTAINS_WRONG_SYMBOL = "error.condition.contains.wrong.symbol";
+
+ public static final String ERROR_VALUE_NOT_BOOLEAN = "error.condition.value.introduce.not.boolean";
+
+ public static final String ERROR_SAME_VARS_NAME = "error.condition.var.same.name.vars";
+
+ public static final String ERROR_NOT_EAD_ADD_COND = "error.condition.not.ead.added";
+
+ public static final String ERROR_NOT_EAD_ADD = "error.eadventure.not.ead.added";
+
+ public static final String ERROR_NOT_EQ_VARS_TYPE = "error.condition.var.not.eq.type";
+
+ public static final String ERROR_MSG_NO_EXPRESSIONS = "error.condition.no.expressions";
+
+ public static final String ERROR_MSG_NAME_DUPLICATED = "error.condition.name.duplicated";
+
+ public static final String ERROR_VALUE_NOT_ALPHA = "error.condition.value.introduce.not.alpha";
+
+ public static final String ERROR_VALUE_NOT_NUMERIC = "error.condition.value.introduce.not.numeric";
+
+ public static final String ERROR_MSG_URL_BLANK = "error.resource.item.url.blank";
+
+ public static final String ERROR_MSG_DESC_BLANK = "error.resource.item.desc.blank";
+
+ public static final String ERROR_MSG_FILE_BLANK = "error.resource.item.file.blank";
+
+ public static final String ERROR_MSG_INVALID_URL = "error.resource.item.invalid.url";
+
+ public static final String ERROR_MSG_UPLOAD_FAILED = "error.upload.failed";
+
+ public static final String PAGE_EDITABLE = "isPageEditable";
+
+ public static final String MODE_AUTHOR_SESSION = "author_session";
+
+ public static final String ATTR_REFLECTION_ON = "reflectOn";
+
+ public static final String ATTR_REFLECTION_INSTRUCTION = "reflectInstructions";
+
+ public static final String ATTR_REFLECTION_ENTRY = "reflectEntry";
+
+ public static final String ATTR_REFLECT_LIST = "reflectList";
+
+ public static final String ATTR_USER_UID = "userUid";
+
+ public static final String DEFUALT_PROTOCOL_REFIX = "http://";
+
+ public static final String ALLOW_PROTOCOL_REFIX = new String("[http://|https://|ftp://|nntp://]");
+
+ public static final String EVENT_NAME_NOTIFY_TEACHERS_ON_ASSIGMENT_SUBMIT = "notify_teachers_on_assigment_submit";
+
+ public static final String SHARED_ITEMS_DEFINITION_NAME = "shared.items.output.definition.eadventure";
+
+
+ public final static String PARAMETERS_FILE_NAME = "ead-parameters.xml";
+
+ public final static String PARAMS_TYPE_STRING = "string";
+ public final static String PARAMS_TYPE_INTEGER = "integer";
+ public final static String PARAMS_TYPE_BOOLEAN = "boolean";
+
+ public final static String VAR_NAME_SCORE = "score";
+ public final static String VAR_NAME_REPORT = "report";
+ public final static String VAR_NAME_COMPLETED = "game-completed";
+ public final static String VAR_NAME_TIME_TAKEN = "total-time";
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/DAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/DAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/DAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,70 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+/**
+ * Data Access Object (DAO) interface. This is an interface
+ * used to tag our DAO classes and to provide common methods to all DAOs.
+ *
+ * @author Dapeng.Ni
+ */
+public interface DAO {
+
+ /**
+ * Generic method used to get all objects of a particular type. This
+ * is the same as lookup up all rows in a table.
+ * @param clazz the type of objects (a.k.a. while table) to get data from
+ * @return List of populated objects
+ */
+ public List getObjects(Class clazz);
+
+ /**
+ * Generic method to get an object based on class and identifier. An
+ * ObjectRetrievalFailureException Runtime Exception is thrown if
+ * nothing is found.
+ *
+ * @param clazz model class to lookup
+ * @param id the identifier (primary key) of the class
+ * @return a populated object
+ * @see org.springframework.orm.ObjectRetrievalFailureException
+ */
+ public Object getObject(Class clazz, Serializable id);
+
+ /**
+ * Generic method to save an object - handles both update and insert.
+ * @param o the object to save
+ */
+ public void saveObject(Object o);
+
+ /**
+ * Generic method to delete an object based on class and id
+ * @param clazz model class to lookup
+ * @param id the identifier (primary key) of the class
+ */
+ public void removeObject(Class clazz, Serializable id);
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureAttachmentDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureAttachmentDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureAttachmentDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,28 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+public interface EadventureAttachmentDAO extends DAO {
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureConditionDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureConditionDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureConditionDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,32 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+public interface EadventureConditionDAO extends DAO{
+
+
+
+
+}
+
\ No newline at end of file
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,36 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import org.eucm.lams.tool.eadventure.model.Eadventure;
+
+public interface EadventureDAO extends DAO {
+
+ Eadventure getByContentId(Long contentId);
+
+ Eadventure getByUid(Long eadventureUid);
+
+ void delete(Eadventure eadventure);
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureExpressionDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureExpressionDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureExpressionDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,29 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+public interface EadventureExpressionDAO extends DAO{
+
+}
+
\ No newline at end of file
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureItemVisitDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureItemVisitDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureItemVisitDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,48 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.eucm.lams.tool.eadventure.dto.Summary;
+import org.eucm.lams.tool.eadventure.model.EadventureItemVisitLog;
+
+public interface EadventureItemVisitDAO extends DAO {
+
+
+ public EadventureItemVisitLog getEadventureItemLog(Long itemUid,Long userId);
+
+ public int getUserViewLogCount(Long sessionId, Long userUid);
+ /**
+ * Return list which contains key pair which key is eadventure item uid, value is number view.
+ *
+ * @param contentId
+ * @return
+ */
+ public Map getSummary(Long contentId);
+
+ public List getEadventureItemLogBySession(Long sessionId,Long itemUid);
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureParamDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureParamDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureParamDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,38 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import java.util.List;
+
+import org.eucm.lams.tool.eadventure.model.EadventureParam;
+
+public interface EadventureParamDAO extends DAO {
+
+
+ public List getEadventureParamByEadContentId(Long contentId);
+
+ void delete(EadventureParam param);
+
+}
+
\ No newline at end of file
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureSessionDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureSessionDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureSessionDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,41 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import java.util.List;
+
+import org.eucm.lams.tool.eadventure.model.EadventureSession;
+
+public interface EadventureSessionDAO extends DAO {
+
+ EadventureSession getSessionBySessionId(Long sessionId);
+
+ List getByContentId(Long toolContentId);
+
+ void delete(EadventureSession session);
+
+ void deleteBySessionId(Long toolSessionId);
+
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureUserDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureUserDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureUserDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,37 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import java.util.List;
+
+import org.eucm.lams.tool.eadventure.model.EadventureUser;
+
+public interface EadventureUserDAO extends DAO {
+
+ EadventureUser getUserByUserIDAndSessionID(Long userID, Long sessionId);
+
+ EadventureUser getUserByUserIDAndContentID(Long userId, Long contentId);
+
+ List getBySessionID(Long sessionId);
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureVarsDAO.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureVarsDAO.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/EadventureVarsDAO.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,33 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.eucm.lams.tool.eadventure.dao;
+
+import org.eucm.lams.tool.eadventure.model.EadventureVars;
+
+public interface EadventureVarsDAO extends DAO {
+
+
+ public EadventureVars getEadventureVars(Long itemVisitLogID,String name);
+}
+
\ No newline at end of file
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/BaseDAOHibernate.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/BaseDAOHibernate.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/BaseDAOHibernate.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,72 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao.hibernate;
+
+import java.io.Serializable;
+import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.eucm.lams.tool.eadventure.dao.DAO;
+import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
+
+/**
+ * This class serves as the Base class for all other DAOs - namely to hold
+ * common methods that they might all use. Can be used for standard CRUD
+ * operations.
+ *
+ * @author Dapeng.Ni
+ */
+public class BaseDAOHibernate extends HibernateDaoSupport implements DAO {
+ protected final Log log = LogFactory.getLog(getClass());
+
+ /**
+ * @see com.edgenius.paradise.dao.DAO#saveObject(java.lang.Object)
+ */
+ public void saveObject(Object o) {
+ getHibernateTemplate().saveOrUpdate(o);
+ }
+
+ /**
+ * @see com.edgenius.paradise.dao.DAO#getObject(java.lang.Class, java.io.Serializable)
+ */
+ public Object getObject(Class clazz, Serializable id) {
+ Object o = getHibernateTemplate().get(clazz, id);
+ return o;
+ }
+
+ /**
+ * @see com.edgenius.paradise.dao.DAO#getObjects(java.lang.Class)
+ */
+ public List getObjects(Class clazz) {
+ return getHibernateTemplate().loadAll(clazz);
+ }
+
+ /**
+ * @see com.edgenius.paradise.dao.DAO#removeObject(java.lang.Class, java.io.Serializable)
+ */
+ public void removeObject(Class clazz, Serializable id) {
+ getHibernateTemplate().delete(getObject(clazz, id));
+ }
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureAttachmentDAOHibernate.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureAttachmentDAOHibernate.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureAttachmentDAOHibernate.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,30 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao.hibernate;
+
+import org.eucm.lams.tool.eadventure.dao.EadventureAttachmentDAO;
+
+public class EadventureAttachmentDAOHibernate extends BaseDAOHibernate implements EadventureAttachmentDAO{
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureConditionDAOHibernate.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureConditionDAOHibernate.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureConditionDAOHibernate.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,31 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.eucm.lams.tool.eadventure.dao.hibernate;
+
+import org.eucm.lams.tool.eadventure.dao.EadventureConditionDAO;
+
+public class EadventureConditionDAOHibernate extends BaseDAOHibernate implements EadventureConditionDAO {
+
+}
+
\ No newline at end of file
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureDAOHibernate.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureDAOHibernate.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureDAOHibernate.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,56 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao.hibernate;
+
+import java.util.List;
+
+import org.eucm.lams.tool.eadventure.dao.EadventureDAO;
+import org.eucm.lams.tool.eadventure.model.Eadventure;
+
+/**
+ *
+ * @author Steve.Ni
+ *
+ * @version $Revision$
+ */
+public class EadventureDAOHibernate extends BaseDAOHibernate implements EadventureDAO{
+ private static final String GET_RESOURCE_BY_CONTENTID = "from "+Eadventure.class.getName()+" as r where r.contentId=?";
+
+ public Eadventure getByContentId(Long contentId) {
+ List list = getHibernateTemplate().find(GET_RESOURCE_BY_CONTENTID,contentId);
+ if(list.size() > 0)
+ return (Eadventure) list.get(0);
+ else
+ return null;
+ }
+
+ public Eadventure getByUid(Long eadventureUid) {
+ return (Eadventure) getObject(Eadventure.class,eadventureUid);
+ }
+
+ public void delete(Eadventure eadventure) {
+ this.getHibernateTemplate().delete(eadventure);
+ }
+
+}
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureExpressionDAOHibernate.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureExpressionDAOHibernate.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureExpressionDAOHibernate.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,31 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/* $Id$ */
+package org.eucm.lams.tool.eadventure.dao.hibernate;
+
+import org.eucm.lams.tool.eadventure.dao.EadventureExpressionDAO;
+
+public class EadventureExpressionDAOHibernate extends BaseDAOHibernate implements EadventureExpressionDAO {
+
+}
+
\ No newline at end of file
Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureItemVisitDAOHibernate.java
===================================================================
diff -u
--- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureItemVisitDAOHibernate.java (revision 0)
+++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dao/hibernate/EadventureItemVisitDAOHibernate.java (revision e7b84a8dda80b775d674d686a2564d40c7e3f871)
@@ -0,0 +1,102 @@
+/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+/* $$Id$$ */
+package org.eucm.lams.tool.eadventure.dao.hibernate;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eucm.lams.tool.eadventure.dao.EadventureItemVisitDAO;
+import org.eucm.lams.tool.eadventure.dto.Summary;
+import org.eucm.lams.tool.eadventure.model.Eadventure;
+import org.eucm.lams.tool.eadventure.model.EadventureItemVisitLog;
+import org.eucm.lams.tool.eadventure.model.EadventureSession;
+import org.eucm.lams.tool.eadventure.model.EadventureUser;
+
+public class EadventureItemVisitDAOHibernate extends BaseDAOHibernate implements EadventureItemVisitDAO{
+
+ private static final String FIND_BY_ITEM_AND_USER = "from " + EadventureItemVisitLog.class.getName()
+ + " as r where r.user.userId = ? and r.eadventure.uid = ?";
+
+ private static final String FIND_BY_ITEM_BYSESSION = "from " + EadventureItemVisitLog.class.getName()
+ + " as r where r.sessionId = ? and r.eadventure.uid=?";
+
+ private static final String FIND_VIEW_COUNT_BY_USER = "select count(*) from " + EadventureItemVisitLog.class.getName()
+ + " as r where r.sessionId=? and r.user.userId =?";
+
+ private static final String FIND_SUMMARY = "select v.eadventure.uid, count(v.eadventure) from "
+ + EadventureItemVisitLog.class.getName() + " as v , "
+ + EadventureSession.class.getName() + " as s, "
+ + Eadventure.class.getName() + " as r "
+ +" where v.sessionId = s.sessionId "
+ +" and s.eadventure.uid = r.uid "
+ +" and r.contentId =? "
+ +" group by v.sessionId, v.eadventure.uid ";
+
+ /*private static final String FIND_SUMMARY = "select v.eadventure.uid, count(v.eadventureItem) from "
+ + EadventureItemVisitLog.class.getName() + " as v , "
+ + EadventureSession.class.getName() + " as s, "
+ + Eadventure.class.getName() + " as r "
+ +" where v.sessionId = s.sessionId "
+ +" and s.eadventure.uid = r.uid "
+ +" and r.contentId =? "
+ +" group by v.sessionId, v.eadventure.uid ";
+
+ */
+ public EadventureItemVisitLog getEadventureItemLog(Long itemUid,Long userId){
+ List list = getHibernateTemplate().find(FIND_BY_ITEM_AND_USER,new Object[]{userId,itemUid});
+ if(list == null || list.size() ==0)
+ return null;
+ return (EadventureItemVisitLog) list.get(0);
+ }
+
+ public int getUserViewLogCount(Long toolSessionId ,Long userUid) {
+ List list = getHibernateTemplate().find(FIND_VIEW_COUNT_BY_USER,new Object[]{toolSessionId, userUid});
+ if(list == null || list.size() ==0)
+ return 0;
+ return ((Number) list.get(0)).intValue();
+ }
+
+ // returns for specified Eadventure UUID the number () of eadVisitLogs asociated to this eAdventure
+ public Map getSummary(Long contentId) {
+
+ // Note: Hibernate 3.1 query.uniqueResult() returns Integer, Hibernate 3.2 query.uniqueResult() returns Long
+ List