Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
 * LGPL Version 2.1
 *
 *      http://www.openl.org/
 *
 * 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.
 */
 -->
<nodeTypes 
    xmlns:nt="http://www.jcp.org/jcr/nt/1.0" 
    xmlns:jcr="http://www.jcp.org/jcr/1.0" 
    xmlns:rep="internal" 
    xmlns:sv="http://www.jcp.org/jcr/sv/1.0" 
    xmlns:openl="http://www.openl.org/jcr/1.0" 
    xmlns:mix="http://www.jcp.org/jcr/mix/1.0">

    <!-- 
        "openl:repository" is a fiction node.
        It is used to track schema version only.
     -->
    <nodeType name="openl:repository" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
        <supertypes>
            <supertype>nt:unstructured</supertype>
        </supertypes>

        <propertyDefinition name="schema-version" requiredType="String" autoCreated="true" mandatory="true" onParentVersion="COPY" protected="false" multiple="false">
            <defaultValues>
                <defaultValue>5.7.4</defaultValue>
            </defaultValues>
        </propertyDefinition>
    </nodeType>
    
    <nodeType name="openl:entity">
        <supertypes>
            <supertype>nt:unstructured</supertype>
        </supertypes>

        <propertyDefinition name="rVersion" requiredType="Long" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="rRevision" requiredType="Long" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="modifiedBy" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>

        <propertyDefinition name="effectiveDate" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="expirationDate" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="LOB" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        
        <!-- Custom properties:    
        		* 5 String attributes (names attribute1, .., attribute5)
   			 	* 5 Date attributes (names attribute6, .., attribute10)
    			* 5 Number attributes (names attribute11, .., attribute15)
        -->
        
        <propertyDefinition name="attribute1" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute2" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute3" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute4" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute5" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        
        <propertyDefinition name="attribute6" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute7" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute8" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute9" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute10" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        
        <propertyDefinition name="attribute11" requiredType="Double" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute12" requiredType="Double" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute13" requiredType="Double" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute14" requiredType="Double" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="attribute15" requiredType="Double" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
    </nodeType>

    <nodeType name="openl:file">
        <supertypes>
            <supertype>openl:entity</supertype>
            <supertype>nt:file</supertype>
        </supertypes>
    </nodeType>
    
    <nodeType name="openl:folder">
        <supertypes>
            <supertype>openl:entity</supertype>
            <supertype>nt:folder</supertype>
        </supertypes>

    </nodeType>
    
	<!-- Abstract OpenL Project -->

    <nodeType name="openl:aproject" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
        <supertypes>
            <supertype>openl:folder</supertype>
        </supertypes>
        
        <propertyDefinition name="openl:marked4Deletion" requiredType="Boolean" autoCreated="false" mandatory="false" onParentVersion="ABORT" protected="false" multiple="false"/>
        <propertyDefinition name="description" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
        <propertyDefinition name="comment" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false"/>
    </nodeType>

	<!-- Deployment Descriptor Project -->

	<!-- Locks -->

    <nodeType name="openl:lock" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
        <supertypes>
            <supertype>nt:unstructured</supertype>
        </supertypes>
        <propertyDefinition name="lockedAt" requiredType="Date" autoCreated="false" mandatory="false" onParentVersion="IGNORE" protected="false" multiple="false"/>
        <propertyDefinition name="lockedBy" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="IGNORE" protected="false" multiple="false"/>
    </nodeType>
</nodeTypes>
New to GrepCode? Check out our FAQ X