blob: 2c602f3b0f20015bdd70801e160cdca8e56642ca [file] [log] [blame]
<?xml version="1.0"?>
<!--
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>
<properties>
<title>Turbine Services - Torque Security Service Schema</title>
<author email="hps@intermeta.de">Henning P. Schmiedehausen</author>
</properties>
<body>
<section name="Overview">
<p>
This is the Turbine included schema for generating Torque Peers for
the <a href="torque-security-service.html">Torque Security Service</a>:
</p>
<table>
<tr>
<th>Table Name</th>
<th>OM Class</th>
<th>Description</th>
</tr>
<tr>
<td><a href="#TURBINE_USER">TURBINE_USER</a></td>
<td>TurbineUser</td>
<td></td>
</tr>
<tr>
<td><a href="#TURBINE_GROUP">TURBINE_GROUP</a></td>
<td>TurbineGroup</td>
<td></td>
</tr>
<tr>
<td><a href="#TURBINE_ROLE">TURBINE_ROLE</a></td>
<td>TurbineRole</td>
<td></td>
</tr>
<tr>
<td><a href="#TURBINE_PERMISSION">TURBINE_PERMISSION</a></td>
<td>TurbinePermission</td>
<td></td>
</tr>
<tr>
<td><a href="#TURBINE_ROLE_PERMISSION">TURBINE_ROLE_PERMISSION</a></td>
<td>TurbineRolePermission</td>
<td></td>
</tr>
<tr>
<td><a href="#TURBINE_USER_GROUP_ROLE">TURBINE_USER_GROUP_ROLE</a></td>
<td>TurbineUserGroupRole</td>
<td></td>
</tr>
</table>
</section>
<section name="User Peer">
<a name="TURBINE_USER"/>
<p>
The User Peer contains all information regarding a Turbine User.
</p>
<table>
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Default</th>
<th>JavaName</th>
<th>Primary Key</th>
<th>Foreign Key</th>
<th>not null</th>
<th>Description</th>
</tr>
<tr>
<td>USER_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>UserId</td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>LOGIN_NAME</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>UserName</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>PASSWORD_VALUE</td>
<td>VARCHAR</td>
<td> (16)</td>
<td></td>
<td>Password</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>FIRST_NAME</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>FirstName</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>LAST_NAME</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>LastName</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>EMAIL</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>Email</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>CONFIRM_VALUE</td>
<td>VARCHAR</td>
<td> (16)</td>
<td></td>
<td>Confirmed</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>MODIFIED</td>
<td>TIMESTAMP</td>
<td> </td>
<td></td>
<td>Modified</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>CREATED</td>
<td>TIMESTAMP</td>
<td> </td>
<td></td>
<td>CreateDate</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>LAST_LOGIN</td>
<td>TIMESTAMP</td>
<td> </td>
<td></td>
<td>LastLogin</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>OBJECTDATA</td>
<td>VARBINARY</td>
<td> </td>
<td></td>
<td>Objectdata</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</section>
<section name="Group Peer">
<a name="TURBINE_GROUP"/>
<p>
The Group Peer contains all information regarding the Turbine Groups.
</p>
<table border="1">
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Default</th>
<th>JavaName</th>
<th>Primary Key</th>
<th>Foreign Key</th>
<th>not null</th>
<th>Description</th>
</tr>
<tr>
<td>GROUP_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>GroupId</td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>GROUP_NAME</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>Name</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
</table>
</section>
<section name="Role Peer">
<a name="TURBINE_ROLE"/>
<p>
The Role Peer contains all information regarding a Turbine Role.
</p>
<table border="1">
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Default</th>
<th>JavaName</th>
<th>Primary Key</th>
<th>Foreign Key</th>
<th>not null</th>
<th>Description</th>
</tr>
<tr>
<td>ROLE_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>RoleId</td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>ROLE_NAME</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>Name</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
</table>
</section>
<section name="User Peer">
<a name="TURBINE_PERMISSION"/>
<p>
The Permission Peer contains all information regarding the Turbine
Permissions.
</p>
<table border="1">
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Default</th>
<th>JavaName</th>
<th>Primary Key</th>
<th>Foreign Key</th>
<th>not null</th>
<th>Description</th>
</tr>
<tr>
<td>PERMISSION_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>PermissionId</td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>PERMISSION_NAME</td>
<td>VARCHAR</td>
<td> (64)</td>
<td></td>
<td>Name</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
</table>
</section>
<section name="Role / Permission Peer">
<a name="TURBINE_ROLE_PERMISSION"/>
<p>
The Role / Permission Peer contains the relation between Roles and
Permissions. It controls which Role has which Permissions assigned.
</p>
<table border="1">
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Default</th>
<th>JavaName</th>
<th>Primary Key</th>
<th>Foreign Key</th>
<th>not null</th>
<th>Description</th>
</tr>
<tr>
<td>ROLE_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>RoleId</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>PERMISSION_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>PermissionId</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
</tr>
</table>
</section>
<section name="User / Group / Role Peer">
<a name="TURBINE_USER_GROUP_ROLE"/>
<p>
The User / Group / Role Peer contains the User / Group / Role relation
which assigns Roles to an User according to its membership in a Group.
</p>
<table border="1">
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Default</th>
<th>JavaName</th>
<th>Primary Key</th>
<th>Foreign Key</th>
<th>not null</th>
<th>Description</th>
</tr>
<tr>
<td>USER_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>UserId</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>GROUP_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>GroupId</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
</tr>
<tr>
<td>ROLE_ID</td>
<td>INTEGER</td>
<td> </td>
<td></td>
<td>RoleId</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
</tr>
</table>
</section>
</body>
</document>