This file contains hidden or 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 sites = siteService.listSites(null, null, 0); | |
| for (var i = 0; i < sites.length; i++) { | |
| logger.log("site: " + sites[i].shortName); | |
| logger.log("site: " + sites[i].title); | |
| } |
This file contains hidden or 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 groups = groups.getAllRootGroups(); | |
| for each (var group in groups) { | |
| logger.log(group.getShortName()); | |
| var subGroups = group.getAllGroups(); | |
| for each (var subGroup in subGroups) { | |
| logger.log(subGroup.getShortName()); | |
| } | |
| } |
This file contains hidden or 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 fran = people.getPerson("userName"); | |
| var siteGroup = groups.getGroup("site_siteName_SiteCollaborator"); | |
| siteGroup.addAuthority("userName"); |
This file contains hidden or 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
| Inside your share project, use you "-context.xml" file to include a new bean like this: | |
| <bean id="custom.project.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent"> | |
| <property name="resourceBundles"> | |
| <list> | |
| <value>alfresco.web-extension.messages.custom</value> | |
| </list> | |
| </property> | |
| </bean> |
This file contains hidden or 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
| <dependency> | |
| <groupId>org.sharextras</groupId> | |
| <artifactId>javascript-console-repo</artifactId> | |
| <version>0.6.0</version> | |
| <type>amp</type> | |
| </dependency> |
This file contains hidden or 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
| <overlay> | |
| <groupId>org.sharextras</groupId> | |
| <artifactId>javascript-console-repo</artifactId> | |
| <type>amp</type> | |
| </overlay> |
This file contains hidden or 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 nodes = search.luceneSearch('+TYPE:"cm:person" AND +@cm\\:lastName:\"lastName\"'); | |
| //var nodes = search.luceneSearch('+TYPE:"cm:person" AND -@cm\\:lastName:\"lastName\"'); | |
| var nodes = search.luceneSearch('+TYPE:"cm:person"'); | |
| logger.log(nodes.length); | |
| for each(var node in nodes) { | |
| var userid = node.properties.userName; | |
| var useremail = node.properties.email; | |
| logger.warn(userid + " " + useremail); | |
OlderNewer