You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by tv...@apache.org on 2008/01/25 21:25:35 UTC
svn commit: r615328 [17/18] - in /turbine/core/trunk: ./ conf/ conf/test/
extensions/maven-plugin/ extensions/maven-plugin/conf/
extensions/maven-plugin/src/plugin-resources/demo/templates/layouts/
extensions/maven-plugin/src/plugin-resources/demo/temp...
Modified: turbine/core/trunk/xdocs/services/index.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/index.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/index.xml (original)
+++ turbine/core/trunk/xdocs/services/index.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -73,7 +74,7 @@
<li>
<a href="avalon-component-service.html">Avalon Component Service</a>
<br/>
-Initializes external components which implement the Avalon lifecycle
+Initializes external components which implement the Avalon lifecycle
interface, e.g. Torque.
</li>
@@ -92,8 +93,8 @@
<li>
<a href="component-service.html">Component Service</a>
<br/>
-Initializes external components which implement the Stratum lifecycle
-interface, e.g. Torque and Fulcrum. Any new components will use the
+Initializes external components which implement the Stratum lifecycle
+interface, e.g. Torque and Fulcrum. Any new components will use the
Avalon lifecycle and thus the Avalon Component Service.
</li>
@@ -212,7 +213,7 @@
<li>
<a href="torque-security-service.html">Torque Security Service</a>
<br/>
-This is an implementation of a Security Service which uses Torque
+This is an implementation of a Security Service which uses Torque
generated peers to access the required security information.
</li>
Modified: turbine/core/trunk/xdocs/services/intake-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/intake-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/intake-service.xml (original)
+++ turbine/core/trunk/xdocs/services/intake-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -32,7 +33,7 @@
and mapping input data to a bean's properties. In other words, Intake
will allow a web application to take web form input, validate it and
then map the data to an object. Tools like the <a
-href="http://db.apache.org/torque/">Torque</a> help provide mapping of
+href="http://db.apache.org/torque/">Torque</a> help provide mapping of
Objects to the database and Intake helps map web form data to Objects.
</p>
@@ -74,7 +75,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -88,7 +89,7 @@
org.apache.turbine.services.intake.TurbineIntakeService
# -------------------------------------------------------------------
-#
+#
# I N T A K E S E R V I C E
#
# -------------------------------------------------------------------
@@ -110,8 +111,8 @@
<p>
Intake is made available in the Velocity context with the default value
-of $intake. The name of the variable that is used is what is configured
-for the tool. For example, the current configuration is "tool.request.intake".
+of $intake. The name of the variable that is used is what is configured
+for the tool. For example, the current configuration is "tool.request.intake".
To change the name of the variable to "foo", it would be "tool.request.foo".
</p>
@@ -138,11 +139,11 @@
<source><![CDATA[
<input-data basePackage="org.tigris.scarab.">
-<group name="AttributeValue" key="attv"
+<group name="AttributeValue" key="attv"
mapToObject="om.AttributeValue">
<field name="Value" key="val" type="String">
<rule name="maxLength" value="255">Value length cannot be > 255</rule>
- <required-message>This module requires data for this
+ <required-message>This module requires data for this
attribute.
</required-message>
</field>
@@ -153,7 +154,7 @@
</field>
<field name="OptionId" key="optionid" type="NumberKey">
<rule name="mask" value="^$|[0-9]+">Please select a valid choice</rule>
- <required-message>This module requires that you select an option
+ <required-message>This module requires that you select an option
for this attribute.
</required-message>
</field>
@@ -163,7 +164,7 @@
<field name="Username" key="u" type="String">
<rule name="minLength" value="1">Please enter an email address</rule>
<rule name="mask" value=".+@.+\..+">Please enter a valid email address</rule>
- </field>
+ </field>
<field name="Password" key="p" type="String">
<rule name="minLength" value="1">Please enter a password</rule>
</field>
@@ -183,9 +184,9 @@
<p>
The group tag has a class attribute which is the name that will be used
-within templates and java code to refer to the group. It also contains a
+within templates and java code to refer to the group. It also contains a
key attribute which will be used in the query parameters. The key is
-not referenced in any code, so it can be a short name (even 1 character) as
+not referenced in any code, so it can be a short name (even 1 character) as
long as it is uniquely identifies the group from the rest.
</p>
<p>
@@ -200,7 +201,7 @@
the field as well as assigning the field data to the bean after successful
validation. The field must have a type, which can be simple types such as
String and Integer. It is planned that more complex types, such as
-Email, Url, or Date, will be added that will add functionality that is
+Email, Url, or Date, will be added that will add functionality that is
difficult or not possible with a simple regex mask.
</p>
<p>
@@ -229,7 +230,7 @@
<field name="Username" key="u" type="String">
<rule name="minLength" value="1">Please enter an email address</rule>
<rule name="mask" value=".+@.+\..+">Please enter a valid email address</rule>
-</field>
+</field>
<field name="Password" key="p" type="String">
<rule name="minLength" value="1">Please enter a password</rule>
</field>
@@ -257,10 +258,10 @@
(1) <form action="$link.setPage("Login.vm")" method="POST" name="login" >
(2) <input type="hidden" name="action" value="Login">
(3) #if ($data.Parameters.nextTemplate)
-(4) <input type="hidden" name="nextTemplate"
+(4) <input type="hidden" name="nextTemplate"
value="$data.Parameters.nextTemplate">
#else
-(5) <input type="hidden" name="nextTemplate" value="Start.vm">
+(5) <input type="hidden" name="nextTemplate" value="Start.vm">
#end
<p>
@@ -282,7 +283,7 @@
(11) $loginGroup.Password.Message<br>
#end
(12) <input name= "$loginGroup.Password.Key"
- value="" size="25" type="text"
+ value="" size="25" type="text"
onChange="document.login.submit();">
</p>
@@ -364,19 +365,19 @@
</p>
<p>
-Below is an example of the HTML that is sent to the browser after the
+Below is an example of the HTML that is sent to the browser after the
page has been requested:
</p>
<source><![CDATA[
-<form action="http://foo:8080/scarab/servlet/scarab/template/Login.vm"
+<form action="http://foo:8080/scarab/servlet/scarab/template/Login.vm"
method="POST" name="login" >
<input type="hidden" name="action" value="Login">
- <input type="hidden" name="nextTemplate" value="Start.vm">
-
+ <input type="hidden" name="nextTemplate" value="Start.vm">
+
<p>
Email Address:
-
+
<input name= "login_0u"
value="" size="25" type="text">
</p>
@@ -423,18 +424,18 @@
{
IntakeTool intake = (IntakeTool) context.get("intake");
- if ( intake.isAllValid() && checkUser(data, context) )
+ if ( intake.isAllValid() && checkUser(data, context) )
{
String template = data.getParameters()
- .getString(ScarabConstants.NEXT_TEMPLATE,
+ .getString(ScarabConstants.NEXT_TEMPLATE,
TurbineResources.getString("template.homepage", "Start.vm") );
setTemplate(data, template);
}
- else
+ else
{
// Retrieve an anonymous user
data.setUser (TurbineSecurity.getAnonymousUser());
- setTemplate(data,
+ setTemplate(data,
data.getParameters()
.getString(ScarabConstants.TEMPLATE, "Login.vm"));
}
@@ -489,7 +490,7 @@
<section name="Attribute Value example">
<source><![CDATA[
-<group name="AttributeValue" key="attv"
+<group name="AttributeValue" key="attv"
mapToObject="om.AttributeValue">
]]></source>
@@ -508,7 +509,7 @@
<source><![CDATA[
<field name="Value" key="val" type="String">
<rule name="maxLength" value="255">Value length cannot be > 255</rule>
- <required-message>This module requires data for this
+ <required-message>This module requires data for this
attribute.
</required-message>
</field>
@@ -532,7 +533,7 @@
#set ( $action = $link.setPage("EditUrl.vm").setAction("SaveUrl") )
<form action="$action"
method="post">
-
+
#set ( $attributeValue = $issue.AttributeValue("URL") )
#set ( $group = $intake.AttributeValue.mapTo($attributeValue) )
@@ -565,8 +566,8 @@
to retrieve the key information for the field. This would evaluate to
"attv_0url". What this is a combination of the group key (attv), a "_0"
is the result of retrieving the "$intake.AttributeValue.Default" and the
-"url" is the field key. The value attribute would evaluate to just an
-empty String the first time around. The $intake.declareGroups() is a
+"url" is the field key. The value attribute would evaluate to just an
+empty String the first time around. The $intake.declareGroups() is a
special method that will create a hidden input field that declares which
groups have been added to the page. We will discuss that in more detail
further down.
@@ -578,7 +579,7 @@
</p>
<source><![CDATA[
-<form action="http://server/s/servlet/s/template/EnterUrl.vm/action/EnterUrlAction"
+<form action="http://server/s/servlet/s/template/EnterUrl.vm/action/EnterUrlAction"
method="post">
Enter Url:
@@ -601,9 +602,9 @@
{
IntakeTool intake = (IntakeTool)context
.get(ScarabConstants.INTAKE_TOOL);
-
+
// check to see if the fields are valid
- if ( intake.isAllValid() )
+ if ( intake.isAllValid() )
{
// get the "AttributeValue" Group
AttributeValue av = new AttributeValue();
@@ -627,7 +628,7 @@
<source><![CDATA[
<field name="Value" key="val" type="String">
<rule name="maxLength" value="255">Value length cannot be > 255</rule>
- <required-message>This module requires data for this
+ <required-message>This module requires data for this
attribute.
</required-message>
</field>
@@ -641,12 +642,12 @@
</section>
<section name="Multiple groups of the same class in one form">
-
+
<p>
This example uses a form from Scarab that assigns values to various
attribute's that are relevant for an issue (bug). Attributes include
-summary, operating system, platform, assigned to, etc. Some of the
-attributes are required, but not all.
+summary, operating system, platform, assigned to, etc. Some of the
+attributes are required, but not all.
</p>
<p>
@@ -666,14 +667,14 @@
<hr><br>Please fill in the following:<br><br>
#foreach ( $attVal in $issue.OrderedModuleAttributeValues )
- #set ( $attrInput = $intake.AttributeValue.mapTo($attVal) )
+ #set ( $attrInput = $intake.AttributeValue.mapTo($attVal) )
#if ( $attVal.Attribute.AttributeType.ValidationKey )
#set ( $field = $attVal.Attribute.AttributeType.ValidationKey )
#elseif ($attVal.Attribute.AttributeType.Name == "combo-box" )
#set ( $field = "OptionId" )
#else
- #set ( $field = "Value" )
+ #set ( $field = "Value" )
#end
#if ( $attVal.isRequired() )
@@ -695,9 +696,9 @@
#attrValueErrorMsg ( $attVal $field )
</font>
<br>
- #if ($attVal.Attribute.AttributeType.Name == "long-string" )
+ #if ($attVal.Attribute.AttributeType.Name == "long-string" )
- <textarea name= "$attrInput.Value.Key" cols="40"
+ <textarea name= "$attrInput.Value.Key" cols="40"
rows="5">$!attrInput.Value</textarea>
#else
@@ -710,7 +711,7 @@
#end
<p>
- <input type="submit"
+ <input type="submit"
name="eventSubmit_doEnterissue" value="Submit Issue">
$intake.declareGroups()
@@ -721,7 +722,7 @@
The main new thing added here is that the $intake group is mapped to a business
object. A business object that is to be used in this way is expected to
implement the Retrievable interface, which provides a method to get a
-String key which uniquely identifies the object.
+String key which uniquely identifies the object.
</p>
<p>
The action:
@@ -744,28 +745,28 @@
summary.setRequired(true);
issue.setVocabulary(new Vocabulary(summary.toString()));
- if ( intake.isAllValid() )
+ if ( intake.isAllValid() )
{
Iterator i = issue.getModuleAttributeValuesMap()
.values().iterator();
- while (i.hasNext())
+ while (i.hasNext())
{
aval = (AttributeValue)i.next();
group = intake.get("AttributeValue", aval.getQueryKey());
- if ( group != null )
+ if ( group != null )
{
group.setProperties(aval);
- }
+ }
}
-
- if ( issue.containsMinimumAttributeValues() )
+
+ if ( issue.containsMinimumAttributeValues() )
{
issue.save();
String template = data.getParameters()
- .getString(ScarabConstants.NEXT_TEMPLATE,
+ .getString(ScarabConstants.NEXT_TEMPLATE,
"entry,Wizard3.vm");
- setTemplate(data, template);
+ setTemplate(data, template);
}
}
}
@@ -781,43 +782,43 @@
<source><![CDATA[
Dan Diephouse wrote:
->
+>
> I want to validate a form that updates my business object properties
> with intake. I got the latest cvs of turbine-2 repository and built a
> new distribution of the turbine jar. I can easily use intake to add
> validate items I add to my databse, but I'm running in to a snag when
> trying to modify them. I've defined by business object in the intake
> validation file. I use the following code to update my item:
->
+>
> IntakeTool intake = (IntakeTool) context.get("intake");
->
+>
> ParameterParser pp = data.getParameters();
->
+>
> if ( intake.isAllValid() ) {
> Job j = new Job();
> j.setNew(false);
> group.setProperties(j);
->
+>
> JobPeer.doUpdate(j);
->
+>
> Error--> data.getParameters().add("jobid", j.getJobId().toString());
> data.setMessage("Job updated.");
> } else {
> data.setMessage("There was an error updating the job.
> Check below for further information.");
> }
->
+>
> It runs OK, until I try and retrieve the JobId. I get a Null Pointer
> exception. Is there something I'm doing wrong here? Or is this a bug?
> Do I need to specify that this is not a new object to intake? I would
> include my template, but there are lots of fields so its really long.
> But here's a little summary with most fields gone:
->
+>
> #set ( $job = $basecamp.getJob() ) - This gets a job from a pull tool
> #set ( $jobGroup = $intake.Job.mapTo($job) )
-> <input type=hidden name="$jobGroup.JobId.Key"
+> <input type=hidden name="$jobGroup.JobId.Key"
> value="$jobGroup.JobId.Value">
->
+>
> #if ( !$jobGroup.Title.isValid() )
> $jobGroup.Title.Message<br>
> #end
@@ -828,9 +829,9 @@
> .
> .
> $intake.declareGroups()
->
+>
> Thanks,
->
+>
> Dan Diephouse
This is not how i usually do things, but I guess it could work. One
@@ -842,7 +843,7 @@
Here is what I consider a normal course of events:
-1. In the template:
+1. In the template:
$job = $foo.Job
#set ( $jobGroup = $intake.Job.mapTo($job) )
Modified: turbine/core/trunk/xdocs/services/jsp-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/jsp-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/jsp-service.xml (original)
+++ turbine/core/trunk/xdocs/services/jsp-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -47,7 +48,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -62,7 +63,7 @@
.
.
# -------------------------------------------------------------------
-#
+#
# J S P S E R V I C E
#
# -------------------------------------------------------------------
Modified: turbine/core/trunk/xdocs/services/localization-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/localization-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/localization-service.xml (original)
+++ turbine/core/trunk/xdocs/services/localization-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -29,7 +30,7 @@
<p>
This is a tool the provides access to the <a href="http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum-localization/index.html">Fulcrum Localization</a> component.
-This makes it easy to use the Localization Component. For more uses, you can also directly load up the component. See the LocalizationToolTest for
+This makes it easy to use the Localization Component. For more uses, you can also directly load up the component. See the LocalizationToolTest for
sample code.
</p>
Modified: turbine/core/trunk/xdocs/services/logging-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/logging-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/logging-service.xml (original)
+++ turbine/core/trunk/xdocs/services/logging-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -115,7 +116,7 @@
#
# torque.log
-#
+#
log4j.appender.torque = org.apache.log4j.FileAppender
log4j.appender.torque.file = ${applicationRoot}/logs/torque.log
log4j.appender.torque.layout = org.apache.log4j.PatternLayout
@@ -145,7 +146,7 @@
<p>
Sub Projects like Torque and Velocity get either configured correctly
by their Services (Velocity by the VelocityService) or already know
-about commons-logging (Torque).
+about commons-logging (Torque).
</p>
</section>
Modified: turbine/core/trunk/xdocs/services/mimetype-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/mimetype-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/mimetype-service.xml (original)
+++ turbine/core/trunk/xdocs/services/mimetype-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -41,7 +42,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -56,24 +57,24 @@
.
.
# -------------------------------------------------------------------
-#
+#
# M I M E T Y P E S E R V I C E
#
# -------------------------------------------------------------------
-# This property specifies a file containing mappings between MIME
+# This property specifies a file containing mappings between MIME
# content types and the corresponding file name extensions. The
-# service itself contains a hardcoded set of most common mappings.
-# The file must use the same syntax as the mime.types file of
-# the Apache Server, i.e.
+# service itself contains a hardcoded set of most common mappings.
+# The file must use the same syntax as the mime.types file of
+# the Apache Server, i.e.
# <mimetype> <ext1> <ext2>...
#
#services.MimeTypeService.mime.types=/WEB-INF/conf/mime.types
-# This property specifies a file containing mappings between locales
-# and the corresponding character encodings. The service itself
-# contains a hardcoded set of most common mappings.
-# The file should use the Java property file syntax, i.e.
+# This property specifies a file containing mappings between locales
+# and the corresponding character encodings. The service itself
+# contains a hardcoded set of most common mappings.
+# The file should use the Java property file syntax, i.e.
# <lang_country_variant>=<charset>
#
#services.MimeTypeService.charsets=/WEB-INF/conf/charset.properties
@@ -92,7 +93,7 @@
<p>
The mappings between locales and the corresponding character encodings
-are specified using the Java property file syntax, where the locale
+are specified using the Java property file syntax, where the locale
specification is the key of the property key and the charset is the value
of the property. The locale specification consists of three parts:
</p>
@@ -103,7 +104,7 @@
<p>
The variant can be whatever is appropriate for the application, like a
-markup language specification, a browser specification, etc. The service
+markup language specification, a browser specification, etc. The service
looks for charsets using the following search order:
</p>
@@ -120,14 +121,14 @@
<p>
The service contains defaults for several language mappings and more specific
ones can be specified in an optional property file, e.g. __wml=UTF-8. The name
-of the property file can be given with a service property named "charsets".
+of the property file can be given with a service property named "charsets".
The service caches results of the search, which should guarantee good performance.
</p>
<p>
The mappings between MIME types and the corresponding file name extensions
are specified using the same syntax as the mime.types file of the Apache Server,
-i.e.:
+i.e.:
</p>
<source><![CDATA[
@@ -135,14 +136,14 @@
]]></source>
<p>
-The service contains defaults for most common MIME types, like text/plain,
+The service contains defaults for most common MIME types, like text/plain,
text/html, text/x-hdml, text/vnd.wap.wml, image/gif and image/jpeg. More
specific ones can be specified in an optional MIME types file. The name of
the MIME types file can be given with a service property named "mime.types".
</p>
<p>
-The TurbineMimeTypes class is a static accessor for the most common
+The TurbineMimeTypes class is a static accessor for the most common
MimeType Service methods.
</p>
Modified: turbine/core/trunk/xdocs/services/naming-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/naming-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/naming-service.xml (original)
+++ turbine/core/trunk/xdocs/services/naming-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -40,7 +41,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
Modified: turbine/core/trunk/xdocs/services/pool-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/pool-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/pool-service.xml (original)
+++ turbine/core/trunk/xdocs/services/pool-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -28,34 +29,34 @@
<section name="Pool Service">
<p>
-The Pool Service extends the functionality of the Factory Service by adding
+The Pool Service extends the functionality of the Factory Service by adding
support for pooling objects intantiated from the given class name or
-Class object reference. Pooling of objects stabilizes memory consumption and
-reduces garbage collection making response times in server applications
+Class object reference. Pooling of objects stabilizes memory consumption and
+reduces garbage collection making response times in server applications
more predictable.
</p>
<p>
-When a new instance is requested from the service, it first checks its pool
-if one is available. If the the pool is empty, a new object will be instantiated
-from the given class. If the class is specified by its name, the request to create
+When a new instance is requested from the service, it first checks its pool
+if one is available. If the the pool is empty, a new object will be instantiated
+from the given class. If the class is specified by its name, the request to create
an instance will be forwarded to the Factory Service.
</p>
<p>
-For pooled objects implementing the Recyclable interface, a recycle method
-will be called, when they are taken from the pool, and a dispose method,
-when they are returned to the pool. Implementations of the methods should
-clear and initialize the pooled instances correspondingly. Objects
-that do not implement the interface can also be pooled, if they do not
-need to perform any specific actions during pooling. A RecyclableSupport class
+For pooled objects implementing the Recyclable interface, a recycle method
+will be called, when they are taken from the pool, and a dispose method,
+when they are returned to the pool. Implementations of the methods should
+clear and initialize the pooled instances correspondingly. Objects
+that do not implement the interface can also be pooled, if they do not
+need to perform any specific actions during pooling. A RecyclableSupport class
can be extended to get a minimal implementation of the interface.
</p>
<p>
An ArrayCtorRecyclable interface extends the Recyclable interface providing
a more efficient recycle method with less reflection for recycling frequently
-used objects having constuctors with parameters.
+used objects having constuctors with parameters.
</p>
</section>
@@ -64,7 +65,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -79,7 +80,7 @@
.
.
# -------------------------------------------------------------------
-#
+#
# P O O L S E R V I C E
#
# -------------------------------------------------------------------
@@ -101,22 +102,22 @@
<p>
The Pool Service can be called instead of the Factory Service, when instantiating
objects that are needed repeatedly e.g. for processing client requests. Intances
-of RunData implementations, ParameterParser and CookieParser implementations,
+of RunData implementations, ParameterParser and CookieParser implementations,
Pull Service tools, etc, are typical examples of pooled objects. Used objects
-must be returned to the Pool Service for recycling. The TurbinePool class is a
+must be returned to the Pool Service for recycling. The TurbinePool class is a
static accessor for common methods of the Pool Service:
</p>
<source><![CDATA[
// Get a pooled DOM parser.
-DocumentBuilder parser =
+DocumentBuilder parser =
TurbinePool.getInstance("javax.xml.parsers.DocumentBuilder");
-
+
// Parse an XML document.
Document doc = parser.parse(myfile);
// Return the parser to the pool.
-TurbinePool.putInstance(parser);
+TurbinePool.putInstance(parser);
]]></source>
</section>
Modified: turbine/core/trunk/xdocs/services/pull-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/pull-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/pull-service.xml (original)
+++ turbine/core/trunk/xdocs/services/pull-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -43,7 +44,7 @@
</li>
<li>
-session-scope tools which are persisted as part of
+session-scope tools which are persisted as part of
the user object in the servlet engine provided session object.
</li>
@@ -68,7 +69,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -83,7 +84,7 @@
.
.
# -------------------------------------------------------------------
-#
+#
# P U L L S E R V I C E
#
# -------------------------------------------------------------------
@@ -91,7 +92,7 @@
# that works in conjuction with the Turbine Pull Model API.
# -------------------------------------------------------------------
-# This determines whether the non-request tools are refreshed
+# This determines whether the non-request tools are refreshed
# on each request (request tools aren't ever, because they're
# instantiated for the request only anyway).
services.PullService.tools.per.request.refresh=true
@@ -113,7 +114,7 @@
# tool.request.link = org.apache.turbine.services.pull.tools.TemplateLink
# tool.request.page = org.apache.turbine.util.template.TemplatePageAttributes
#
-# (the next two examples specify mythical classes)
+# (the next two examples specify mythical classes)
#
# tool.session.basket = org.sample.tools.ShoppingBasket
# tool.persistent.ui = org.sample.tools.PersistentUIManager
@@ -134,15 +135,15 @@
# be threadsafe.
#
# session: tool is instantiated once for each user session, and is
-# stored in the user's temporary hashtable. Tool should be
+# stored in the user's temporary hashtable. Tool should be
# threadsafe.
#
# authorized: tool is instantiated once for each user session once the
# user logs in. After this, it is a normal session tool.
#
# persistent: tool is instantitated once for each user session once
-# the user logs in and is is stored in the user's permanent
-# hashtable.
+# the user logs in and is is stored in the user's permanent
+# hashtable.
# This means for a logged in user the tool will be persisted
# in the user's objectdata. Tool should be threadsafe and
# Serializable.
@@ -171,11 +172,11 @@
<section name="Usage">
<p>
-The first step in use of the pull service is deciding on a useful
-tool API for an object that is available to templates in the
+The first step in use of the pull service is deciding on a useful
+tool API for an object that is available to templates in the
Velocity context. This could range from something as simple as
the generation of URIs ($link and $content) to a tool for retrieving
-details of the user's current shopping basket. Define a set of
+details of the user's current shopping basket. Define a set of
public methods for the tool and they will be available through
standard Velocity introspection.
</p>
@@ -184,9 +185,9 @@
The next step is to decide what scope you need to give the tool.
If the tool is retrieving global data in a threadsafe manner, you
can make the tool global. If the tool holds data specific to the
-user look at the session, authorized and persistent scopes
-(choose persistent for a convenient way of having the tools fields
-persisted across sessions for logged in users). If the tool needs to
+user look at the session, authorized and persistent scopes
+(choose persistent for a convenient way of having the tools fields
+persisted across sessions for logged in users). If the tool needs to
be instantiated on each request to fulfill its function, or is not
threadsafe, then the request scope will be appropriate.
</p>
@@ -196,9 +197,9 @@
or the org.apache.turbine.services.pull.RunDataApplicationTool
interface. This will provide a hook for the service to initialise them
through the 'init' method and, except for request scope tools, to be
-refreshed through the 'refresh' method. The type of the init argument
-'data' (declared as type 'Object') depends on the scope of the tool.
-For global tools the argument will be null; for session and persistent
+refreshed through the 'refresh' method. The type of the init argument
+'data' (declared as type 'Object') depends on the scope of the tool.
+For global tools the argument will be null; for session and persistent
scope tools, 'data' will be the current User object; and for request
scope tools 'data' will be the current RunData instance.
</p>
@@ -213,15 +214,15 @@
</p>
<p>
-Important note: request scope tools are recycled by the PoolService.
-This means they must be written to be reused. This usually means
-implementing the ApplicationTool interface, and having the 'init'
+Important note: request scope tools are recycled by the PoolService.
+This means they must be written to be reused. This usually means
+implementing the ApplicationTool interface, and having the 'init'
implementation reset all fields.
-</p>
+</p>
<p>
Current examples of tools include the afore mentioned $link, $page and
-$content objects, the $ui UI manager, the Intake service tool
+$content objects, the $ui UI manager, the Intake service tool
(org.apache.turbine.services.intake.IntakeTool) and the OM tool
(org.apache.turbine.om.OMTool).
</p>
Modified: turbine/core/trunk/xdocs/services/resources-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/resources-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/resources-service.xml (original)
+++ turbine/core/trunk/xdocs/services/resources-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
Modified: turbine/core/trunk/xdocs/services/rundata-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/rundata-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/rundata-service.xml (original)
+++ turbine/core/trunk/xdocs/services/rundata-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -64,7 +65,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -85,7 +86,7 @@
# -------------------------------------------------------------------
# Default implementations of base interfaces for request processing.
# Additional configurations can be defined by using other keys
-# in the place of the <default> key.
+# in the place of the <default> key.
# -------------------------------------------------------------------
services.RunDataService.default.run.data=org.apache.turbine.services.rundata.DefaultTurbineRunData
@@ -129,7 +130,7 @@
getResponse()
getServletContext()
getSession()
-getStatusCode()
+getStatusCode()
]]></source>
<p>
@@ -139,7 +140,7 @@
</p>
<p>
-The method setLocale() is called to specify explicitly the locale
+The method setLocale() is called to specify explicitly the locale
of the response. If setLocale() is not called, the "locale.default.language"
and "locale.default.country" properties from Turbine Resources are used to
determine the locale. If these properties are not set, the JVM's default
@@ -150,7 +151,7 @@
If the locale is set to something else than the default locale or Locale.US,
an explicit encoding is not specified with the setCharSet() method or the
"locale.default.charset" property, and the main MIME type of the content is
-"text", the getContentType() method adds a locale specific encoding (charset)
+"text", the getContentType() method adds a locale specific encoding (charset)
to the content type automatically.
</p>
@@ -191,7 +192,7 @@
<source><![CDATA[
//in Login Action class
-public void doPerform(RunData data, Context context)
+public void doPerform(RunData data, Context context)
throws Exception
{
//get the Parameters, username and password
@@ -207,7 +208,7 @@
TurbineSecurity
.getAuthenticatedUser(loginname, password);
- //put User into Session
+ //put User into Session
data.setUser(user);
//mark the User as logged in
@@ -218,13 +219,13 @@
//add to the access counter for the session
user.incrementAccessCounterForSession();
-
+
//check to see if user is to have
//their status changed to valued
if(user.getAccessCounter() > 500 )
{
//set into persistant storage
- //that our visitor is now a
+ //that our visitor is now a
//valued user
user.setPerm("valued", new Boolean(true));
}
@@ -283,11 +284,11 @@
/**
* Where "units" is the HTML Input Form name
*/
- int units = params.getInt("units");
+ int units = params.getInt("units");
/**
* Get the description, if there is no entry from the
- * HTML input form, set the default as "No Description".
+ * HTML input form, set the default as "No Description".
*/
String description = params.getString("description","No Description");
@@ -370,7 +371,7 @@
setLayout()
setLayoutTemplate()
setScreen()
-setScreenTemplate()
+setScreenTemplate()
]]></source>
<p>
@@ -399,7 +400,7 @@
getMessages() //returns a FormMessages Object
setMessage(String msg)
setMessage(Element msg)
-setMessage(FormMessages msgs)
+setMessage(FormMessages msgs)
]]></source>
<p>
Modified: turbine/core/trunk/xdocs/services/scheduler-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/scheduler-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/scheduler-service.xml (original)
+++ turbine/core/trunk/xdocs/services/scheduler-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
Modified: turbine/core/trunk/xdocs/services/security-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/security-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/security-service.xml (original)
+++ turbine/core/trunk/xdocs/services/security-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -29,15 +30,15 @@
<p>
The Security Service is for authenticating users and assigning them roles
-and permissions in groups.
+and permissions in groups.
</p>
<p>
In Turbine 2.3 a replacement for the default DBSecurityService is
provided that makes it possible to map the security service onto an
-pre existing user structure and much easier to extend the TurbineUser
-table to include additional columns - see <a
-href="torque-Security-service.html"> Torque Security Service</a> for
-configuration details.
+pre existing user structure and much easier to extend the TurbineUser
+table to include additional columns - see <a
+href="torque-Security-service.html"> Torque Security Service</a> for
+configuration details.
</p>
</section>
@@ -74,7 +75,7 @@
#
# This is the class that implements the UserManager interface to
# manage User objects. Default is the UserManager from the
-# DBSecurityService.
+# DBSecurityService.
# Override this setting if you want your User information stored
# on a different medium (LDAP directory is a good example).
#
@@ -85,7 +86,7 @@
#
# These are the default classes used by the Security Service to
-# provide User, Group, Role and Permission objects.
+# provide User, Group, Role and Permission objects.
# You want to override this setting only if you want your
# implementation to provide application specific addtional
# functionality.
Modified: turbine/core/trunk/xdocs/services/servlet-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/servlet-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/servlet-service.xml (original)
+++ turbine/core/trunk/xdocs/services/servlet-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -38,7 +39,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
Modified: turbine/core/trunk/xdocs/services/session-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/session-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/session-service.xml (original)
+++ turbine/core/trunk/xdocs/services/session-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -90,7 +91,6 @@
</p>
<source><![CDATA[
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
Modified: turbine/core/trunk/xdocs/services/template-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/template-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/template-service.xml (original)
+++ turbine/core/trunk/xdocs/services/template-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
Modified: turbine/core/trunk/xdocs/services/torque-security-schema.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/torque-security-schema.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/torque-security-schema.xml (original)
+++ turbine/core/trunk/xdocs/services/torque-security-schema.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
Modified: turbine/core/trunk/xdocs/services/torque-security-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/torque-security-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/torque-security-service.xml (original)
+++ turbine/core/trunk/xdocs/services/torque-security-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -37,7 +38,7 @@
Older versions of the Security Service used hard coded Peers to access
the security information. The current version can access arbitrary peers
to retrieve the information and can be adapted to a pre-existing schema and
-use peer classes from outside Turbine.
+use peer classes from outside Turbine.
</p>
</section>
@@ -174,7 +175,7 @@
# These are the objects returned by the configured user peer (org.apache.turbine.services.security.torque.om.TurbineUser)
services.SecurityService.torque.user.class = org.apache.turbine.services.security.torque.om.TurbineUser
-# These bean properties are queried from the returned object to retrieve the
+# These bean properties are queried from the returned object to retrieve the
# information
services.SecurityService.torque.user.property.name = UserName
services.SecurityService.torque.user.property.id = UserId
@@ -198,7 +199,7 @@
# These are the objects returned by the configured group peer (org.apache.turbine.services.security.torque.om.TurbineGroup)
services.SecurityService.torque.group.class = org.apache.turbine.services.security.torque.om.TurbineGroup
-# These bean properties are queried from the returned object to retrieve the
+# These bean properties are queried from the returned object to retrieve the
# information
services.SecurityService.torque.group.property.name = Name
services.SecurityService.torque.group.property.id = GroupId
@@ -214,7 +215,7 @@
# These are the objects returned by the configured role peer (org.apache.turbine.services.security.torque.om.TurbineRole)
services.SecurityService.torque.role.class = org.apache.turbine.services.security.torque.om.TurbineRole
-# These bean properties are queried from the returned object to retrieve the
+# These bean properties are queried from the returned object to retrieve the
# information
services.SecurityService.torque.role.property.name = Name
services.SecurityService.torque.role.property.id = RoleId
@@ -230,7 +231,7 @@
# These are the objects returned by the configured permission peer (org.apache.turbine.services.security.torque.om.TurbinePermission)
services.SecurityService.torque.permission.class = org.apache.turbine.services.security.torque.om.TurbinePermission
-# These bean properties are queried from the returned object to retrieve the
+# These bean properties are queried from the returned object to retrieve the
# information
services.SecurityService.torque.permission.property.name = Name
services.SecurityService.torque.permission.property.id = PermissionId
@@ -253,7 +254,7 @@
<p>
The most interesting application for this is to extend some of the tables
with more columns for additional data. In this example, the User table gets
-extended by two more columns called "TELEPHONE" and "FAX".
+extended by two more columns called "TELEPHONE" and "FAX".
</p>
<p>
At first we create a new torque schema:
@@ -277,7 +278,7 @@
<unique>
<unique-column name="LOGIN_NAME"/>
- </unique>
+ </unique>
]]></source>
<p>
Note a few things:
@@ -395,7 +396,7 @@
<unique>
<unique-column name="NAME_OF_ROLE"/>
</unique>
-
+
</table>
]]></source>
<p>
@@ -412,7 +413,7 @@
# These are the objects returned by the configured role peer (org.apache.turbine.services.security.torque.om.TurbineRole)
services.SecurityService.torque.role.class = CustomRole
-# These bean properties are queried from the returned object to retrieve the
+# These bean properties are queried from the returned object to retrieve the
# information
services.SecurityService.torque.role.property.name = NameOfRole
services.SecurityService.torque.role.property.id = CustomId
Modified: turbine/core/trunk/xdocs/services/uniqueid-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/uniqueid-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/uniqueid-service.xml (original)
+++ turbine/core/trunk/xdocs/services/uniqueid-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -28,7 +29,7 @@
<section name="Unique ID Service">
<p>
-The UniqueId Service is an identifier generator that provides access to Turbine instance specific ID's in several different formats.
+The UniqueId Service is an identifier generator that provides access to Turbine instance specific ID's in several different formats.
</p>
@@ -38,7 +39,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -74,18 +75,18 @@
public class IdExample extends VelocityScreen
{
-
- public void doBuildTemplate(RunData data , Context context)
+
+ public void doBuildTemplate(RunData data , Context context)
throws Exception
{
-
+
context.put("instanceid", TurbineUniqueId.getInstanceId());
context.put("pseudorandomid", TurbineUniqueId.getPseudorandomId());
context.put("uniqueid", TurbineUniqueId.getUniqueId());
-
+
super.doBuildTemplate(data,context);
-
-
+
+
}
}
]]></source>
@@ -95,7 +96,7 @@
</p>
<source><![CDATA[
-
+
InstanceId() Output example = $instanceid
<br />
@@ -104,7 +105,7 @@
<br />
- UniqueId() Output example = $uniqueid
+ UniqueId() Output example = $uniqueid
]]></source>
@@ -113,16 +114,16 @@
</p>
<source><![CDATA[
-
- InstanceId() Output example = EC77218EC1291E714260FDF04BCB5008
+
+ InstanceId() Output example = EC77218EC1291E714260FDF04BCB5008
PseudorandomId() Output example = otzhj954w1
- UniqueId() Output example = 00000000
+ UniqueId() Output example = 00000000
]]></source>
<p>
-Internally Turbine uses the service for naming of temporary files stored on the server as part of the Upload Service. The FileItem is named with the getInstanceId() method to avoid temporary file clashes until the system retrieves the file.
+Internally Turbine uses the service for naming of temporary files stored on the server as part of the Upload Service. The FileItem is named with the getInstanceId() method to avoid temporary file clashes until the system retrieves the file.
</p>
</section>
Modified: turbine/core/trunk/xdocs/services/upload-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/upload-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/upload-service.xml (original)
+++ turbine/core/trunk/xdocs/services/upload-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -39,7 +40,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
Modified: turbine/core/trunk/xdocs/services/velocity-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/velocity-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/velocity-service.xml (original)
+++ turbine/core/trunk/xdocs/services/velocity-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -36,7 +37,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -51,14 +52,14 @@
.
.
# -------------------------------------------------------------------
-#
+#
# V E L O C I T Y S E R V I C E
#
# -------------------------------------------------------------------
# The location of Velocity configuration file, relative to webapp root
# These properties will override the default properties set by Velocity.
-# You should specify the path to the templates directories as well as
+# You should specify the path to the templates directories as well as
# the path to the log file and they should also be relative to webapp root
services.VelocityService.template.extension = vm
@@ -99,7 +100,7 @@
<section name="Properties">
<ul>
<li>"services.VelocityService.catch.errors" controls the reporting of Velocity errors to the application (and to to the user).
- If this is set to "true" (which is the default), errors are caught by Turbine and reported in the turbine.log file at
+ If this is set to "true" (which is the default), errors are caught by Turbine and reported in the turbine.log file at
error level. Velocity will get the String "[Turbine caught an Error here. Look into the turbine.log for further information]"
as return value (this might cause further errors down the road if you e.g. expect a numerical value or an object as the result
of a method), so if you see this message in your screen, follow the instructions.
Modified: turbine/core/trunk/xdocs/services/xmlrpc-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/xmlrpc-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/xmlrpc-service.xml (original)
+++ turbine/core/trunk/xdocs/services/xmlrpc-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -44,7 +45,7 @@
org.apache.turbine.services.xmlrpc.util.FileHandler</strong>
class that will perform these operations for you. Please refer
to the usage section below for more details.
-</p>
+</p>
</section>
@@ -52,7 +53,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -67,7 +68,7 @@
.
.
# -------------------------------------------------------------------
-#
+#
# X M L R P C S E R V I C E
#
# -------------------------------------------------------------------
@@ -85,8 +86,8 @@
services.XmlRpcService.port=12345
-# If any classes are specified here, the Service will create an
-# instance of them here and start up a listener on the specified
+# If any classes are specified here, the Service will create an
+# instance of them here and start up a listener on the specified
# port.
#
# Note that the handlers demonstrated are not very useful. You
@@ -112,7 +113,7 @@
services.XmlRpcService.handler.file = org.apache.turbine.services.xmlrpc.util.FileHandler
services.XmlRpcService.paranoid = false
services.XmlRpcService.acceptClient = 192.168.1.*
-services.XmlRpcService.denyClient =
+services.XmlRpcService.denyClient =
]]></source>
@@ -134,7 +135,7 @@
{
/**
* We will test the following three operations:
- *
+ *
* 1) Send a file to a remove server
* 2) Get a file from a remote server
* 3) Remove a file to a remove server
Modified: turbine/core/trunk/xdocs/services/xslt-service.xml
URL: http://svn.apache.org/viewvc/turbine/core/trunk/xdocs/services/xslt-service.xml?rev=615328&r1=615327&r2=615328&view=diff
==============================================================================
--- turbine/core/trunk/xdocs/services/xslt-service.xml (original)
+++ turbine/core/trunk/xdocs/services/xslt-service.xml Fri Jan 25 12:25:05 2008
@@ -1,21 +1,22 @@
<?xml version="1.0"?>
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
<document>
@@ -42,7 +43,7 @@
<source><![CDATA[
# -------------------------------------------------------------------
-#
+#
# S E R V I C E S
#
# -------------------------------------------------------------------
@@ -57,7 +58,7 @@
.
.
# -------------------------------------------------------------------
-#
+#
# X S L T S E R V I C E
#
# -------------------------------------------------------------------
@@ -73,7 +74,7 @@
<p>
Please look at the <strong>org.apache.turbine.modules.layouts.VelocityXslLayout</strong>
for an example usage pattern.
-</p>
+</p>
</section>