08-27-2013 08:42 AM
08-27-2013 08:47 AM
08-27-2013 09:12 AM
<config evaluator="string-compare" condition="send-as-email">
<forms>
<form>
<field-visibility>
<show id="to"/>
<show id="subject"/>
<show id="body_text"/>
</field-visibility>
<appearance>
<field id="to" label-id="send-as-email.field.to"/>
<field id="subject" label-id="send-as-email.field.subject"/>
<field id="body_text" label-id="send-as-email.field.body_text">
<control
template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
08-28-2013 11:58 PM
08-29-2013 03:29 AM
08-30-2013 08:02 AM
08-30-2013 09:35 AM
09-02-2013 04:32 AM
<alfresco-config>
<!– Global config section –>
<config replace="true">
<flags>
<!–
Developer debugging setting to turn on DEBUG mode for client scripts in the browser
–>
<client-debug>false</client-debug>
<!–
LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
This flag automatically activates logging on page load.
–>
<client-debug-autologging>false</client-debug-autologging>
</flags>
</config>
<!–
<config evaluator="string-compare" condition="WebFramework">
<web-framework>–>
<!– SpringSurf Autowire Runtime Settings –>
<!–
Developers can set mode to 'development' to disable; SpringSurf caches,
FreeMarker template caching and Rhino JavaScript compilation.
–>
<!–
<autowire>–>
<!– Pick the mode: "production" or "development" –>
<!– <mode>production</mode>
</autowire>
–>
<!– Allows extension modules with <auto-deploy> set to true to be automatically deployed –>
<!– <module-deployment>
<mode>manual</mode>
<enable-auto-deploy-modules>true</enable-auto-deploy-modules>
</module-deployment>
</web-framework>
</config>
<config evaluator="string-compare" condition="Replication">
<share-urls>
<!–
To discover a Repository Id, browse to the remote server's CMIS landing page at:
http://{server}:{port}/alfresco/service/cmis/index.html
The Repository Id field is found under the "CMIS Repository Information" expandable panel.
Example config entry:
<share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>
</share-urls>
</config>
–>
<!– Document Library config section –>
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<tree>
<!–
Whether the folder Tree component should enumerate child folders or not.
This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
–>
<evaluate-child-folders>false</evaluate-child-folders>
<!–
Optionally limit the number of folders shown in treeview throughout Share.
–>
<maximum-folder-count>-1</maximum-folder-count>
</tree>
<!–
Used by the "Manage Aspects" action
For custom aspects, remember to also add the relevant i18n string(s)
cm_myaspect=My Aspect
–>
<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="cm:generalclassifiable" />
<aspect name="cm:complianceable" />
<aspect name="cm:dublincore" />
<aspect name="cm:effectivity" />
<aspect name="cm:summarizable" />
<aspect name="cm:versionable" />
<aspect name="cm:templatable" />
<aspect name="cm:emailed" />
<aspect name="emailserver:aliasable" />
<aspect name="cm:taggable" />
<aspect name="app:inlineeditable" />
<aspect name="gd:googleEditable" />
<aspect name="cm:geographic" />
<aspect name="exif:exif" />
</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>
<!–
Used by the "Change Type" action
Define valid subtypes using the following example:
<type name="cm:content">
<subtype name="cm:mysubtype" />
</type>
Remember to also add the relevant i18n string(s):
cm_mysubtype=My SubType
–>
<types>
<type name="cm:content">
</type>
<type name="cm:folder">
</type>
</types>
<!–
If set, will present a WebDAV link for the current item on the Document and Folder details pages.
Also used to generate the "View in Alfresco Explorer" action for folders.
–>
<repository-url>http://localhost:8080/alfresco</repository-url>
<!–
Google Docsâ„¢ integration
–>
<google-docs>
<!–
Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
–>
<enabled>false</enabled>
<!–
The mimetypes of documents Google Docs allows you to create via the Share interface.
The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document
–>
<creatable-types>
<creatable type="doc">application/msword</creatable>
<creatable type="xls">application/vnd.ms-excel</creatable>
<creatable type="ppt">application/vnd.ms-powerpoint</creatable>
</creatable-types>
</google-docs>
<!–
File upload configuration
–>
<file-upload>
<!–
Adobe Flashâ„¢
In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session.
See: http://bugs.adobe.com/jira/browse/FP-4830
For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries.
–>
<adobe-flash-enabled>true</adobe-flash-enabled>
</file-upload>
</config>
<!– Custom DocLibActions config section –>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-sendAsEmail" icon="email" type="javascript"
label="actions.document.sendAsEmail">
<param name="function">onActionFormDialog</param>
<param name="itemKind">action</param>
<param name="itemId">send-as-email</param>
<param name="mode">create</param>
<param name="destination">{node.nodeRef}</param>
<param name="successMessage">message.sendAsEmail.success</param>
<param name="failureMessage">message.sendAsEmail.failure</param>
<evaluator negate="true">evaluator.doclib.action.isEmailed
</evaluator>
</action>
</actions>
<actionGroups>
<actionGroup id="document-browse">
<!– Simple Repo Actions –>
<!–
<action index="340" id="document-extract-metadata" />
<action index="350" id="document-increment-counter" />
–>
<action index="400" id="document-sendAsEmail" />
</actionGroup>
<!– Dialog Repo Actions –>
<!–
<action index="360" id="document-transform" />
<action index="370" id="document-transform-image" />
<action index="380" id="document-execute-script" />
–>
<actionGroup id="document-details">
<action index="400" id="document-sendAsEmail" />
</actionGroups>
</config>
<!– Global folder picker config section –>
<config evaluator="string-compare" condition="GlobalFolder">
<siteTree>
<container type="cm:folder">
<!– Use a specific label for this container type in the tree –>
<rootLabel>location.path.documents</rootLabel>
<!– Use a specific uri to retreive the child nodes for this container type in the tree –>
<uri>slingshot/doclib/treenode/site/{site}/{container}{path}?children={evaluateChildFoldersSite}&max={maximumFolderCountSite}</uri>
</container>
</siteTree>
</config>
<!– Repository Library config section –>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
<!–
Root nodeRef or xpath expression for top-level folder.
e.g. alfresco://user/home, /app:company_home/st:sites/cm:site1
If using an xpath expression, ensure it is properly ISO9075 encoded here.
–>
<root-node>alfresco://company/home</root-node>
<tree>
<!–
Whether the folder Tree component should enumerate child folders or not.
This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
–>
<evaluate-child-folders>false</evaluate-child-folders>
<!–
Optionally limit the number of folders shown in treeview throughout Share.
–>
<maximum-folder-count>500</maximum-folder-count>
</tree>
</config>
<!– Kerberos settings –>
<!– To enable kerberos rename this condition to "Kerberos" –>
<config evaluator="string-compare" condition="KerberosDisabled" replace="true">
<kerberos>
<!–
Password for HTTP service account.
The account name *must* be built from the HTTP server name, in the format :
HTTP/<server_name>@<realm>
(NB this is because the web browser requests an ST for the
HTTP/<server_name> principal in the current realm, so if we're to decode
that ST, it has to match.)
–>
<password>secret</password>
<!–
Kerberos realm and KDC address.
–>
<realm>ALFRESCO.ORG</realm>
<!–
Service Principal Name to use on the repository tier.
This must be like: HTTP/host.name@REALM
–>
<endpoint-spn>HTTP/repository.server.com@ALFRESCO.ORG</endpoint-spn>
<!–
JAAS login configuration entry name.
–>
<config-entry>ShareHTTP</config-entry>
</kerberos>
</config>
<!– example port config used to access remote Alfresco server (default is 8080) –>
<!–
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-feed</id>
<name>Alfresco Feed</name>
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
<connector-id>http</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<basic-auth>true</basic-auth>
<identity>user</identity>
</endpoint>
<endpoint>
<id>activiti-admin</id>
<name>Activiti Admin UI - user access</name>
<description>Access to Activiti Admin UI, that requires user authentication</description>
<connector-id>activiti-admin-connector</connector-id>
<endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
<identity>user</identity>
</endpoint>
</remote>
</config>
–>
<!–
Overriding endpoints to reference an Alfresco server with external SSO enabled
NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky
sessions" feature of your load balancer must be used.
NOTE: If alfresco server location is not localhost:8080 then also combine changes from the
"example port config" section below.
*Optional* keystore contains SSL client certificate + trusted CAs.
Used to authenticate share to an external SSO system such as CAS
Remove the keystore section if not required i.e. for NTLM.
NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos"
NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set
the userHeader to the name of the HTTP header that the external SSO
uses to provide the authenticated user name.
–>
<!–
<config evaluator="string-compare" condition="Remote">
<remote>
<keystore>
<path>alfresco/web-extension/alfresco-system.p12</path>
<type>pkcs12</type>
<password>alfresco-system</password>
</keystore>
<connector>
<id>alfrescoCookie</id>
<name>Alfresco Connector</name>
<description>Connects to an Alfresco instance using cookie-based authentication</description>
<class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
</connector>
<connector>
<id>alfrescoHeader</id>
<name>Alfresco Connector</name>
<description>Connects to an Alfresco instance using header and cookie-based authentication</description>
<class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
<userHeader>SsoUserHeader</userHeader>
</connector>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfrescoCookie</connector-id>
<endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
<identity>user</identity>
<external-auth>true</external-auth>
</endpoint>
</remote>
</config>
–>
<config evaluator="string-compare" condition="send-as-email">
<forms>
<form>
<field-visibility>
<show id="to" />
<show id="subject" />
<show id="body_text" />
</field-visibility>
<appearance>
<field id="to" label-id="send-as-email.field.to"/>
<field id="subject" label-id="send-as-email.field.subject"/>
<field id="body_text" label-id="send-as-email.field.body_text"/>
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
</appearance>
</form>
</forms>
</config>
</alfresco-config>
09-02-2013 09:04 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="send-as-email" class="org.alfresco.repo.action.executer.MailActionExecuter" parent="action-executer">
<property name="mailService">
<ref bean="mailService"></ref>
</property>
<property name="templateService">
<ref bean="templateService"></ref>
</property>
<property name="personService">
<ref bean="personService"></ref>
</property>
<property name="authenticationService">
<ref bean="authenticationService"></ref>
</property>
<property name="nodeService">
<ref bean="nodeService"></ref>
</property>
<property name="authorityService">
<ref bean="authorityService"></ref>
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry"></ref>
</property>
</bean>
</beans>
09-03-2013 02:09 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.