Commit graph

  • e9c32f20a1 Enhanced/fixed Javadoc for getRootRepository() hns 2005-05-24 14:32:45 +00:00
  • 962d53336c Make sure skinmaps are loaded even if prototype's resources haven't been checked yet. Fixes bug 428. hns 2005-05-24 14:18:19 +00:00
  • fe455cb556 - Implemented notifyPropertyChange() function which is called from all property setters in order to fix bug 424. - Refactored DbMapping related checks in setString() a little bit. hns 2005-05-24 10:21:48 +00:00
  • f671a6b838 - Return the logical/script root in AbstractRepository.getRootRepository(). Fixes bug 425. - Added some Javadoc comments. hns 2005-05-20 09:55:10 +00:00
  • e284f39be5 getRootNode(): Set DbMapping and prototype name to app.getRootMapping() hns 2005-05-18 08:44:43 +00:00
  • 0eb623afd5 Use NodeManager.getRootNode() to get our root node. hns 2005-05-18 08:42:17 +00:00
  • d26b968ae8 Always use directly mapped property as first choice when resolving ${column_name} in appendFilter(). Only use id/name/prototype if that doesn't give us a value. hns 2005-05-18 08:33:47 +00:00
  • 3c8f9f8890 Throw exception in init() when rootPrototype or userPrototype does not exist. hns 2005-05-13 15:33:01 +00:00
  • 525739eaa5 Minor code improvement in isStorageCompatible() hns 2005-05-13 15:26:55 +00:00
  • 0deb7c3a53 Read rootPrototype and userPrototype in init() instead of in updateProperties() hns 2005-05-13 15:25:58 +00:00
  • 70ea9f7aa3 Application.java: - Update rootMapping and userMapping in updateProperties() - Replace getRootPrototype() with getRootMapping() DbMapping(): - Implement static areStorageCompatible() method to check two DbMappings, both of which may be null NodeManager: - Update to use new methods hns 2005-05-13 15:20:16 +00:00
  • 4def8eed1e Implement NodeManager.getRootNode() and NodeManager.isRootNode() that allow to get the app's root node and check if a node is the root node, respectively hns 2005-05-13 14:45:42 +00:00
  • 022bc2a2d8 - Renamed former rootPrototype property to hrefRootProperty, since it defines the root object only as far as href() function is concerned - Add rootPrototype and userPrototype properties that allow to set the prototypes for the root and user objects, respectively - Implement Application.getRootPrototype() and Application.getRootId() that allow to get the prototype and id of the app's root node hns 2005-05-13 14:44:45 +00:00
  • fc9120d77f Remove initDb() method, not used anymore hns 2005-05-13 14:07:23 +00:00
  • 70eb0c5e5d Implement rootPrototype app property that allows to force-set the root object prototype. hns 2005-05-12 16:16:39 +00:00
  • 95dd5feb63 Fix bug where directories wrongly adopted resources as their children. hns 2005-04-29 13:27:54 +00:00
  • 6c44c5fa66 Implement appname.protectedSessionCookie property in apps.properties. If set to "false", session cookies will not be bound to the client's ip subnet. hns 2005-04-22 13:23:25 +00:00
  • 21e98e793e Print debug statement for session manager implementation hns 2005-04-22 12:49:18 +00:00
  • 8651432157 Switch back to ImageIO.read() on CVS HEAD (we stay with Toolkit.createImage() on helma_1_4 branch for now) hns 2005-04-15 14:23:50 +00:00
  • 2b916bc2df Only set response to 304 not modified if no cookies were set. Apache will not set cookies in a 304 response. hns 2005-04-14 16:27:37 +00:00
  • 00070358f9 Fix app.getSessions() hns 2005-04-14 11:04:03 +00:00
  • 3eea4d97af Use proper resource ordering for multiple type.properties files hns 2005-04-13 10:42:12 +00:00
  • f889624d86 Fix bug in getSkin() that could result in skins not being fully read. hns 2005-04-13 09:22:59 +00:00
  • c54d767b6e Make sure script windows are updated when scripts are recompiled hns 2005-04-12 13:34:11 +00:00
  • ed3220768a Move helma.xsl from helma/objectmodel/db to helma/objectmodel/dom package (following the move of XmlDatabase) hns 2005-04-12 13:10:22 +00:00
  • 8e96cfb709 Remove ominous apache-michi.jar from jar contents hns 2005-04-12 09:53:27 +00:00
  • b8c6201d40 Always scan for repositories 0-9 hns 2005-04-11 15:36:43 +00:00
  • a021cbf791 Allow Helma to run without listening to any server ports. hns 2005-04-11 15:29:47 +00:00
  • 2ab0f17678 Add missing calls to checkNode() hns 2005-04-11 15:26:56 +00:00
  • 47e6955aa2 Don not use potentially deprecated ZipEntry to get an entry's size. The entry may have been generated for an old version of the zip file and not exist at all. As a fix, don't store the ZipEntry at all in ZipResource, just the ZipEntry's name. hns 2005-04-11 11:44:54 +00:00
  • 530afc9f88 Add calls to Graphics.dispose() and Image.flush() whereever possible. Rewrite protected resize to directly set image, width, and height. hns 2005-04-07 14:15:46 +00:00
  • a74ec62b68 Use Toolkit.createImage() to decode images until javax.imageio has matured. hns 2005-04-07 14:15:26 +00:00
  • 806260212e Set lastmodified to 0 if repository doesn't exist hns 2005-04-05 13:13:32 +00:00
  • 5d754c46a7 Set initial value for lastChecksum to -1 to avoid null reference for empty repositories hns 2005-04-05 13:12:57 +00:00
  • 4d1e6868cd Introduce updateSnooze that continously increases type check interval from 1 to 5 seconds as the app remains unchanged. hns 2005-03-25 08:20:18 +00:00
  • 6b5713b80a Mark prototype code updated when new resources are added hns 2005-03-25 08:15:36 +00:00
  • 67988a8d62 Add todo note in getUrl() hns 2005-03-25 00:27:45 +00:00
  • 48489e8200 Catch UnsupportedOperationException thrown by Resource.getUrl() hns 2005-03-25 00:27:16 +00:00
  • fdf3915d9e Move TypeManager.updatePrototype(Prototype) to Prototype.checkForUpdates(). Additionally, the inner workings of the Prototype update logic were vastly simplified. hns 2005-03-25 00:12:59 +00:00
  • 57efa85f29 remove void return hns 2005-03-24 23:03:03 +00:00
  • c7d2534811 Change Application.getRepositories() to return a List instead of an Iterator hns 2005-03-24 22:38:51 +00:00
  • 514d9a353c Use logError() instead of logEvent() to log original compilation errors. hns 2005-03-24 22:03:51 +00:00
  • fde3b335db No need to dump stack, logError does that for us (leads to multiple stack traces). hns 2005-03-24 22:02:21 +00:00
  • 0856559870 Optimize synchronization in updatePrototypes(): keep out of synchronized section if possible hns 2005-03-24 18:24:51 +00:00
  • 7af9cc6a22 * Implement createResource() method so child resources can be used even if they don't exist * Fix horrible bug in update() where child items were created that weren't child resources at all hns 2005-03-24 18:23:50 +00:00
  • cb02290e3d Remove unnecessary casts hns 2005-03-24 18:20:57 +00:00
  • c5996c52ea Minor code reorg in constructor hns 2005-03-24 18:20:39 +00:00
  • 73e377dde1 Introduced Resource.getBaseName() to return name with extension cut off. Fixed Resource lookup failure on Windows. hns 2005-03-23 19:28:04 +00:00
  • 908424d18a * Actually add embedded top-level repositories to the app's repositories * Simplify last-top-level-repository check in TypeManager * Fix Application.getAppDir() hns 2005-03-23 16:42:38 +00:00
  • 92da97550c Split IDatabase.saveNode() into insertNode() and updateNode(). Fixes bug 418. hns 2005-03-23 14:57:28 +00:00
  • 11257b4765 * Make TypeManager.createPrototypes() and TypeManager.checkPrototypes() throw IOException * Propagate IOException in the callers of the above methods hns 2005-03-23 12:32:50 +00:00
  • e5514d7099 * Don't use TreeSet for resources unless we can get a ResourceComparator * Check if resources exist before trying to read from them hns 2005-03-23 12:30:04 +00:00
  • 4f59be6597 * Move initScriptingEngine() and scriptingEngine.updatePrototypes() call inside try statement * Replace do.. while with wile statement hns 2005-03-23 12:28:26 +00:00
  • 14f8f1e8d2 * Implemented hashCode() and equals(Object) for all Repository and Resource implementations * Some code improvements and minor fixes hns 2005-03-23 12:23:49 +00:00
  • d3e5eaca9d Display absolute path name for getName() and toString() in stand-alone file resources. hns 2005-03-22 16:24:35 +00:00
  • 7c9e4b0fa5 Do not merge lastModifieds in commit() hns 2005-03-22 13:01:04 +00:00
  • 2dc2851aee Use higher (10 minutes) default request timeout if rhino debugger is on. hns 2005-03-22 10:53:09 +00:00
  • 773ef11ab0 Check for updates in lastModified() hns 2005-03-21 17:48:01 +00:00
  • 335f351c5c Generally add the exception as second argument when logging errors. Add check for null pointer when unregistering XML-RPC handler. hns 2005-03-21 17:46:39 +00:00
  • 60b61d63ca Implement doGenerateID() that can safely be called by IDGenerator without causing infinite recursion. hns 2005-03-21 15:38:26 +00:00
  • a37a4e9216 Make generateID() throw Exception hns 2005-03-21 15:37:13 +00:00
  • 3ff46c6dd3 Add public setUserHandle(), setCacheNode(), getMessage(), setMessage() methods. hns 2005-03-21 13:29:49 +00:00
  • 034153f251 Make getLogger() public hns 2005-03-21 13:29:10 +00:00
  • 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). hns 2005-03-18 13:51:54 +00:00
  • 892fe4b6e1 Make sure we enter and exit a Context in serialize()/deserialize(). Do not wrap return object in deserialize(). hns 2005-03-18 13:50:41 +00:00
  • 0dd4dba0f7 Try to make javac 1.5 not complain by casting argument to Object[]. hns 2005-03-18 03:17:13 +00:00
  • 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. hns 2005-03-18 03:13:12 +00:00
  • c509e3a030 Moved/merged to XmlIDGenerator in the same package. hns 2005-03-18 03:11:13 +00:00
  • 127395afdb * Make getEvaluator() and releaseEvaluator() methods public * Immediately mark application as running in init() * Adapt to new signature of NodeManager.init() hns 2005-03-18 02:08:28 +00:00
  • 9ef4316dd6 Cleaned up embedded database code: Cleaned up IDatabase interface, moved code into XmlDatabase, removed IDGenerator code from NodeManager and Transactor. hns 2005-03-18 02:05:24 +00:00
  • d8dc1fc61e Ignore registerSubnodeChange for transient or new nodes. hns 2005-03-18 02:01:41 +00:00
  • e72037c35f Implement getScriptingEngine(): gets the evaluator's scripting engine, creating and initializing it if necessary. hns 2005-03-18 01:59:43 +00:00
  • b21a0d8ddb Added Javadocs, minor code reformatting, removed unused method. hns 2005-03-18 01:42:19 +00:00
  • 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 hns 2005-03-17 08:32:47 +00:00
  • b953e6e3b2 Use logError() rather than logEvent() for logging HTTP request errors hns 2005-03-16 20:20:54 +00:00
  • aaeba92e4b Swap out session handling into separate SessionManager class. hns 2005-03-16 17:32:32 +00:00
  • 6ad5e1ae28 Implement Session.login(userName, password) hns 2005-03-16 17:29:16 +00:00
  • e51725aba0 Add serilaize()/deserialize() support to ScriptingEngine to allow engines to take care of serialization of scriptable objects. hns 2005-03-16 17:28:27 +00:00
  • 301d589fae Fix bug that always caused resource- and app-less properties to be cleared in update(). hns 2005-03-16 16:48:01 +00:00
  • 2127a6738f Fix ClassCastException in SkinMap.load() hns 2005-03-16 16:27:41 +00:00
  • 628cadcf49 Implement global serialize() and deserialize() functions hns 2005-03-16 11:48:42 +00:00
  • 4527bda2b5 * Re-implemented support for .hsp files in HEAD. * Cleaned up .hac and .hsp processing code * Renamed RhinoActionAdapter to HacHspConverter hns 2005-03-16 11:05:43 +00:00
  • dc394199be Register thread local variables before calling updatePrototypes() in order to allow various things to happen during code compilation. hns 2005-03-15 18:05:33 +00:00
  • 6a29c2b465 Avoid using enum as variable name in order to compile on Java 1.5 hns 2005-03-15 17:35:39 +00:00
  • 71c4482c76 Fix .hac action file support hns 2005-03-15 14:42:21 +00:00
  • 856133d12a Handle internal calls for non-existing functions. Fixes bug 417. http://helma.org/bugs/show_bug.cgi?id=417 hns 2005-03-15 12:38:55 +00:00
  • 25fc5f7126 Log error and rethrow exception in initScriptingEngine() hns 2005-03-15 12:15:22 +00:00
  • d4c3769bf5 Fix case where repository name contains a dot, but filename doesn't. hns 2005-03-15 11:55:26 +00:00
  • 0c4bb5b7d4 Fix NullPointerException for prototype folders with non-valid type names hns 2005-03-15 10:43:15 +00:00
  • 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 hns 2005-03-14 16:30:32 +00:00
  • 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. hns 2005-03-14 16:28:53 +00:00
  • 2373d63719 Add support for rhino debugger (merge from helma_1_4) hns 2005-03-11 15:41:35 +00:00
  • 1f84ed41ac Gracefully handle the case where getConnection() is called by a non-transactor thread (merge from helma_1_4) hns 2005-03-11 15:37:32 +00:00
  • 344c0da36e Make session cookie name configurable via sessionCookieName in apps.properties (merge from helma_1_4) hns 2005-03-11 15:36:42 +00:00
  • bcf5542565 Unset transaction name in commit() and abort() - merge from helma_1_4 branch hns 2005-03-11 13:32:44 +00:00
  • a77a6cf602 Make reqtype field volatile (merge from branch helma_1_4) hns 2005-03-11 13:27:15 +00:00
  • 9f842e8c5d Merged in repository_patch branch. Plus these changes: * Renamed helma.util.SourceProperties to helma.util.ResourceProperties * Removed timing from helma.framework.core.RequestEvaluator hns 2005-03-10 16:54:04 +00:00
  • 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 hns 2005-03-09 16:43:33 +00:00
  • 9bcdfd7cd0 Check if Server.getServer() is not null before trying to get property from it. hns 2005-03-09 15:49:00 +00:00
  • 98842e7ff6 This commit was manufactured by cvs2svn to create tag 'helma_1_4_2'. hns 2005-03-09 14:45:36 +00:00