Commit graph

2197 commits

Author SHA1 Message Date
hns
908424d18a * Actually add embedded top-level repositories to the app's repositories
* Simplify last-top-level-repository check in TypeManager
* Fix Application.getAppDir()
2005-03-23 16:42:38 +00:00
hns
92da97550c Split IDatabase.saveNode() into insertNode() and updateNode(). Fixes bug 418. 2005-03-23 14:57:28 +00:00
hns
11257b4765 * Make TypeManager.createPrototypes() and TypeManager.checkPrototypes() throw IOException
* Propagate IOException in the callers of the above methods
2005-03-23 12:32:50 +00:00
hns
e5514d7099 * Don't use TreeSet for resources unless we can get a ResourceComparator
* Check if resources exist before trying to read from them
2005-03-23 12:30:04 +00:00
hns
4f59be6597 * Move initScriptingEngine() and scriptingEngine.updatePrototypes() call inside try statement
* Replace do.. while with wile statement
2005-03-23 12:28:26 +00:00
hns
14f8f1e8d2 * Implemented hashCode() and equals(Object) for all Repository and Resource implementations
* Some code improvements and minor fixes
2005-03-23 12:23:49 +00:00
hns
d3e5eaca9d Display absolute path name for getName() and toString() in stand-alone file resources. 2005-03-22 16:24:35 +00:00
hns
7c9e4b0fa5 Do not merge lastModifieds in commit() 2005-03-22 13:01:04 +00:00
hns
2dc2851aee Use higher (10 minutes) default request timeout if rhino debugger is on. 2005-03-22 10:53:09 +00:00
hns
773ef11ab0 Check for updates in lastModified() 2005-03-21 17:48:01 +00:00
hns
335f351c5c Generally add the exception as second argument when logging errors.
Add check for null pointer when unregistering XML-RPC handler.
2005-03-21 17:46:39 +00:00
hns
60b61d63ca Implement doGenerateID() that can safely be called by IDGenerator
without causing infinite recursion.
2005-03-21 15:38:26 +00:00
hns
a37a4e9216 Make generateID() throw Exception 2005-03-21 15:37:13 +00:00
hns
3ff46c6dd3 Add public setUserHandle(), setCacheNode(), getMessage(), setMessage() methods. 2005-03-21 13:29:49 +00:00
hns
034153f251 Make getLogger() public 2005-03-21 13:29:10 +00:00
hns
c4c3505545 Move session manager initialization code towards the end of init() to make sure
other fiels are initialized when we start (request evaluators must be usable).
2005-03-18 13:51:54 +00:00
hns
892fe4b6e1 Make sure we enter and exit a Context in serialize()/deserialize().
Do not wrap return object in deserialize().
2005-03-18 13:50:41 +00:00
hns
0dd4dba0f7 Try to make javac 1.5 not complain by casting argument to Object[]. 2005-03-18 03:17:13 +00:00
hns
abaa492d2a Move XmlDatabase to helma.objectmodel.dom package.
Move the IDGenerator into XmlIDGenerator in the same package.
Make helma.objectmodel.db.IDGenerator an interface that can be
used to plug id generators into NodeManager.
2005-03-18 03:13:12 +00:00
hns
c509e3a030 Moved/merged to XmlIDGenerator in the same package. 2005-03-18 03:11:13 +00:00
hns
127395afdb * Make getEvaluator() and releaseEvaluator() methods public
* Immediately mark application as running in init()
* Adapt to new signature of NodeManager.init()
2005-03-18 02:08:28 +00:00
hns
9ef4316dd6 Cleaned up embedded database code:
Cleaned up IDatabase interface, moved code into XmlDatabase,
removed IDGenerator code from NodeManager and Transactor.
2005-03-18 02:05:24 +00:00
hns
d8dc1fc61e Ignore registerSubnodeChange for transient or new nodes. 2005-03-18 02:01:41 +00:00
hns
e72037c35f Implement getScriptingEngine(): gets the evaluator's scripting engine,
creating and initializing it if necessary.
2005-03-18 01:59:43 +00:00
hns
b21a0d8ddb Added Javadocs, minor code reformatting, removed unused method. 2005-03-18 01:42:19 +00:00
hns
732fab12b8 Overworked and cleaned up session code a bit:
* Made all fields in Session and SessionManager protected to allow
  subclassing outside the package
* Renamed SessionManager.setApplication() to init() and introduce
  SessionManager.shutdown()
* Introduce Session.commit(RequestEvaluator) which is called after a HTTP
  request has finished executing
2005-03-17 08:32:47 +00:00
hns
b953e6e3b2 Use logError() rather than logEvent() for logging HTTP request errors 2005-03-16 20:20:54 +00:00
hns
aaeba92e4b Swap out session handling into separate SessionManager class. 2005-03-16 17:32:32 +00:00
hns
6ad5e1ae28 Implement Session.login(userName, password) 2005-03-16 17:29:16 +00:00
hns
e51725aba0 Add serilaize()/deserialize() support to ScriptingEngine to allow engines
to take care of serialization of scriptable objects.
2005-03-16 17:28:27 +00:00
hns
301d589fae Fix bug that always caused resource- and app-less properties to be cleared in update(). 2005-03-16 16:48:01 +00:00
hns
2127a6738f Fix ClassCastException in SkinMap.load() 2005-03-16 16:27:41 +00:00
hns
628cadcf49 Implement global serialize() and deserialize() functions 2005-03-16 11:48:42 +00:00
hns
4527bda2b5 * Re-implemented support for .hsp files in HEAD.
* Cleaned up .hac and .hsp processing code
* Renamed RhinoActionAdapter to HacHspConverter
2005-03-16 11:05:43 +00:00
hns
dc394199be Register thread local variables before calling updatePrototypes() in order
to allow various things to happen during code compilation.
2005-03-15 18:05:33 +00:00
hns
6a29c2b465 Avoid using enum as variable name in order to compile on Java 1.5 2005-03-15 17:35:39 +00:00
hns
71c4482c76 Fix .hac action file support 2005-03-15 14:42:21 +00:00
hns
856133d12a Handle internal calls for non-existing functions. Fixes bug 417.
http://helma.org/bugs/show_bug.cgi?id=417
2005-03-15 12:38:55 +00:00
hns
25fc5f7126 Log error and rethrow exception in initScriptingEngine() 2005-03-15 12:15:22 +00:00
hns
d4c3769bf5 Fix case where repository name contains a dot, but filename doesn't. 2005-03-15 11:55:26 +00:00
hns
0c4bb5b7d4 Fix NullPointerException for prototype folders with non-valid type names 2005-03-15 10:43:15 +00:00
hns
f7e929441c Implement our own RhinoDebugger subclass to display scripts in a nice table.
The current implementation is merged from helma_1_4 branch and a bit quirky
in regard to repository script source names
2005-03-14 16:30:32 +00:00
hns
fb04c05289 Hack: Move over Rhino debugger to helma.scripting.rhino.debug because most of the internals
are defined as package-private so there's no way to subclass unless we're in the same package.
2005-03-14 16:28:53 +00:00
hns
2373d63719 Add support for rhino debugger (merge from helma_1_4) 2005-03-11 15:41:35 +00:00
hns
1f84ed41ac Gracefully handle the case where getConnection() is called by a non-transactor thread
(merge from helma_1_4)
2005-03-11 15:37:32 +00:00
hns
344c0da36e Make session cookie name configurable via sessionCookieName in apps.properties
(merge from helma_1_4)
2005-03-11 15:36:42 +00:00
hns
bcf5542565 Unset transaction name in commit() and abort() - merge from helma_1_4 branch 2005-03-11 13:32:44 +00:00
hns
a77a6cf602 Make reqtype field volatile (merge from branch helma_1_4) 2005-03-11 13:27:15 +00:00
hns
9f842e8c5d Merged in repository_patch branch. Plus these changes:
* Renamed helma.util.SourceProperties to helma.util.ResourceProperties
* Removed timing from helma.framework.core.RequestEvaluator
2005-03-10 16:54:04 +00:00
hns
343fad7638 Improve JS Image constructor:
* Implement Image constructor from helma.util.MimePart
* Improve error reporting: Include original exception message for IOExceptions,
   include argument info to detect wrong arguments
2005-03-09 16:43:33 +00:00