 
					
				
		
12-19-2013 07:16 AM
<aspects> 
<aspect name="custom:ModuloDetails"> 
<title>Document Dettaglio Moduloies> 
<property name="custom:CodProtocollo"> 
<title>Codice Modulo</title> 
<type>d:text</type> 
<protected>false</protected> 
<mandatory>true</mandatory> 
<multiple>false</multiple> 
</property> 
<property name="custom:CodModulo"> 
<title>Codice Modulo</title> 
<type>d:text</type> 
</property> 
</properties> 
</aspect> 
</aspects>
<config evaluator="string-compare" condition="Action Wizards"> 
<aspects> 
<aspect name="custom:ModuloDetails"/> 
</aspects> 
</config>
<config evaluator="aspect-name" condition="custom:ModuloDetails">
<property-sheet> 
<show-property name="custom:CodProtocollo"/> 
<show-property name="custom:CodModulo"/> 
</property-sheet> 
</config>
AlfrescoDocument alfDoc = (AlfrescoDocument) doc;
alfDoc.addAspect("P:custom:ModuloDetails");
 
					
				
		
12-19-2013 11:23 AM
 
					
				
		
12-20-2013 04:13 AM
12-20-2013 04:43 AM
<aspects> 
<aspect name="custom:ModuloDetails"> 
<title>Document Dettaglio Moduloies> 
<property name="custom:CodProtocollo"> 
<title>Codice Modulo</title> 
<type>d:text</type> 
<protected>false</protected> 
<mandatory>true</mandatory> 
<multiple>false</multiple> 
</property> 
<property name="custom:CodModulo"> 
<title>Codice Modulo</title> 
<type>d:text</type> 
</property> 
</properties> 
</aspect> 
</aspects>
 
					
				
		
12-20-2013 05:08 AM
<title>Document Dettaglio Moduloies> 
<title>Dettaglio Modulo</title> 
12-22-2013 12:05 AM
 
					
				
		
01-07-2014 11:33 AM
<?xml version="1.0" encoding="UTF-8"?>
 
<!– Custom Model –>
 
<!– Note: This model is pre-configured to load at startup of the Repository.  So, all custom –>
<!–       types and aspects added here will automatically be registered –>
 
<model name="sc:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
 
   <!– Optional meta-data about the model –>   
   <description>Custom Model</description>
   <author></author>
   <version>1.0</version>
 
   <imports>
        <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>
 
   <!– Introduction of new namespaces defined by this model –>
   <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
   <namespaces>
      <!–namespace uri="custom.model" prefix="custom"/–>
      <namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
 
   </namespaces>
 
 
 <types>
 <!– Enterprise-wide generic document type –>
 <type name="sc:doc">
 <title>Someco Document</title>
 <parent>cm:content</parent>
 <associations>
 <association name="sc:relatedDocuments">
 <title>Related Documents</title>
 <source>
 <mandatory>false</mandatory>
 <many>true</many>
 </source>
 <target>
 <class>sc:doc</class>
 <mandatory>false</mandatory>
 <many>true</many> </target>
 </association>
 </associations>
 <mandatory-aspects>
 <aspect>cm:generalclassifiable</aspect>
 </mandatory-aspects>
 </type>
 <type name="sc:whitepaper">
 <title>Someco Whitepaper</title>
 <parent>sc:doc</parent>
 </type>
 </types>
 <aspects>
 <aspect name="sc:webable">
 <title>Someco Webable</title>
 <properties>
 <property name="sc:published">
 <type>d:date</type>
 </property>
 <property name="sc:isActive">
 <type>d:boolean</type>
 <default>false</default>
 </property>
 </properties>
 </aspect>
 <aspect name="sc:productRelated">
 <title>Someco Product Metadata</title>
 <properties>
 <property name="sc:product">
 <type>d:text</type>
 <mandatory>true</mandatory>
 </property>
 <property name="sc:version">
 <type>d:text</type>
 <mandatory>true</mandatory>
 </property>
 </properties>
 </aspect>
 </aspects>
 
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 
<beans>
 
    <!– Registration of new models –>   
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/customModel.xml</value>
            </list>
        </property>
    </bean>
 
</beans>
<alfresco-config>
<!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary">
      <aspects>
            <!– Aspects that a user can see –>
            <visible>
            <aspect name="sc:webable" />
            <aspect name="sc:productRelated" />
            </visible>
            <!– Aspects that a user can add. Same as "visible" if left empty –>
            <addable>
            </addable>
            <!– Aspects that a user can remove. Same as "visible" if left empty
            –>
            <removeable>
            </removeable>
      </aspects>
      <types>
            <type name="cm:content">
                  <subtype name="sc:doc" />
                  <subtype name="sc:whitepaper" />
            </type>
                  <type name="sc:doc">
                  <subtype name="sc:whitepaper" />
            </type>
      </types>
   </config>
 
</alfresco-config>
 
					
				
		
01-20-2014 04:26 AM
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.