This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userIsSiteManager = false; | |
var hideSiteMembersForSite = ["testmemberslink"]; | |
var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + encodeURIComponent(user.name)); | |
if (json.status == 200) | |
{ | |
var obj = JSON.parse(json); | |
if (obj) | |
{ | |
userIsMember = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="ac-email-templates" class="org.alfresco.repo.action.constraint.FolderContentsParameterConstraint" parent="action-constraint"> | |
<property name="dictionaryService" ref="dictionaryService"/> | |
<property name="searchService" ref="searchService"/> | |
<property name="nodeService" ref="nodeService"/> | |
<property name="namespaceService" ref="namespaceService" /> | |
<property name="repository" ref="repositoryHelper" /> | |
<property name="searchPath" value="/app:company_home/app:dictionary/app:email_templates/app:notify_email_templates"/> | |
<property name="cacheAllowableValues" value="false" /> | |
<property name="nodeInclusionFilter"> | |
<list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="ac-email-templates" class="org.ootb.repo.action.constraint.FolderContentsParameterConstraint" parent="action-constraint"> | |
<property name="dictionaryService" ref="dictionaryService"/> | |
<property name="searchService" ref="searchService"/> | |
<property name="nodeService" ref="nodeService"/> | |
<property name="namespaceService" ref="namespaceService" /> | |
<property name="repository" ref="repositoryHelper" /> | |
<property name="cacheAllowableValues" value="false" /> | |
<property name="searchPath" > | |
<list> | |
<value>/app:company_home/app:dictionary/app:email_templates/app:notify_email_templates</value> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<String> searchPath = Collections.emptyList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected Map<String, String> getAllowableValuesImpl() { | |
Map<String, String> result = new HashMap<String, String>(23); | |
for(String path : searchPath){ | |
List<NodeRef> nodeRefs = searchService.selectNodes(repository.getRootHome(),path,null,this.namespaceService,false); | |
NodeRef rootFolder = null; | |
if (nodeRefs.size() == 0) | |
{ | |
throw new AlfrescoRuntimeException("The path '" + searchPath + "' did not return any results."); | |
} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgres=# SELECT | |
postgres-# pg_terminate_backend(pid) | |
postgres-# FROM | |
postgres-# pg_stat_activity | |
postgres-# WHERE | |
postgres-# -- don't kill my own connection! | |
postgres-# pid <> pg_backend_pid() | |
postgres-# -- don't kill the connections to other databases | |
postgres-# AND datname = 'alfresco' | |
postgres-# ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./psql -U alfresco -d alfrescoreporting | |
CREATE DATABASE alfrescoreporting WITH OWNER=alfresco ENCODING='UTF8' CONNECTION LIMIT=-1; | |
GRANT CONNECT, TEMPORARY ON DATABASE alfrescoreporting TO PUBLIC; | |
GRANT ALL ON DATABASE alfrescoreporting TO alfresco; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s -k -X POST --user 'admin':'admin' \ | |
-H "Content-Type: application/json" \ | |
-d '{"tenantDomain":"mytenant.com","tenantAdminPassword":"1234"}' http://localhost:8080/alfresco/s/api/tenants | |
curl -s -k -X POST --user 'admin':'admin' -H "Content-Type: application/json" -d '{"tenantDomain":"snpp.com","tenantAdminPassword":"3ricries"}' http://localhost:8080/alfresco/s/api/tenants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn install:install-file -Dfile=mysql-connector-java-5.1.6.jar -DgroupId=mysql -DartifactId=mysql-connector-java -Dversion=5.1.6 -Dpackaging=jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ctxt, scheduler; | |
// get Spring context and Quartz scheduler | |
ctxt = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
scheduler = ctxt.getBean('schedulerFactory', Packages.org.quartz.Scheduler); | |
// fire (unless explicitly defined in Job detail Spring bean, scheduler group is always DEFAULT) | |
scheduler.triggerJob('<insertJobName>', 'DEFAULT'); |
OlderNewer