Commit ec51a4103a98c4735ed88f92b78c8490d5e8645d

Authored by Darryl Quinn
1 parent 2bd22e15b3
Exists in master

loading files

Assets/GE Engineering SOP rev2.doc
No preview for this file type
Assets/GE Engineering SOP.doc
No preview for this file type
Assets/GreenEnergyLogo.png

5.72 KB

Assets/awesson.png

34.6 KB

Assets/flugar.png

33.1 KB

Assets/jsmith.png

33.2 KB

Assets/rgrande.png

30.8 KB

end_users_sample_bootstrap_user.amp
No preview for this file type
... ... @@ -0,0 +1,71 @@
  1 +#!/bin/bash
  2 +ALF_HOME=/opt/alfresco
  3 +TOMCAT_HOME=$ALF_HOME/tomcat
  4 +EXTROOT=$TOMCAT_HOME/shared/classes
  5 +EXTDIR_REPO=$EXTROOT/alfresco/extension
  6 +EXTDIR_MESSAGES=$EXTROOT/alfresco/messages
  7 +EXTDIR_SHARE=$EXTROOT/alfresco/web-extension
  8 +
  9 +echo "+--------------------------------------+"
  10 +echo "| Course Setup for End/Power Users |"
  11 +echo "+--------------------------------------+"
  12 +read -p "Press [ENTER] to continue..."
  13 +
  14 +echo "Shutting Down Alfresco..."
  15 +pushd .
  16 +cd $ALF_HOME
  17 +$ALF_HOME/alfresco.sh stop
  18 +echo "Sleeping..."
  19 +echo "60 secs..."
  20 +sleep 15s
  21 +echo "45 secs..."
  22 +sleep 15s
  23 +echo "30 secs..."
  24 +sleep 15s
  25 +echo "15 secs..."
  26 +sleep 15s
  27 +killall java
  28 +popd
  29 +
  30 +echo "Backing up share-config-custom.xml..."
  31 +mv $EXTDIR_SHARE/share-config-custom.xml $EXTDIR_SHARE/old.share-config-custom.xml
  32 +
  33 +echo "Installing share config..."
  34 +cp setup/share-config-custom.xml $EXTDIR_SHARE/share-config-custom.xml
  35 +
  36 +#echo "Backing up alfresco-global.properties..."
  37 +#mv $EXTROOT/alfresco-global.properties $EXTROOT/old.alfresco-global.properties
  38 +
  39 +#echo "Installing alfresco-global.properties..."
  40 +#cp setup/alfresco-global.properties $EXTROOT/alfresco-global.properties
  41 +
  42 +echo "Installing sopModel..."
  43 +cp ../Common/Models/sopModel.xml $EXTDIR_REPO/sopModel.xml
  44 +cp ../Common/Models/sopModel-context.xml $EXTDIR_REPO/sopModel-context.xml
  45 +
  46 +cd setup/
  47 +echo "Installing .properties file..."
  48 +cp sop-share-context.xml $EXTDIR_SHARE/sop-share-context.xml
  49 +cp sopResourceBundle.properties $EXTDIR_MESSAGES/sopResourceBundle.properties
  50 +
  51 +
  52 +echo "Removing Records Management..."
  53 +rm $ALF_HOME/amps/alfresco-rm-2.0.2-171.amp
  54 +rm $ALF_HOME/amps_share/alfresco-rm-share-2.0.2-171.amp
  55 +pushd .
  56 +cd $ALF_HOME
  57 +
  58 +#java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps/alfresco-rm-2.0.2-171.amp $TOMCAT_HOME/webapps/alfresco.war
  59 +#java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps-share/alfresco-rm-share-2.0.2-171.amp $TOMCAT_HOME/webapps/share.war -force
  60 +
  61 +rm -rf $TOMCAT_HOME/webapps/alfresco
  62 +rm -rf $TOMCAT_HOME/webapps/share
  63 +$ALF_HOME/bin/clean_tomcat.sh
  64 +
  65 +echo "Starting Alfresco now..."
  66 +cd $ALF_HOME
  67 +$ALF_HOME/alfresco.sh start
  68 +popd
  69 +
  70 +echo "Course Setup completed."
  71 +exit 0
... ...
setup/alfresco-global.properties
... ... @@ -0,0 +1,224 @@
  1 +#----------------------------------------------------------------------------------------------
  2 +# alfresco-global.properties.GOLD
  3 +#
  4 +# This is the training GOLD copy of alfresco-global.properties which is designed to be used for
  5 +# training development and for virtual machines used in training.
  6 +#
  7 +# Records Management for Administrators 380
  8 +#
  9 +# Carlos Miguens/Darryl Quinn
  10 +# 24 May 2011
  11 +#----------------------------------------------------------------------------------------------
  12 +# Changelog: This file is originally based on 3.2
  13 +# CJSM: 2010-09-08 Reviewed for 3.3.2, no changes made
  14 +# DLQ: 2011-05-24 Enabled workflow deploy servlet
  15 +# DLQ: 2012-02-10 Changed to Postgres and Alf 4.0
  16 +# DLQ: 2013-10-03 added ftp.port=2121, DP environment settings, inbound email
  17 +#==============================================================================================
  18 +
  19 +#----------------------------------------------------------------------------------------------
  20 +# Set the data directory, be sure that the directory exists
  21 +dir.root=/opt/alfresco/alf_data
  22 +
  23 +#----------------------------------------------------------------------------------------------
  24 +# Database connection properties
  25 +db.name=alfresco
  26 +db.username=alfresco
  27 +db.password=admin
  28 +db.host=alfresco
  29 +db.port=5432
  30 +
  31 +#
  32 +hybridworkflow.enabled=true
  33 +sync.cloud.url=https://traininga.alfresco.me/alfresco/a/{network}/
  34 +sync.mode=ON_PREMISE
  35 +
  36 +ftp.port=2121
  37 +
  38 +#----------------------------------------------------------------------------------------------
  39 +# Decide if content should be removed from the system immediately after being orphaned.
  40 +# Do not change this unless you have examined the impact it has on your backup procedures.
  41 +system.content.eagerOrphanCleanup=true
  42 +
  43 +#----------------------------------------------------------------------------------------------
  44 +# Property to control whether schema updates are performed automatically.
  45 +# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
  46 +# there are also auto-generated update scripts that will need to be executed. After
  47 +# upgrading to a new version, this can be disabled.
  48 +#
  49 +db.schema.update=true
  50 +
  51 +#----------------------------------------------------------------------------------------------
  52 +# D A T A B A S E C O N N E C T I O N S
  53 +# This section has the database specific connection information in it.
  54 +# Uncomment the appropriate section for your database
  55 +#==============================================================================================
  56 +#
  57 +# MySQL connection
  58 +#db.driver=org.gjt.mm.mysql.Driver
  59 +#db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}
  60 +
  61 +#----------------------------------------------------------------------------------------------
  62 +# Oracle connection
  63 +#db.driver=oracle.jdbc.OracleDriver
  64 +#db.url=jdbc:oracle:thin:@localhost:1521:alfresco
  65 +
  66 +#----------------------------------------------------------------------------------------------
  67 +# SQLServer connection (note you must enable TCP protocol on fixed port 1433)
  68 +#db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
  69 +#db.url=jdbc:sqlserver://localhost:1433;databaseName=alfresco
  70 +#db.txn.isolation=4096
  71 +
  72 +#----------------------------------------------------------------------------------------------
  73 +# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
  74 +db.driver=org.postgresql.Driver
  75 +db.url=jdbc:postgresql://${db.host}:${db.port}/${db.name}
  76 +
  77 +#----------------------------------------------------------------------------------------------
  78 +# C O N V E R T E R S A N D T R A N S F O R M E R S
  79 +# This section controls the locations and behaviours of transformers and converters
  80 +#==============================================================================================
  81 +
  82 +#----------------------------------------------------------------------------------------------
  83 +# Open Office
  84 +#
  85 +ooo.exe=soffice
  86 +jodconverter.officeHome=/usr/lib/openoffice
  87 +jodconverter.portNumbers=8101
  88 +ooo.enabled=false
  89 +jodconverter.enabled=true
  90 +
  91 +#----------------------------------------------------------------------------------------------
  92 +# ImageMagick
  93 +#
  94 +#img.root=./ImageMagick
  95 +#
  96 +# ImageMagick is installed by default on Ubuntu, the program is called convert and is in /usr
  97 +img.root=/usr
  98 +
  99 +#----------------------------------------------------------------------------------------------
  100 +# Flash Converter
  101 +#
  102 +# This example is for Ubuntu
  103 +swf.exe=/usr/bin/pdf2swf
  104 +
  105 +#----------------------------------------------------------------------------------------------
  106 +# R E C O R D S M A N A G E M E N T
  107 +# This section controls records management behaviour
  108 +#==============================================================================================
  109 +# Enable ghosting of records on deletion
  110 +rm.ghosting.enabled=true
  111 +
  112 +#----------------------------------------------------------------------------------------------
  113 +# Notification for Vital records due for review, this should be an email address
  114 +rm.notifyOfRecordsDueForReviewJob.to=alfresco
  115 +rm.notifyOfRecordsDueForReviewJob.from=alfresco
  116 +
  117 +#----------------------------------------------------------------------------------------------
  118 +# L D A P A U T H E N T I C A T I O N
  119 +# This section controls behaviour of the LDAP authentication, if used requires an OpenLDAP
  120 +# server to be running.
  121 +# * To use simply remove the comments and ensure that the values are properly set *
  122 +#==============================================================================================
  123 +# Define the chain
  124 +#authentication.chain=alfrescoNtlm1:alfrescoNtlm,exampleLDAP:ldap
  125 +
  126 +#----------------------------------------------------------------------------------------------
  127 +# User name format. This example uses the common name e.g. Harriet Slim
  128 +#ldap.authentication.userNameFormat=uid=%s,ou=People,dc=alfresco,dc=com
  129 +
  130 +#----------------------------------------------------------------------------------------------
  131 +# The URL to connect to the LDAP server
  132 +#ldap.authentication.java.naming.provider.url=ldap://localhost:389
  133 +
  134 +#----------------------------------------------------------------------------------------------
  135 +# The authentication mechanism to use simple or DIGEST-MD5
  136 +#ldap.authentication.java.naming.security.authentication=simple
  137 +
  138 +#----------------------------------------------------------------------------------------------
  139 +# As we only have ldap in our chain we need to set the admin user(s)
  140 +#ldap.authentication.defaultAdministratorUserNames=alfresco
  141 +
  142 +#----------------------------------------------------------------------------------------------
  143 +# Syncronization settings
  144 +# IMPORTANT: Change to true to enable OpenLDAP sync
  145 +#ldap.synchronization.active=true
  146 +#ldap.synchronization.java.naming.security.principal=cn=Manager,dc=Alfresco,dc=com
  147 +#ldap.synchronization.java.naming.security.credentials=secret
  148 +#ldap.synchronization.groupSearchBase=ou=Groups,dc=alfresco,dc=com
  149 +#ldap.synchronization.userSearchBase=ou=People,dc=alfresco,dc=com
  150 +
  151 +#----------------------------------------------------------------------------------------------
  152 +# E M A I L S E T T I N G S
  153 +# This section controls outbound and inbound emails. It is separate to the IMAP settings
  154 +# * To use simply remove the comments and ensure that the values are properly set *
  155 +#==============================================================================================
  156 +
  157 +#----------------------------------------------------------------------------------------------
  158 +# OUTBOUND Email Configuration
  159 +#
  160 +#mail.host=alfresco
  161 +#mail.port=25
  162 +#mail.username=anonymous
  163 +#mail.password=
  164 +#mail.encoding=UTF-8
  165 +#mail.from.default=alfresco@alfresco.org
  166 +#mail.smtp.auth=false
  167 +
  168 +#----------------------------------------------------------------------------------------------
  169 +# INBOUND Email Configuration
  170 +#
  171 +# Enable/Disable the inbound email service.  The service could be used by processes other than
  172 +# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
  173 +email.inbound.enabled=true
  174 +
  175 +# Email Server properties
  176 +email.server.enabled=true
  177 +email.server.port=2525
  178 +email.server.domain=alfresco.com
  179 +email.inbound.unknownUser=anonymous
  180 +
  181 +# A comma separated list of email REGEX patterns of allowed senders.
  182 +# If there are any values in the list then all sender email addresses
  183 +# must match.  For example:
  184 +#   .*\@alfresco\.com, .*\@alfresco\.org
  185 +# As set below allow anyone
  186 +# email.server.allowed.senders=.*
  187 +
  188 +
  189 +#----------------------------------------------------------------------------------------------
  190 +# I M A P S E R V E R S E T T I N G S
  191 +# This section enables IMAP and sets up the system to allow IMAP connections.
  192 +# * To use simply remove the comments and ensure that the values are properly set *
  193 +#==============================================================================================
  194 +# Ports below 1024 on linux can only be opened by root, your server name must be a real name
  195 +# e.g. polecat, not localhost, although an IP address would work if it matches what the client
  196 +# sees
  197 +imap.server.enabled=true
  198 +imap.server.port=1483
  199 +#imap.server.host=<your server name here>
  200 +imap.server.host=alfresco
  201 +imap.server.attachments.extraction.enabled=true
  202 +
  203 +#----------------------------------------------------------------------------------------------
  204 +# Set default ImapConfigMountPointsBean property values
  205 +imap.config.server.mountPoints.default.store=${spaces.store}
  206 +imap.config.server.mountPoints.default.rootPath=/${spaces.company_home.childname}
  207 +
  208 +#----------------------------------------------------------------------------------------------
  209 +# Define mount points:
  210 +# AlfrescoIMAP: is a general mountpoint for the whole repository
  211 +# RM_Repository: is a mount point for the RM site, set to ARCHIVE mode
  212 +# These should be commented out until the RM site has been created
  213 +#imap.config.server.mountPoints=AlfrescoIMAP,RM_Repository
  214 +#imap.config.server.mountPoints.value.RM_Repository.folderPath=Sites/rm
  215 +#imap.config.server.mountPoints.value.RM_Repository.modeName=ARCHIVE
  216 +#imap.config.server.mountPoints.value.RM_Repository.mountPointName=RM Archive
  217 +
  218 +
  219 +#--------------
  220 +# workflow process servlet
  221 +#
  222 +#--------------
  223 +system.workflow.deployservlet.enabled=true
  224 +
... ...
setup/share-config-custom.xml
... ... @@ -0,0 +1,353 @@
  1 +<alfresco-config>
  2 +
  3 + <!-- Global config section -->
  4 + <config replace="true">
  5 + <flags>
  6 + <!--
  7 + Developer debugging setting to turn on DEBUG mode for client scripts in the browser
  8 + -->
  9 + <client-debug>false</client-debug>
  10 +
  11 + <!--
  12 + LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
  13 + This flag automatically activates logging on page load.
  14 + -->
  15 + <client-debug-autologging>false</client-debug-autologging>
  16 + </flags>
  17 + </config>
  18 +
  19 + <!-- Document Library config section -->
  20 + <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
  21 +
  22 + <tree>
  23 + <!--
  24 + Whether the folder Tree component should enumerate child folders or not.
  25 + This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
  26 + -->
  27 + <evaluate-child-folders>false</evaluate-child-folders>
  28 +
  29 + <!--
  30 + Optionally limit the number of folders shown in treeview throughout Share.
  31 + -->
  32 + <maximum-folder-count>-1</maximum-folder-count>
  33 + </tree>
  34 +
  35 + <!--
  36 + Used by the "Manage Aspects" action
  37 +
  38 + For custom aspects, remember to also add the relevant i18n string(s)
  39 + cm_myaspect=My Aspect
  40 + -->
  41 + <aspects>
  42 + <!-- Aspects that a user can see -->
  43 + <visible>
  44 + <!-- Let's hide some of the standard aspects
  45 + <aspect name="cm:generalclassifiable" />
  46 + <aspect name="cm:complianceable" />
  47 + <aspect name="cm:dublincore" />
  48 + <aspect name="cm:effectivity" />
  49 + <aspect name="cm:summarizable" />
  50 + <aspect name="cm:versionable" />
  51 + <aspect name="cm:templatable" />
  52 + <aspect name="cm:emailed" />
  53 + -->
  54 + <aspect name="emailserver:aliasable" />
  55 + <aspect name="cm:taggable" />
  56 +
  57 + <aspect name="app:inlineeditable"/>
  58 + <aspect name="sop:autoReview"/>
  59 + <aspect name="sop:effective"/>
  60 + <aspect name="sop:signoff"/>
  61 + </visible>
  62 +
  63 + <!-- Aspects that a user can add. Same as "visible" if left empty -->
  64 + <addable> </addable>
  65 +
  66 + <!-- Aspects that a user can remove. Same as "visible" if left empty -->
  67 + <removeable> </removeable>
  68 + </aspects>
  69 +
  70 + <!--
  71 + Used by the "Change Type" action
  72 +
  73 + Define valid subtypes using the following example:
  74 + <type name="cm:content">
  75 + <subtype name="cm:mysubtype" />
  76 + </type>
  77 +
  78 + Remember to also add the relevant i18n string(s):
  79 + cm_mysubtype=My SubType
  80 + -->
  81 + <types>
  82 + <type name="cm:content">
  83 + <subtype name="sop:sop"/>
  84 + </type>
  85 +
  86 + <type name="cm:folder"> </type>
  87 + </types>
  88 +
  89 + <!--
  90 + If set, will present a WebDAV link for the current item on the Document and Folder details pages.
  91 + Also used to generate the "View in Alfresco Explorer" action for folders.
  92 + -->
  93 + <repository-url>http://localhost:8080/alfresco</repository-url>
  94 +
  95 + <!--
  96 + Google Docs integration
  97 + -->
  98 + <google-docs>
  99 + <!--
  100 + Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
  101 + If enabled, remember to also make sure the gd:googleEditable aspect is made visible in the <aspects> section above.
  102 + -->
  103 + <enabled>false</enabled>
  104 +
  105 + <!--
  106 + The mimetypes of documents Google Docs allows you to create via the Share interface.
  107 + The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs&trade; Document
  108 + -->
  109 + <creatable-types>
  110 + <creatable type="doc">application/msword</creatable>
  111 + <creatable type="xls">application/vnd.ms-excel</creatable>
  112 + <creatable type="ppt">application/vnd.ms-powerpoint</creatable>
  113 + </creatable-types>
  114 + </google-docs>
  115 + </config>
  116 +
  117 + <!-- Repository Library config section -->
  118 + <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
  119 + <!--
  120 + Whether the link to the Repository Library appears in the header component or not.
  121 + -->
  122 + <visible>true</visible>
  123 +
  124 + <!--
  125 + Root nodeRef for top-level folder.
  126 + -->
  127 + <root-node>alfresco://company/home</root-node>
  128 +
  129 + <tree>
  130 + <!--
  131 + Whether the folder Tree component should enumerate child folders or not.
  132 + This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
  133 + -->
  134 + <evaluate-child-folders>false</evaluate-child-folders>
  135 +
  136 + <!--
  137 + Optionally limit the number of folders shown in treeview throughout Share.
  138 + -->
  139 + <maximum-folder-count>500</maximum-folder-count>
  140 + </tree>
  141 + </config>
  142 +
  143 + <!--
  144 + NTLM authentication config for Share
  145 + NOTE: you will also need to enable the NTLM authentication filter in Share web.xml
  146 + change localhost:8080 below to appropriate alfresco server location if required
  147 + -->
  148 +
  149 + <!--
  150 + <config evaluator="string-compare" condition="Remote">
  151 + <remote>
  152 + <connector>
  153 + <id>alfrescoCookie</id>
  154 + <name>Alfresco Connector</name>
  155 + <description>Connects to an Alfresco instance using cookie-based authentication</description>
  156 + <class>org.springframework.extensions.webscripts.connector.AlfrescoConnector</class>
  157 + </connector>
  158 +
  159 + <endpoint>
  160 + <id>alfresco</id>
  161 + <name>Alfresco - user access</name>
  162 + <description>Access to Alfresco Repository WebScripts that require user authentication</description>
  163 + <connector-id>alfrescoCookie</connector-id>
  164 + <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
  165 + <identity>user</identity>
  166 + <external-auth>true</external-auth>
  167 + </endpoint>
  168 + </remote>
  169 + </config>
  170 + -->
  171 +
  172 + <!-- example changing port used to access remote Alfresco server (default is 8080)
  173 + <config evaluator="string-compare" condition="Remote">
  174 + <remote>
  175 + <endpoint>
  176 + <id>alfresco-noauth</id>
  177 + <name>Alfresco - unauthenticated access</name>
  178 + <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
  179 + <connector-id>alfresco</connector-id>
  180 + <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
  181 + <identity>none</identity>
  182 + </endpoint>
  183 +
  184 + <endpoint>
  185 + <id>alfresco</id>
  186 + <name>Alfresco - user access</name>
  187 + <description>Access to Alfresco Repository WebScripts that require user authentication</description>
  188 + <connector-id>alfresco</connector-id>
  189 + <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
  190 + <identity>user</identity>
  191 + </endpoint>
  192 +
  193 + <endpoint>
  194 + <id>alfresco-feed</id>
  195 + <name>Alfresco Feed</name>
  196 + <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
  197 + <connector-id>http</connector-id>
  198 + <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
  199 + <basic-auth>true</basic-auth>
  200 + <identity>user</identity>
  201 + </endpoint>
  202 + </remote>
  203 + </config>
  204 + -->
  205 +
  206 + <!-- ___________________________________________________________________________________ -->
  207 + <!-- Model Answer for Labs x in Content Model Overview in Fundamentals -->
  208 + <!-- Alfresco Training -->
  209 + <!-- 12 Aug 2010 -->
  210 + <!-- __________________________________________________________________________________________ -->
  211 + <!-- Changelog: This file is originally based on 3.3 share-config-custom -->
  212 + <!-- ========================================================================================== -->
  213 +
  214 + <config evaluator="aspect" condition="sop:autoReview">
  215 + <forms>
  216 + <form>
  217 + <field-visibility>
  218 + <show id="sop:autoReviewStart"/>
  219 + </field-visibility>
  220 + </form>
  221 + </forms>
  222 + </config>
  223 +
  224 + <config evaluator="aspect" condition="sop:effective">
  225 + <forms>
  226 + <form>
  227 + <field-visibility>
  228 + <show id="sop:effective_date"/>
  229 + </field-visibility>
  230 + </form>
  231 + </forms>
  232 + </config>
  233 +
  234 + <config evaluator="aspect" condition="sop:signoff">
  235 + <forms>
  236 + <form>
  237 + <field-visibility>
  238 + <show id="sop:signatory"/>
  239 + </field-visibility>
  240 + </form>
  241 + </forms>
  242 + </config>
  243 +
  244 + <config evaluator="node-type" condition="sop:sop">
  245 + <set id="sopPanel" appearance="bordered-panel" label="Standard Operating Procedure"/>
  246 + <forms>
  247 + <form>
  248 + <field-visibility>
  249 + <!-- add the fields we want back in so that they are displayed -->
  250 + <show id="cm:name"/>
  251 + <show id="cm:titled"/>
  252 + <show id="cm:description"/>
  253 + <show id="mimetype"/>
  254 + <show id="cm:author"/>
  255 + <show id="cm:creator"/>
  256 + <show id="cm:created"/>
  257 + <show id="cm:modifier"/>
  258 + <show id="cm:modified"/>
  259 + <!-- fields from our custom type -->
  260 + <show id="sop:nextReviewDate"/>
  261 + <show id="sop:reviewDate" for-mode="view"/>
  262 + <show id="sop:proposedEffectiveDate"/>
  263 + <show id="sop:reviewPeriod"/>
  264 + <show id="sop:supersededSops"/>
  265 + <show id="sop:owner"/>
  266 + <show id="sop:visibility"/>
  267 + </field-visibility>
  268 + <appearance>
  269 + <set id="sopPanel" appearance="fieldset" label="Standard Operating Procedure"/>
  270 + <!-- reviewDate has been set as "view" because this would normally be set by the system -->
  271 + <!-- you may not have added the labels in your answer, normally these would be external -->
  272 + <field id="sop:nextReviewDate" set="sopPanel" label="Next Review Date"/>
  273 + <field id="sop:reviewDate" set="sopPanel" label="Last Reviewed" for-mode="view"/>
  274 + <field id="sop:proposedEffectiveDate" set="sopPanel" label="Proposed Effective Date"/>
  275 + <field id="sop:reviewPeriod" set="sopPanel" label="Review Period (days)"/>
  276 + <field id="sop:visibility" set="sopPanel" label="Visibility"/>
  277 + <field id="sop:supersededSops" set="sopPanel" label="Supersedes"/>
  278 + <field id="sop:owner" set="sopPanel" label="SOP Owner"/>
  279 + <field id="sop:autoReviewStart" set="sopPanel" label="Auto Review Start" description="Auto Review Start (days)"/>
  280 + <field id="sop:effective_date" set="sopPanel" label="Effective Date" description="Effective Date"/>
  281 + <field id="sop:signatory" set="sopPanel" label="Signatory" description="Authorized Signatory"/>
  282 + </appearance>
  283 + </form>
  284 + </forms>
  285 + </config>
  286 +
  287 + <!-- __________________________________________________________________________________________ -->
  288 + <!-- Exercise 6 Solution - Share Configuration Course -->
  289 + <!-- Part 1 - add in the necessary configuration to support the Test Tracking List -->
  290 + <!-- Part 2 - dataGrid form configuration -->
  291 + <!-- -->
  292 + <!-- (set tab width to 4 to view this file) -->
  293 + <!-- __________________________________________________________________________________________ -->
  294 + <!-- Alfresco Training -->
  295 + <!-- 23 April 2011 -->
  296 + <!-- ========================================================================================== -->
  297 +
  298 + <!-- P A R T 1 -->
  299 +
  300 + <config evaluator="model-type" condition="sop:trackingList">
  301 + <forms>
  302 + <!-- Create Test tracking list form -->
  303 + <form>
  304 + <field-visibility>
  305 + <!-- for the form creation we are showing everything except approved date -->
  306 + <show id="cm:titled"/>
  307 + <show id="cm:description"/>
  308 + <show id="sop:testAgency"/>
  309 + <show id="sop:testScheduledDate"/>
  310 + <show id="sop:testConductedDate"/>
  311 + <show id="sop:testStatus"/>
  312 + <show id="sop:testNotes"/>
  313 + <show id="sop:testOwner"/>
  314 + <show id="sop:testAttachments"/>
  315 + </field-visibility>
  316 + <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl"/>
  317 + <appearance>
  318 + <field id="cm:description" label="Description">
  319 + <!-- Use a text area for the description field -->
  320 + <control template="/org/alfresco/components/form/controls/textarea.ftl"/>
  321 + </field>
  322 + <field id="sop:testAttachments">
  323 + <control>
  324 + <control-param name="startLocation">{doclib}</control-param>
  325 + </control>
  326 + </field>
  327 + </appearance>
  328 + </form>
  329 +
  330 + <!-- P A R T 2 -->
  331 +
  332 + <!-- Data Grid view -->
  333 + <form id="datagrid">
  334 + <field-visibility>
  335 + <!-- showing a subset of the properties in data grid view -->
  336 + <show id="cm:titled"/>
  337 + <show id="sop:testName"/>
  338 + <show id="cm:description"/>
  339 + <show id="sop:testAgency"/>
  340 + <show id="sop:testScheduledDate"/>
  341 + <show id="sop:testConductedDate"/>
  342 + <show id="sop:testStatus"/>
  343 + <show id="sop:testOwner"/>
  344 + <show id="sop:testAttachments"/>
  345 + <show id="sop:testNotes"/>
  346 + </field-visibility>
  347 + </form>
  348 + </forms>
  349 + </config>
  350 +
  351 +
  352 +</alfresco-config>
  353 +
... ...
setup/sop-share-context.xml
... ... @@ -0,0 +1,30 @@
  1 +<?xml version='1.0' encoding='UTF-8'?>
  2 +<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
  3 +
  4 + <!-- __________________________________________________________________________________________ -->
  5 + <!-- Demonstration for Configuring UI Controls - Share Configuration -->
  6 + <!-- Configuring aspects and custom types -->
  7 + <!-- Part 1. Configuring visible aspects -->
  8 + <!-- Part 2. Adding a custom type -->
  9 + <!-- Part 3. Create the properties file -->
  10 + <!-- Part 4. Bootstrap the .properties file through Spring configuration -->
  11 + <!-- __________________________________________________________________________________________ -->
  12 + <!-- Copyright Alfresco Training (set tab width to 4 to view this file) -->
  13 + <!-- 23 April 2011 -->
  14 + <!-- ========================================================================================== -->
  15 + <!-- IMPORTANT: This file should be called sopModel-client-context.xml and placed in: -->
  16 + <!-- <tomcat>/shared/classes/alfresco/web-extension -->
  17 + <!-- Restart tomcat -->
  18 +
  19 +<beans>
  20 +
  21 + <!-- Override WebScript Messages - add Share application messages -->
  22 + <bean id="sopModel.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
  23 + <property name="resourceBundles">
  24 + <list>
  25 + <value>alfresco.messages.sopResourceBundle</value>
  26 + </list>
  27 + </property>
  28 + </bean>
  29 +
  30 +</beans>
... ...
setup/sopResourceBundle.properties
... ... @@ -0,0 +1,4 @@
  1 +type.sop_sop=Standard Operating Procedure
  2 +aspect.sop_autoReview=Auto Review
  3 +aspect.sop_effective=Effective
  4 +aspect.sop_signoff=Sign Off
... ...