syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Syncope > Schema
Date Fri, 23 Mar 2012 10:48:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/3/_/styles/combined.css?spaceKey=SYNCOPE&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/SYNCOPE/Schema">Schema</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~ilgrosso">Francesco
Chicchiricco</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{toc:style=decimal}
<br></td></tr>
            <tr><td class="diff-unchanged" >h1. Introduction <br>A _Schema_
is a collection of properties of a certain attribute managed by Syncope. <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <style type='text/css'>/*<![CDATA[*/
div.rbtoc1332499658388 {margin-left: 1.5em;padding: 0px;}
div.rbtoc1332499658388 ul {list-style: decimal;margin-left: 0px;}
div.rbtoc1332499658388 li {margin-left: 0px;padding-left: 0px;}

/*]]>*/</style><div class='rbtoc1332499658388'>
<ul>
    <li><a href='#Schema-Introduction'>Introduction</a></li>
    <li><a href='#Schema-CreateanewSchema'>Create a new Schema</a></li>
    <li><a href='#Schema-CreateanewDerivedSchema'>Create a new Derived Schema</a></li>
    <li><a href='#Schema-CreateanewVirtualSchema'>Create a new Virtual Schema</a></li>
    <li><a href='#Schema-EditSchema'>Edit Schema</a></li>
    <li><a href='#Schema-DeleteSchema'>Delete Schema</a></li>
</ul></div>
<h1><a name="Schema-Introduction"></a>Introduction</h1>
<p>A <em>Schema</em> is a collection of properties of a certain attribute
managed by Syncope.</p>

<p>The relationship that are between a schema and its corresponding attribute is quite
the same that are between a Java class and its corresponding instantiate object.</p>

<p>We can say that the schema is a description of a certain type and the corresponding
attribute is the instance of this type.</p>

<p>Schemas can be divided into:</p>
<ol>
	<li><em>Schemas</em> (used for <em>normal</em> attributes);</li>
	<li><em>Derived Schemas</em> (used for derived attributes);</li>
	<li><em>Virtual Schemas</em> (used for virtual attributes).</li>
</ol>


<p>For each managed entity (user, role and memberships) can be defined a set of schemas.</p>

<p>For more conceptual information take a look at <a href="/confluence/display/SYNCOPE/Schema%2C+attributes+and+mapping"
title="Schema, attributes and mapping">Schema, attributes and mapping</a>.</p>

<p>This wiki page aims to show how to manage schemas via administration console.</p>

<h1><a name="Schema-CreateanewSchema"></a>Create a new Schema</h1>
<p>Following <em>User Schema</em> creation steps have been provided. </p>

<p>To create a <em>Role Schema</em> or a <em>Membership Schema</em>
follow the same steps into the corresponding subtabs of the main tab <em>Schema</em>.</p>

<ol>
	<li>Click on <em>Schema</em> tab.</li>
	<li>Click on <em>Attributes</em> tab.<br/>
<span class="image-wrap" style=""><a class="confluence-thumbnail-link 1366x660" href='https://cwiki.apache.org/confluence/download/attachments/27841545/UserSchema1.png'><img
src="/confluence/download/thumbnails/27841545/UserSchema1.png" style="border: 0px solid black"
/></a></span></li>
	<li>Click on <em>Create new attribute</em> button and provide the following
information.<br/>
<span class="image-wrap" style=""><a class="confluence-thumbnail-link 1366x660" href='https://cwiki.apache.org/confluence/download/attachments/27841545/UserSchema1.png'><img
src="/confluence/download/thumbnails/27841545/UserSchema1.png" style="border: 0px solid black"
/></a></span><br/>
<em>Name</em><br/>
name of the attribute.<br/>
<em>Conversion pattern</em><br/>
conversion patter to serialize Long, Double and Date object into strings. <br/>
<em>Validator class</em><br/>
<span class="image-wrap" style=""><a class="confluence-thumbnail-link 1202x609" href='https://cwiki.apache.org/confluence/download/attachments/27841545/UserSchema3.png'><img
src="/confluence/download/thumbnails/27841545/UserSchema3.png" style="border: 0px solid black"
/></a></span><br/>
class to be used to validate the input (see <a href="/confluence/display/SYNCOPE/AttributeValidatorClass"
title="AttributeValidatorClass">Attribute Validator Class</a> for implementation
details).<br/>
<em>Type</em><br/>
Type of the attribute.<br/>
<em>Mandatory condition</em><br/>
<em>true</em> for mandatory attribute;<br/>
<em>false</em> for not mandatory attribute;<br/>
a condition on other attributes for a conditional mandatory (for example, a condition <em>gender</em>
can be: <em>gender=='male</em>').<br/>
<em>Accepted values</em><br/>
to be valued in case of Enum type.<br/>
<em>Multivalue</em><br/>
check it create an attribute multivalue.<br/>
<em>Read-only</em><br/>
check it to create an attribute read-only.</li>
	<li>Click on <em>Save</em> button.</li>
</ol>


<h1><a name="Schema-CreateanewDerivedSchema"></a>Create a new Derived Schema</h1>
<p>Following <em>User Schema</em> creation steps have been provided. </p>

<p>To create a <em>Role Schema</em> or a <em>Membership Schema</em>
follow the same steps into the corresponding subtabs of the main tab <em>Schema</em>.</p>

<ol>
	<li>Click on <em>Schema</em> tab.</li>
	<li>Click on <em>Derived attributes</em> tab.<br/>
<span class="image-wrap" style=""><a class="confluence-thumbnail-link 1366x660" href='https://cwiki.apache.org/confluence/download/attachments/27841545/UserSchema4.png'><img
src="/confluence/download/thumbnails/27841545/UserSchema4.png" style="border: 0px solid black"
/></a></span></li>
	<li>Click on <em>Create new attribute</em> button and provide the name
and the <a href="http://commons.apache.org/jexl/" class="external-link" rel="nofollow">JEXL
Expressions</a>.</li>
	<li>Click on <em>Save</em> button.</li>
</ol>



<h1><a name="Schema-CreateanewVirtualSchema"></a>Create a new Virtual Schema</h1>
<p>Following <em>User Schema</em> creation steps have been provided. </p>

<p>To create a <em>Role Schema</em> or a <em>Membership Schema</em>
follow the same steps into the corresponding subtabs of the main tab <em>Schema</em>.</p>

<ol>
	<li>Click on <em>Schema</em> tab.</li>
	<li>Click on <em>Virtual attributes</em> tab.</li>
	<li>Click on <em>Create new attribute</em> button and provide the name.<br/>
<span class="image-wrap" style=""><a class="confluence-thumbnail-link 1366x660" href='https://cwiki.apache.org/confluence/download/attachments/27841545/UserSchema5.png'><img
src="/confluence/download/thumbnails/27841545/UserSchema5.png" style="border: 0px solid black"
/></a></span></li>
	<li>Click on <em>Save</em> button.</li>
</ol>


<h1><a name="Schema-EditSchema"></a>Edit Schema</h1>
<p>Following <em>User Schema</em> modification steps have been provided.
</p>

<p>To modify a <em>Role Schema</em> or a <em>Membership Schema</em>
follow the same steps into the corresponding subtabs of the main tab <em>Schema</em>.</p>

<ol>
	<li>Click on <em>Schema</em> tab.</li>
	<li>Click on <em>Attributes</em> tab.<br/>
<span class="image-wrap" style=""><a class="confluence-thumbnail-link 1366x660" href='https://cwiki.apache.org/confluence/download/attachments/27841545/UserSchema1.png'><img
src="/confluence/download/thumbnails/27841545/UserSchema1.png" style="border: 0px solid black"
/></a></span></li>
	<li>Click on <em>Edit</em> link and provide information as described above.</li>
	<li>Click on <em>Save</em> button.</li>
</ol>


<p>Steps are quite the same for derived and virtual attribute schemas.</p>

<h1><a name="Schema-DeleteSchema"></a>Delete Schema</h1>
<p>Following <em>User Schema</em> deletion steps have been provided. </p>

<p>To delete a <em>Role Schema</em> or a <em>Membership Schema</em>
follow the same steps into the corresponding subtabs of the main tab <em>Schema</em>.</p>

<ol>
	<li>Click on <em>Schema</em> tab.</li>
	<li>Click on <em>Attributes</em> tab.</li>
	<li>Click on <em>Delete</em> link.</li>
	<li>Confirm operation.</li>
</ol>


<p>Steps are quite the same for derived and virtual attribute schemas.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/SYNCOPE/Schema">View Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=27841545&revisedVersion=5&originalVersion=4">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/SYNCOPE/Schema?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message