Commit graph

1723 commits

Author SHA1 Message Date
hns
b173eb0200 * Make setParent() return boolean true if the argument was accepted as new parent
* Use setParentHandle() wherever we don't need the new parent to be checked
* Backpedal from change in previous commit to only set parent for non-relational
   nodes in addNode() and setNode().
2004-03-09 15:01:49 +00:00
hns
b565d6a166 Add a check to prevent cyclic parent chains in setParent().
Only set parent for non-relational nodes in addNode() and setNode().
http://helma.org/bugs/show_bug.cgi?id=344
2004-03-09 14:25:29 +00:00
hns
2f51ace37c * Allow parent info in getParent() to be computed for transient nodes
* Fix getNonVirtualParent() for transient nodes. YAY!
2004-03-09 11:39:43 +00:00
hns
9b70db7a0e Fix NullPointerException when saving a relational object that doesn't have a
property map (i.e. has no properties set).
2004-03-09 11:31:18 +00:00
hns
12dea26028 Improve error message in getURL(): send it to the application's event log and
include the URL which caused the exception.
2004-03-03 15:28:31 +00:00
hns
83d29f6a60 Only do anonymous/named check in getElementName() for relational objects.
Also check if child is relational before doing Relation.checkConstraints in isParentOf().
2004-03-02 15:03:05 +00:00
hns
08c443ce6a Only call Relation.checkConstraints() in isParentOf() if the subnode relation does
not have a filter set, because checkConstraints() always returns false in that case.
2004-02-27 14:45:49 +00:00
hns
38c9d74be6 Improved documentation for checkConstraints(), adding info about its shortcomings.
Slightly improved method body by only calling getNonVirtualParent() once.
2004-02-27 14:44:34 +00:00
hns
5c8d774f47 Implementing path.contains(obj) 2004-02-27 13:24:03 +00:00
hns
e6da507d85 Fix HopObject cach property getter to do a Context.toObject().
Remove bogus getDefaultValue() implementation.
2004-02-27 13:19:17 +00:00
hns
75b2dea067 Implement isParentOf() method that is similar to contains() but returns boolean
true instead of the index position of the child node. The advantage is that we don't
need to load the subnode index for relational nodes. We're using isParentOf() in
getElementName() and getParent().
2004-02-25 13:11:13 +00:00
hns
99ba7d3e3c Increasing version to 1.4.0-rc2 2004-02-20 15:31:26 +00:00
hns
b972bee305 Fix minor typo in comment 2004-02-20 15:29:02 +00:00
hns
b703465f8e Only write log message if cache size is other than default. 2004-02-20 15:28:27 +00:00
hns
40a3b57be3 Don't make getNode throw XML-specific Exceptions. 2004-02-20 15:27:43 +00:00
hns
3a4877f84b Set implicit baseURI in bind() in addition to start() so that Hrefs are correct
after an application was remounted.
2004-02-20 13:42:34 +00:00
stefanp
53a34d861a fixed http://helma.org/bugs/show_bug.cgi?id=333
lastModified() now returns a double value
added toString() so that filename is printed as default value
2004-02-19 18:12:16 +00:00
hns
df1c131648 cleanup in Application:
* make init(), start() and stop() synchronized
* suppress some logging messages if using default values
  (cache size, preallocated evaluators)
* do not null out freeThreads stack in stop() so we don't have to worry
  about calling releaseEvaluator() in stopped applications
* replace boolean stopped field with boolean running and add
  public synchronized isRunning() accessor
* if preallocating multiple evaluators only init scripting engine
  on the first one
* move invocation of onStart() from start() to scheduler thread
2004-02-19 14:12:39 +00:00
hns
7bfb70430e * Work around Java/Windows quirk where File can't be renamed if a file with the
target name exists by deleting the existing file.
http://helma.org/bugs/show_bug.cgi?id=338
* Catch all Exceptions when reading XML in getNode, and rethrow as IOException
rather then ObjectNotFoundException (which is only thrown if the file in question
doesn't exist).
2004-02-19 10:47:43 +00:00
hns
c1ef213150 Make class JDK 1.3 compatible by implementing our own stack trace to string method 2004-02-19 10:40:14 +00:00
hns
82ed2fccd5 JDK 1.2 compatible jar from Jetty 4.2.17 2004-02-19 09:55:43 +00:00
hns
f15dea4217 Adapt global seal() function from Rhino 1.5R5 from global shell object in
Rhino 1.5R5 to allow sealing of JavaScript objects.
2004-02-18 14:46:25 +00:00
hns
a68eb60c94 Update to official 1.5R5pre snapshot from 2004/02/17. 2004-02-18 14:41:02 +00:00
hns
53e006b9da Add Javadoc class comments 2004-02-18 13:12:40 +00:00
hns
21c33be366 Fix previous commit: do recursively invoke processXmlRpcResponse() on
contents of Maps.
2004-02-18 12:53:54 +00:00
hns
37d086d5f3 Add a branch in processXmlRpcResponse() to convert a Map to a Hashtable.
Use ...else if... rather then separate if statements for mutually exclusive conditions
in processXmlRpcResponse().
2004-02-18 11:42:47 +00:00
hns
4245d6d08f MapWrapper now implements org.mozilla.javascript.Wrapper so there's no more
need for special treatment (unwrapping).
2004-02-18 11:40:27 +00:00
hns
b735055492 Make MapWrapper implement org.mozilla.javascript.Wrapper so that the map
is autimatically unwrapped when passing it outside the scripting engine.
Added/enhanced some comments.
2004-02-18 11:39:33 +00:00
hns
d9ee5757fe Added Javadoc class comments. 2004-02-18 11:20:09 +00:00
hns
5d03b49b07 Do not try to read the main properties file unless it exists. There are usage
scenarios where there is no main properties file, so no error msg should be shown.
2004-02-18 10:57:39 +00:00
hns
209bfb1c35 Add additional permission checks in order to find potential problems before commit()
Add some comments, remove debug logging output
2004-02-17 15:27:50 +00:00
hns
6f3d080b34 Rewrote embedded XML database to make it more dependable:
New records are first written to temporary files and only renamed to their
actual names when the transaction is committed.
2004-02-17 15:13:40 +00:00
hns
e512386e9a Adding logError() methods. 2004-02-17 15:08:08 +00:00
hns
2185848e6c Use getChildElement() rather than getNode() to check for an already
existing user item in registerUser().
2004-02-17 10:07:19 +00:00
hns
2ec37bda9c Set Content-Type header when forwarding to a local resource. 2004-02-13 20:51:02 +00:00
hns
5cf2dbc927 No more need to cache a new group node, Node.getGroupbySubnode()
does this now if called with create == true.
2004-02-12 14:32:50 +00:00
hns
6b631e0f0e * Fix bug where fresh groupnode was not registered with nodemanager
when created from addNode()
* Fix bug where named child node wasn't evicted when the name property
   was changed because we tried getNode() rather than getChildElement()
2004-02-12 14:32:01 +00:00
hns
311ddd0732 Remove horrendously outdated document 2004-02-11 17:25:12 +00:00
hns
d280a029e9 Going back to .tar.gz as file extension for gzipped tar files 2004-02-11 16:58:35 +00:00
hns
b64d52a118 Updating to current CVS snapshot to fix bug #233274
http://bugzilla.mozilla.org/show_bug.cgi?id=233274
2004-02-11 16:45:36 +00:00
hns
a49b59190c Updated version to 1.4.0-rc1 2004-02-11 16:20:55 +00:00
hns
e1b65bdc8b Implement/fix aggressive property loading for Oracle when loading through
manually set subnodeRelation.
2004-02-11 16:13:44 +00:00
hns
cecd13f7d2 Adjust @throws clause (but be careful not to add any information ;-) 2004-02-11 15:07:14 +00:00
hns
f6b9841947 Print out a warning if a collection specified in a _parent descriptor does not exist. 2004-02-11 15:06:23 +00:00
hns
82c0524e00 Update to Jetty 4.2.17 2004-02-10 23:01:15 +00:00
hns
8bccddd447 Register skin file map with lower case prototype name in addition to the
ordinary name in app.skinfiles.
2004-02-10 15:27:32 +00:00
hns
5a58a5ba8a Use "Root" rather than "root" as prototype when creating a root object in the
embedded database.
2004-02-10 15:13:51 +00:00
hns
a556621554 - Fully reload properties whenever one of its ingredients is changed
(main file or additional props from zip file).
- Remove deprecated constructor
2004-02-10 14:43:55 +00:00
p3k
0def62ee5a fixed script to support JAVA_HOME with spaces 2004-02-10 13:48:45 +00:00
hns
736df12ef5 Make GlobalObject extend Rhino's ImporterTopLevel so we have
the importClass() and importPackage() functions.
2004-02-10 12:46:17 +00:00