Skip to content

Instantly share code, notes, and snippets.

@alex4u2nv
alex4u2nv / share-custom-module-context.xml
Last active August 29, 2015 14:22
share-custom-module-config.xml
<!-- example custom-config.xml bootstrap -->
<bean id="custom.module.config" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register">
<property name="configService" ref="web.config" />
<property name="configs">
<list>
<value>classpath:alfresco/web-extension/share-custom-module-config.xml</value>
</list>
</property>
</bean>
@alex4u2nv
alex4u2nv / gist:2292a4ab84119397d619
Created August 12, 2014 20:23
Import Software Engineering Space Template.js
var mQuery = {
query: "select * from cmis:folder where contains " +
"('PATH:\"/app:company_home/app:dictionary/app:space_templates/*\"') " +
"and cmis:name='Software Engineering Project'",
language: "cmis-alfresco"
};
var results = search.query(mQuery);
//copy the template into our Document Folder
public class MyBehaviourPolicy implements NodeServicePolicies.OnCreateChildAssociationPolicy {
private PolicyComponent policyComponent;
public PolicyComponent getPolicyComponent() {
return policyComponent;
}
public void setPolicyComponent(PolicyComponent policyComponent) {
this.policyComponent = policyComponent;
}