On 6/13/01 4:56 AM, "Unico Hommes" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am new to Turbine I have a few questions that I wasn't able to find
> answers to in the docs. Any help is greatly appreciated.
>
> Is there a way to set a compiler property in the build files ? I want to use
> jikes.
Right now the main Turbine build.xml file will pull in all the
values from ${user.home}/.ant.properties. If you define
build.compiler = jikes
Jikes will be used.
The user properties file should probably be changed to build.properties
which is what most of the Jakarta projects are moving to, especially
in the commons. Apparently the leading "." which isn't a problem
on Unix is a problem for users on Windows platforms.
> It seems that Turbine provides a very solid security framework to work with.
> However I have some questions about using this service. I want to regulate
> access and modification permissions to all database driven content. For
> instance, I will have a tree of content to wich nodes I want to assign
> individual security settings.
This is something that will be fleshed out in 2.2. You can do this
now with Turbine by creating a set of screens with different
isAuthorized() methods but this can get tedious.
Among other things I've been playing with a policy service
that would allow the easy customization of security options
for your site. The policy for a site will be pulled from any
source and placed into tree for use. It will be similar to
security service implementation, and I'm using a tree structure
from Antlr right now. I'm not even close to finishing it but
I think it's something that is required for a maintainable
site. Security in Turbine is still very bound to developer
intervention.
As an intermediary measure you could simply have a base screen
class with an isAuthorized() method that looks things up for
you in a text file or an XML file. I'm just trying to come up
with a more general solution before posting anything. There
is a skeleton of a proposal but there's nothing there yet.
If you have specific requirements, post them here and I will
add them to the proposal. That goes for any interested in
a policy type service.
> On the other hand if no security is set for a
> certain node I want it to inherit the security settings from the first
> ancestor that does have security settings set. Are there any known solutions
> to this problem ?
Yes, the policy service should have a form of inheritance.
> How do I relate my tables to the Turbine schema tables ?
Are you specifically talking about the TURBINE_USER table?
If you are this is a general problem because the security tables
in Turbine are not generated by Torque. If I'm misinterpreting
the question just say so :-)
> In database.dtd for torque it specifies that I can use the value BINARY for
> the type attribute of the column element. However when I try to use it the
> generated peer sources cannot be compiled. Is this a known issue? The same
> thing happens for BOOLEANCHAR. I am using BOOLEANINT instead now but it
> seems a waste as it translates to INT(11) in Mysql.
There is a db.props file for each database type in torque. In the
turbine CVS tree it's location in
conf/torque/templates/sql/base/<db>/db.props. It very well may be
that the mapping of types is not complete. I will take a look ...
Upon looking at the db.props for MySQL it appears that the JDBC
BINARY type has no mapping, we should fix that :-) Right now VARBINARY
maps to a MEDIUMBLOB for MySQL.
Is BOOLEANCHAR a JDBC type. The type used for a column in a Torque
schema are strictly the JDBC types _not_ native db types.
> By the way, I find Turbine to be a great product, I am amazed at its
> capabilities. If I find the time to do some work for the community I will be
> happy to contribute. Suggestions of TODO's are welcome.
> Thanx,
>
> Unico Hommes
> Programmer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
jvz.
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]